要有boost库。
1.download cxx-driver for 1.8,unzip to /usr/src folder
2.sudo apt-get install libpcre3-dev
3.sudo apt-get install scons
chenshu@chenshu-ubuntu:/usr/local/src/mongo-cxx-driver-v1.8$
4.sudo cp libmongoclient.* /usr/local/lib/
sudo cp libmongoclient.* /usr/lib/