Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: genjix on March 17, 2011, 06:53:59 PM



Title: Ubuntu build instructions
Post by: genjix on March 17, 2011, 06:53:59 PM
I see a lot of questions about how to build Bitcoin.

Here's how you do it on Ubuntu for the non-GUI version:

sudo aptitude install build-essential libboost-all-dev libdb4.7++-dev libssl-dev libglib2.0-dev
make -f makefile.unix bitcoind
./bitcoind

(someone add this to the build instructions on github)


Title: Re: Ubuntu build instructions
Post by: Matt Corallo on March 17, 2011, 08:08:47 PM
For the GUI version:

Code:
sudo aptitude install build-essential libboost-all-dev libdb4.7++-dev libssl-dev libglib2.0-dev
wget http://downloads.sourceforge.net/project/wxwindows/2.9.1/wxWidgets-2.9.1.tar.bz2
tar xvvf wxWidgets-2.9.1.tar.bz2
cd wxWidgets-2.9.1
./configure --with-gtk --enable-debug --disable-shared --enable-monolithic
make
sudo make install
cd (bitcoin directory)
make -f makefile.unix
./bitcoin


Title: Re: Ubuntu build instructions
Post by: genjix on March 17, 2011, 08:33:05 PM
fuck no. I do not like to sudo make install *anything* and nor do I recommend anyone else to ever do so.

better would be to install wxwidgets to a local directory. anyway if you're compiling bitcoin then probably you'll be content with the CLI version,


Title: Re: Ubuntu build instructions
Post by: Matt Corallo on March 17, 2011, 08:50:18 PM
fuck no. I do not like to sudo make install *anything* and nor do I recommend anyone else to ever do so.

better would be to install wxwidgets to a local directory. anyway if you're compiling bitcoin then probably you'll be content with the CLI version,
What's the harm of having an extra library on your system?  Its not like anything but bitcoin will use it yet anyway.  Nothing but bitcoin will ever touch any of it.


Title: Re: Ubuntu build instructions
Post by: genjix on March 17, 2011, 11:28:54 PM
fuck no. I do not like to sudo make install *anything* and nor do I recommend anyone else to ever do so.

better would be to install wxwidgets to a local directory. anyway if you're compiling bitcoin then probably you'll be content with the CLI version,
What's the harm of having an extra library on your system?  Its not like anything but bitcoin will use it yet anyway.  Nothing but bitcoin will ever touch any of it.

I don't like filling my system with junk. Personal preference.

Also: security risk.

& no way to ever uninstall.


Title: Re: Ubuntu build instructions
Post by: theymos on March 18, 2011, 02:01:42 AM
& no way to ever uninstall.

