Skip to content

Instantly share code, notes, and snippets.

@maxtaco
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxtaco/7225a0631fa039496a97 to your computer and use it in GitHub Desktop.
Save maxtaco/7225a0631fa039496a97 to your computer and use it in GitHub Desktop.
mkdir -p /vol/bitcoin0/src
cd src
export PRFX=/vol/bitcoin0/usr

# yum it up
sudo yum install boost-devel.x86_64 protobuf-devel

# download bitcoin source

# Fetch the source and verify that it is not tampered with
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
echo '12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef  db-4.8.30.NC.tar.gz' | sha256sum -c
# -> db-4.8.30.NC.tar.gz: OK
tar -xzvf db-4.8.30.NC.tar.gz

# fetch ssl v1.0.1h or greater

# build BerkeleyDB
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${PRFX}
make
make install

# Build SSL
./config --prefix=/vol/bitcoin0/usr --shared
make
make install

# Build Bitcoin; SSL needs pkg-config to work, so point it in the right (nonstandard) place.
PKG_CONFIG_PATH=${PRFX}/lib/pkgconfig ./configure LDFLAGS="-L${PRFX}/lib/ -Wl,-rpath,${PRFX}/lib/" CPPFLAGS="-I${PRFX}/include/ -I${PRFX}/include/openssl" --prefix=${PRFX}
make
make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment