Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Building Bitcoin on Fedora 21
BUILD_DIR=`pwd`
BDB_VERSION=4.8.30.NC
OPENSSL_VERSION=1.0.2
BITCOIN_VERSION=0.10.0
# install dependencies for compile
sudo yum groupinstall -y \
"Development Tools"\
"Development Libraries"
sudo yum install -y \
gcc-c++ \
libtool swig \
pyqt4-devel \
python-psutil \
python-twisted \
wget \
protobuf-devel
# download and build Berkeley DB
wget -qO- "http://download.oracle.com/berkeley-db/db-${BDB_VERSION}.tar.gz" | tar -xzv && cd db-${BDB_VERSION}/build_unix
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=/usr/local/
make
sudo make install
# download and build OpenSSL with additional elliptic curve types
cd $BUILD_DIR
wget -qO- https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | tar -xzv && cd openssl-${OPENSSL_VERSION}
export CFLAGS="-fPIC"; ./config \
--prefix=/usr/local \
shared \
enable-ec \
enable-ecdh \
enable-ecdsa
make depend && make all
sudo make install
# pull down the bitcoin code for the designed version
cd $BUILD_DIR
git clone git://github.com/bitcoin/bitcoin.git
cd bitcoin
git checkout v${BITCOIN_VERSION}
./autogen.sh && ./configure \
LDFLAGS="-Wl,-rpath=/usr/local/lib64 -L/usr/local/lib/ -L/usr/local/lib64/" \
CPPFLAGS="-I/usr/local/include/"
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.