I’m trying to build the Ubuntu version but when I come to ‘make’ Bitcoin-Qt I get the following error:
/usr/bin/ld: /home/user/db-4.8.30.NC/build_unix/build/lib//libdb_cxx-4.8.a(cxx_db.o): relocation R_X86_64_32 against _db_associate_intercept_c' can not be used when making a shared object; recompile with -fPIC<br>/home/user/db-4.8.30.NC/build_unix/build/lib//libdb_cxx-4.8.a: error adding symbols: Bad value<br>collect2: error: ld returned 1 exit status<br><br>It sort of sounds like a 32/64 bit issue but as far as I can tell there is only a 64 bit version of Ubuntu Server anyway. I'm running x86 hardware although it is a virtual machine but I create Ubuntu VM's all the time so I can't see that being the cause. <br><br>I have tried starting from Ubuntu Server 14.04 (not 14.04.1) but then executing:<br><br>apt-get update; sudo apt-get -y upgrade<br><br>I also had an error at the ./configure... stage which I resolved with:<br><br>sudo apt-get install pkg-config
`The above may be missing from the instructions unless I made the error.
Go to https://github.com/CounterpartyXCP/counterpartyd_build and find bitcoind-related build steps in setup_federated_node.py, then work by those steps or hack the script (delete other parts, or just setup a Fed Node).
This procedure builds a “bigger” version of Bitcon-Qt (with QR-encode and other usually unnecessary gizmos)
In case you have any trouble with dependencies, you can install packages that the Fed Node setup script installs.
If you don’t trust other people’s binaries you can still use this one to start reindexing the blockchain while you’re figuring out how to roll your own.
I even had trouble with the short version, I must be having a bad week. The problem seems to be Berkeley DB. In the end I added the ppa:bitcoin and installed with apt-get just to get something working. I then installed the above bitcoind version. I’m currently reindexing a previous downloaded blockchain to speed things up, so hopefully I can get it working tomorrow.
@lostdroind I know you managed to install but for others to visit this page - I finally found time to rebuild the Ubuntu binary and QA-ed the final binary package to put an end to this annoyance.
For those who haven’t installed yet, I think now the Ubuntu 14.04 instructions on my repo are correct as well, and all the dependencies are mentioned on the same page. Also the package contains information about dependencies required by it.
Hi, I'm now trying to install jmcorgan addrindex patch but I got the same problem as @lostdroind mentioned above.
The error is this. I got this when I executed "make".
CXXLD bitcoind
/usr/bin/ld: /home/xcp/db-4.8.30.NC/build_unix/build/lib//libdb_cxx-4.8.a(cxx_db.o): relocation R_X86_64_32 against `_db_associate_intercept_c' can not be used when making a shared object; recompile with -fPIC
/home/xcp/db-4.8.30.NC/build_unix/build/lib//libdb_cxx-4.8.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
I found two install directions about the patch and I followed by this wiki below. (I am using Ubuntu)
The error is probably because you don’t have or didn’t your make to correct libdb (libdb4.8 and libdb4.8++ and two development packages associated with these) libraries. I’d repeat the whole procedure to figure out where’s the mistake, but it takes 2 hours on my PC so …
You can get the binary file to avoid building from source. That procedure I tested and it now works fine.