This program has been verified to compile on Ubuntu 14.04 with gcc 4.8.2 (default on ubuntu).
sudo apt-get install g++
sudo apt-get install libsnappy-dev
sudo apt-get install libtcmalloc-minimal4
cd /usr/lib
sudo ln -s libtcmalloc.so.4 libtcmalloc.so
(Alternatively you can install the full gperftools suite which includes tcmalloc)
sudo apt-get install scons
sudo apt-get install libboost-all-dev
To compile and install the mongo C++ driver (assuming installing into /usr/local is desired):
git clone https://github.com/mongodb/mongo-cxx-driver.git
cd mongo-cxx-driver
git checkout legacy
sudo scons -j16 --opt=on --c++11 --prefix=/usr/local install
scons
To compile mlightning with tcmalloc:
scons --allocator=tcmalloc
mlightning -h