I use paco (http://paco.sourceforge.net/) to keep track of my source code packages. It allows you to uninstall them, and it also keeps track of configure parameters and such.


Title: Re: Ubuntu build instructions
Post by: Matt Corallo on March 18, 2011, 01:07:09 PM
fuck no. I do not like to sudo make install *anything* and nor do I recommend anyone else to ever do so.

better would be to install wxwidgets to a local directory. anyway if you're compiling bitcoin then probably you'll be content with the CLI version,
What's the harm of having an extra library on your system?  Its not like anything but bitcoin will use it yet anyway.  Nothing but bitcoin will ever touch any of it.

I don't like filling my system with junk. Personal preference.

Also: security risk.

& no way to ever uninstall.
It can't be a security risk if the libraries never get loaded by any running applications.  Though the filling system with junk is a valid point.  You could install to a different location to keep track of it though.


Title: Re: Ubuntu build instructions
Post by: genjix on March 18, 2011, 05:26:14 PM
Security risk as in if a bug is found, and they're not updated with a fix (how?)


Title: Re: Ubuntu build instructions
Post by: Matt Corallo on March 18, 2011, 05:27:24 PM
Security risk as in if a bug is found, and they're not updated with a fix (how?)
If no program loads the libraries, they can't be exploited.  If someone can convince your system to load the libraries, you are already compromised.


Title: Re: Ubuntu build instructions
Post by: TeraPool on July 20, 2011, 06:09:33 AM
I see a lot of questions about how to build Bitcoin.

Here's how you do it on Ubuntu for the non-GUI version:

sudo aptitude install build-essential libboost-all-dev libdb4.7++-dev libssl-dev libglib2.0-dev
make -f makefile.unix bitcoind
./bitcoind

(someone add this to the build instructions on github)

Is it time to update the OP? I see that the readme suggests a few more dependant libraries now for 0.3.24 ???


Title: Re: Ubuntu build instructions
Post by: netrin on July 25, 2011, 04:15:05 PM
I'd love to see a post here or elsewhere for Ubuntu 11.04. I can't compile the latest wxwidgets nor compile the latest bitcoin client with an earlier wxwidgets. Anyone got it working?


Title: Re: Ubuntu build instructions
Post by: jackjack on July 25, 2011, 04:34:32 PM
I'd love to see a post here or elsewhere for Ubuntu 11.04. I can't compile the latest wxwidgets nor compile the latest bitcoin client with an earlier wxwidgets. Anyone got it working?
I got it working after zillions of troubles with wxwidgets (in 10.04 though)

Here: http://forum.bitcoin.org/index.php?topic=30500.0


Title: Re: Ubuntu build instructions
Post by: BitVapes on July 28, 2011, 11:48:48 AM
I'd love to see a post here or elsewhere for Ubuntu 11.04. I can't compile the latest wxwidgets nor compile the latest bitcoin client with an earlier wxwidgets. Anyone got it working?

this may help - http://forum.bitcoin.org/index.php?topic=6299.msg110429#msg110429


note, this installs v0.3.21 but I think 0.3.24 will work if you change a line in the script:

from
Quote
[ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.21"
to
Quote
[ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.24"


Title: Re: Ubuntu build instructions
Post by: genjix on July 28, 2011, 01:01:49 PM
I didn't get it to work on Ubuntu Oneiric Ocelot


Title: Re: Ubuntu build instructions
Post by: netrin on July 28, 2011, 01:09:08 PM
I (and others) can compile earlier versions of wxwidgets, earlier clients, and on earlier versions of Ubuntu. If you has actually compiled 0.3.24 on Ubuntu 11.04 yourself, please post your magic sauce. :)


Title: Re: Ubuntu build instructions
Post by: BitVapes on July 28, 2011, 01:43:36 PM
I (and others) can compile earlier versions of wxwidgets, earlier clients, and on earlier versions of Ubuntu. If you has actually compiled 0.3.24 on Ubuntu 11.04 yourself, please post your magic sauce. :)

the method I posted 3 links above worked for me, I just checked and I had edited a section of the  script like so -

Quote
#for some reason, github's certificate doesn't work:
[ -e bitcoin*.tar.gz ] || wget --no-check-certificate "https://www.github.com/bitcoin/bitcoin/tarball/v0.3.24"
[ -e bitcoin*/ ] || tar -xvzf "v0.3.24"
cd bitcoin*/
cd src/
make -f makefile.unix


this gave me a working bitcoin 0.3.24 binary in ubuntu 11.04


Title: Re: Ubuntu build instructions
Post by: brandon@sourcewerks on July 28, 2011, 04:35:09 PM
If you don't want to fool around doing this yourself, I can provide cloud hosted bitcoind instances with Ubuntu for ~0.125 BTC a day.  Each instance is backed up daily and you will have full root access to the server.

Otherwise, back to reading  ;D


Title: Re: Ubuntu build instructions
Post by: marcus_of_augustus on July 28, 2011, 11:12:23 PM
I (and others) can compile earlier versions of wxwidgets, earlier clients, and on earlier versions of Ubuntu. If you has actually compiled 0.3.24 on Ubuntu 11.04 yourself, please post your magic sauce. :)

On a related note, if you are going to try testing with release candidates for 0.3.25 (0.4) that has wallet encryption then you'll have to use the latest version of wxWidgets 2.9.2 (need to build and install somewhere yourself) ... or you can use the patch on the previous version found in https://github.com/bitcoin/bitcoin/blob/master/contrib/wx-patches/README