forked from m21/mastercore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from faizkhan00/add-centos-notes
building notes
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Some quirks to document when building bitcoin/core on centos: | ||
|
||
berkeley db is not in the yum repos: | ||
|
||
download from: http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz | ||
|
||
Install optional dependencies: | ||
``` | ||
sudo yum install tcl | ||
sudo yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel | ||
sudo yum install sharutils | ||
``` | ||
Install Berkeley DB | ||
``` | ||
cd build_unix | ||
../dist/configure --prefix=/usr --enable-compat185 --enable-dbm --disable-static --enable-cxx | ||
make | ||
``` | ||
then run | ||
``` | ||
sudo make docdir=/usr/share/doc/db-5.3.21 install | ||
sudo chown -v -R root:root /usr/bin/db_* /usr/include/db{,_185,_cxx}.h /usr/lib/libdb*.{so,la} /usr/share/doc/db-5.3.21 | ||
``` | ||
when you run db_recover or other commands, you may encounter “libdb-5.3.so: cannot open shared object file: No such file or directory" | ||
``` | ||
sudo /sbin/ldconfig | ||
``` | ||
Source:http://www.linuxfromscratch.org/blfs/view/svn/server/db.html | ||
|
||
you must link during compile step | ||
|
||
``` | ||
./configure --includedir=/usr/include/boost/ --with-incompatible-bdb | ||
``` | ||
|
||
and then run ```make```. | ||
|