Bitcoin Forum
May 01, 2024, 12:59:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Error building on Ubuntu  (Read 1653 times)
Fegelein (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 22, 2014, 10:19:44 PM
Last edit: November 22, 2014, 10:45:16 PM by Fegelein
 #1

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.
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
doof
Hero Member
*****
Offline Offline

Activity: 765
Merit: 503


View Profile WWW
November 26, 2014, 11:05:25 PM
 #2

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

sudo apt-get
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
January 16, 2015, 11:25:13 PM
 #3

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?
cr1776
Legendary
*
Offline Offline

Activity: 4018
Merit: 1299


View Profile
January 17, 2015, 12:19:12 AM
 #4

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 --with-incompatible-bdb  --with-boost-libdir=/usr/lib/x86_64-linux-gnu

./configure --with-incompatible-bdb  --with-boost-libdir=/usr/lib64
(And this might give some more info if those don't help:
./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
sudo apt-get
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
January 19, 2015, 07:59:32 PM
 #5

Actually ubuntu went through a system update and now the bitzuma guide works just fine
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!