Skip to content

Instantly share code, notes, and snippets.

@btbytes
Last active January 19, 2018 15:38
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 btbytes/374a60b7fc70dcc80fa21cca13434a90 to your computer and use it in GitHub Desktop.
Save btbytes/374a60b7fc70dcc80fa21cca13434a90 to your computer and use it in GitHub Desktop.
Bedrockdb on CentOS

Install dependencies

sudo yum install git wget bzip2 flex -y
sudo yum install libicu-devel readline-devel libtool-ltdl-devel -y

Compile

git clone https://github.com/Expensify/Bedrock.git
# Install gcc 6.4 first
wget https://github.com/gcc-mirror/gcc/archive/gcc-6_4_0-release.tar.gz
tar -zxvf gcc-6_4_0-release.tar.gz
cd gcc-gcc-6_4_0-release/
./contrib/download_prerequisites
cd ..
mkdir gcc-build
cd gcc-build
../gcc-gcc-6_4_0-release/configure --prefix=$HOME/gcc-gcc-6_4_0-release --enable-languages=c,c++ --disable-multilib
make -j
export CC=gcc-6
export CXX=g++-6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment