Bitcoin Forum
April 27, 2024, 12:18:51 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ubuntu build instructions  (Read 3477 times)
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


View Profile
March 17, 2011, 06:53:59 PM
 #1

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)
1714177131
Hero Member
*
Offline Offline

Posts: 1714177131

View Profile Personal Message (Offline)

Ignore
1714177131
Reply with quote  #2

1714177131
Report to moderator
1714177131
Hero Member
*
Offline Offline

Posts: 1714177131

View Profile Personal Message (Offline)

Ignore
1714177131
Reply with quote  #2

1714177131
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714177131
Hero Member
*
Offline Offline

Posts: 1714177131

View Profile Personal Message (Offline)

Ignore
1714177131
Reply with quote  #2

1714177131
Report to moderator
1714177131
Hero Member
*
Offline Offline

Posts: 1714177131

View Profile Personal Message (Offline)

Ignore
1714177131
Reply with quote  #2

1714177131
Report to moderator
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
March 17, 2011, 08:08:47 PM
 #2

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

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


View Profile
March 17, 2011, 08:33:05 PM
 #3

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,
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
March 17, 2011, 08:50:18 PM
 #4

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.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


View Profile
March 17, 2011, 11:28:54 PM
 #5

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.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5180
Merit: 12900


View Profile
March 18, 2011, 02:01:42 AM
 #6

& no way to ever uninstall.

I use paco to keep track of my source code packages. It allows you to uninstall them, and it also keeps track of configure parameters and such.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
March 18, 2011, 01:07:09 PM
 #7

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.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


View Profile
March 18, 2011, 05:26:14 PM
 #8

Security risk as in if a bug is found, and they're not updated with a fix (how?)
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
March 18, 2011, 05:27:24 PM
 #9

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.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
TeraPool
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
July 20, 2011, 06:09:33 AM
 #10

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 Huh
netrin
Sr. Member
****
Offline Offline

Activity: 322
Merit: 251


FirstBits: 168Bc


View Profile
July 25, 2011, 04:15:05 PM
 #11

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?

Greenlandic tupilak. Hand carved, traditional cursed bone figures. Sorry, polar bear, walrus and human remains not available for export.
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 25, 2011, 04:34:32 PM
 #12

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

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
BitVapes
Full Member
***
Offline Offline

Activity: 140
Merit: 100


BitVapes.com


View Profile WWW
July 28, 2011, 11:48:48 AM
 #13

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"

Buy Electronic Cigarettes with Bitcoin @ http://bitvapes.com
genjix (OP)
Legendary
*
expert
Offline Offline

Activity: 1232
Merit: 1072


View Profile
July 28, 2011, 01:01:49 PM
 #14

I didn't get it to work on Ubuntu Oneiric Ocelot
netrin
Sr. Member
****
Offline Offline

Activity: 322
Merit: 251


FirstBits: 168Bc


View Profile
July 28, 2011, 01:09:08 PM
 #15

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. Smiley

Greenlandic tupilak. Hand carved, traditional cursed bone figures. Sorry, polar bear, walrus and human remains not available for export.
BitVapes
Full Member
***
Offline Offline

Activity: 140
Merit: 100


BitVapes.com


View Profile WWW
July 28, 2011, 01:43:36 PM
 #16

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. Smiley

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

Buy Electronic Cigarettes with Bitcoin @ http://bitvapes.com
brandon@sourcewerks
Member
**
Offline Offline

Activity: 62
Merit: 10



View Profile
July 28, 2011, 04:35:09 PM
 #17

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  Grin
marcus_of_augustus
Legendary
*
Offline Offline

Activity: 3920
Merit: 2348


Eadem mutata resurgo


View Profile
July 28, 2011, 11:12:23 PM
 #18

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. Smiley

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

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!