How to build MongoRocks for MongoDB 3.4
This explains how to build MongoRocks for MongoDB 3.4 and is derived from my notes for building for MongoDB 3.2. My server uses Ubuntu 16.04. # Install many of the dependencies for MongoRocks. # I assume this is still valid. sudo yum install snappy-devel zlib-devel bzip2-devel lz4-devel sudo yum install scons gcc-g++ git # Unpack MongoDB 3.4 source in $MONGOSRC # Directory in which git repos are created mkdir ~/git # Get MongoRocks engine cd ~/git git clone https://github.com/mongodb-partners/mongo-rocks.git cd mongo-rocks git checkout --track origin/v3.4 -b v34 # figure out which version of gcc & g++ is installed # for ubuntu 16.04 that is 5.4 g++ --version # get and build RocksDB libraries # disable the use of jemalloc features git clone https://github.com/facebook/rocksdb.git cd rocksdb git checkout --track origin/5.2.fb -b 52fb EXTRA_CFLAGS=-fPIC EXTRA_CXXFLAGS=-fPIC DISABLE_JEMALLOC=1 make static_lib # prepare source build with support for RocksDB cd $M