Bitcoin Forum
May 10, 2024, 11:08:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: HOWTO: compile bitcoind on a debian-like system  (Read 6482 times)
nanotube (OP)
Hero Member
*****
Offline Offline

Activity: 482
Merit: 501


View Profile WWW
September 29, 2010, 09:08:48 PM
Last edit: January 20, 2011, 04:57:30 AM by nanotube
 #1

This is just a brief note that I hope will help others compile bitcoind on their debian-like linux system. The main sticking point is figuring out what dependencies are needed. So follow these simple steps below, and you can be up and running in no time.

Note that I have done this on Ubuntu 10.04, i386.

1. run
Code:
sudo apt-get install build-essential libboost-all-dev libssl-dev libdb-dev libdb4.8++-dev libglib2.0-dev
to install all the required dependencies. (note that the 4.8 version may differ depending on the age of your distribution)
2. get the source code of bitcoin, either through an svn checkout, or by downloading one of the release tar.gz's
3. cd to the directory where the source code is located, and run
Code:
make -f makefile.unix bitcoind
4. watch the compilation progress scroll by.
5. the compiled binary 'bitcoind' will be created in your current directory - enjoy!

Note: currently the official binary uses libdb 4.7, so if you want to be consistent with that, use libdb4.7++-dev instead of the 4.8 version. if you need to go back to 4.7 after running with 4.8, you need to delete .bitcoin/database/* files, because these logfiles are not backward compatible between 4.8 and 4.7.

Any comments/thoughts/suggestions are welcome. :)

Join #bitcoin-market on freenode for real-time market updates.
Join #bitcoin-otc - an over-the-counter trading market. http://bitcoin-otc.com
OTC web of trust: http://bitcoin-otc.com/trust.php
My trust rating: http://bitcoin-otc.com/viewratingdetail.php?nick=nanotube
1715339309
Hero Member
*
Offline Offline

Posts: 1715339309

View Profile Personal Message (Offline)

Ignore
1715339309
Reply with quote  #2

1715339309
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715339309
Hero Member
*
Offline Offline

Posts: 1715339309

View Profile Personal Message (Offline)

Ignore
1715339309
Reply with quote  #2

1715339309
Report to moderator
1715339309
Hero Member
*
Offline Offline

Posts: 1715339309

View Profile Personal Message (Offline)

Ignore
1715339309
Reply with quote  #2

1715339309
Report to moderator
1715339309
Hero Member
*
Offline Offline

Posts: 1715339309

View Profile Personal Message (Offline)

Ignore
1715339309
Reply with quote  #2

1715339309
Report to moderator
grondilu
Legendary
*
Offline Offline

Activity: 1288
Merit: 1076


View Profile
December 01, 2010, 05:35:31 PM
 #2

This seems fine.  So what's preventing us from making a debian package, which would be available at least on Sid ?

davux
Sr. Member
****
Offline Offline

Activity: 288
Merit: 263


Firstbits.com/1davux


View Profile WWW
December 01, 2010, 05:51:30 PM
 #3

This seems fine.  So what's preventing us from making a debian package, which would be available at least on Sid ?

FYI, there's a package in preparation at http://bugs.debian.org/578157.

Feel free to contribute there!

1DavuxH9tLqU4c7zvG387aTG4mA7BcRpp2
México (Oaxaca) – France - Leeds
grondilu
Legendary
*
Offline Offline

Activity: 1288
Merit: 1076


View Profile
December 01, 2010, 06:08:53 PM
 #4

This seems fine.  So what's preventing us from making a debian package, which would be available at least on Sid ?

FYI, there's a package in preparation at http://bugs.debian.org/578157.

Feel free to contribute there!

Indeed.  I'll send an email in case they need any help.

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!