Advertisement
Guest User

Untitled

a guest
Dec 30th, 2011
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. As the nightly build will fail with nginx-gridfs, we have to compile mongodb
  2. from scratch and use the fresh libmongoclient.a version.
  3.  
  4. 1) Install neccessary dependencies for Ubuntu
  5.  
  6. apt-get -y install tcsh git-core scons g++
  7. apt-get -y install libpcre++-dev libboost-dev libreadline-dev libmozjs-dev
  8.  
  9. 2) Get the source from github and compile it (Note we do not need to run scons
  10. install, because we only need the libmongoclient.a)
  11.  
  12. cd /home/user
  13. git clone git://github.com/mongodb/mongo.git
  14. cd mongo
  15. scons all
  16.  
  17. 3) Next set the required environment variables for the nginx-gridfs module
  18.  
  19. export MONGO_INCLUDE_PATH=/home/user/mongo/
  20. export LIBMONGOCLIENT=/home/user/mongo/libmongoclient.a
  21. export BOOST_INCLUDE_PATH=/usr/include/boost/
  22. export LIBBOOST_THREAD=/usr/lib/libboost_thread-gcc42-mt-1_34_1.so.1.34.1
  23. export LIBBOOST_FILESYSTEM=/usr/lib/libboost_filesystem-gcc42-mt-1_34_1.so.1.34.1
  24.  
  25. 4) Get Nginx and nginx-gridfs running
  26.  
  27. wget http://sysoev.ru/nginx/nginx-0.8.8.tar.gz
  28. tar -xzf nginx*.tar.gz
  29. cd nginx*
  30. ./configure --add-module=/home/users/nginx-gridfs --prefix=/usr/local/nginx
  31. make
  32. make install
  33.  
  34. 5) Enjoy the performance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement