Title: Error building on Ubuntu Post by: Fegelein on November 22, 2014, 10:19:44 PM I'm an amateur computer scientist, and with an interest in cryptocurrencies decided that compiling the bitcoin core would be fun. I decided to do it in an ubuntu virtual machine, because that seemed like the easier choice. After finally installing all of the dependencies by following the instructions in the build-unix.md (think that all worked the way it was supposed to), I attempted to build it. It looked like it was going smoothly, but I ended up with these errors:
collect2: error: ld returned 1 exit status make[2]: *** [bitcoind] Error 1 make[2]: Leaving directory `/home/fegelein/Desktop/bitcoin-master/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/fegelein/Desktop/bitcoin-master/src' make: *** [all-recursive] Error 1 If anyone knows what I could do to remedy this, I'd be thankful. If I'm doing something stupid like excluding important log data, please let me know... like I said, kinda new to this stuff. Title: Re: Error building on Ubuntu Post by: doof on November 26, 2014, 11:05:25 PM I am by no means a linux guru, but things to try (that have helped me in the past)
Make sure you have pre reqs installed: sudo apt-get update sudo apt-get install build-essential libboost-all-dev automake libtool autoconf sudo apt-get install libdb++-dev sudo apt-get install libboost-all-dev sudo apt-get install pkg-config sudo apt-get install libssl-dev If you dont have alot of ram, create a swap sudo free sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000 sudo mkswap /var/swap.img sudo swapon /var/swap.img sudo free Then to build (this works for me) sudo git clone https://github.com/bitcoin/bitcoin cd bitcoin sudo git checkout tags/v0.9.2.1 sudo ./autogen.sh sudo ./configure --with-incompatible-bdb --with-boost-libdir=/usr/lib/arm-linux-gnueabihf sudo make sudo make install Title: Re: Error building on Ubuntu Post by: sudo apt-get on January 16, 2015, 11:25:13 PM I am following your instructions and it seems to be ok until i get to the command
sudo ./configure --with-incompatible-bdb --with-boost-libdir=/usr/lib/arm-linux-gnueabihf it returns configure: error: --with-boost-libdir expected directory name Any Ideas? Title: Re: Error building on Ubuntu Post by: cr1776 on January 17, 2015, 12:19:12 AM I am following your instructions and it seems to be ok until i get to the command sudo ./configure --with-incompatible-bdb --with-boost-libdir=/usr/lib/arm-linux-gnueabihf it returns configure: error: --with-boost-libdir expected directory name Any Ideas? Can you try these? Is this 64 bit? x86? etc. Depending on your config, one these might help: Code: ./configure --with-incompatible-bdb --with-boost-system=lib ./configure --enable-logging --enable-debug --enable-dht --with-boost-libdir=/usr/lib/x86_64-linux-gnu ) You might find something useful to try in here: https://github.com/miguelfreitas/twister-core/issues/91 Title: Re: Error building on Ubuntu Post by: sudo apt-get on January 19, 2015, 07:59:32 PM Actually ubuntu went through a system update and now the bitzuma guide works just fine
|