Skip to content

Commit

Permalink
Merge pull request #30 from faizkhan00/add-centos-notes
Browse files Browse the repository at this point in the history
building notes
  • Loading branch information
m21 committed Jun 25, 2014
2 parents aa0113c + 7e15c2a commit ec94534
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions doc/building-centos.md
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```.

0 comments on commit ec94534

Please sign in to comment.