Commits

Aristarkh Zagorodnikov committed 83df1b4

Documented the move from latest to released versions of C++ driver

Comments (0)

Files changed (1)

 Make sure you have g++, SConstruct and boost libraries (filesystem, system, thread) installed
 Install Apache 2.2+ and APXS (choose worker MPM)
 Grab the module from https://bitbucket.org/onyxmaster/mod_gridfs/, remember the absolute path to the directory (referenced as /path/to/mod_gridfs later on)
-Grab MongoDB from https://github.com/mongodb/mongo (post-2.0 branch required) and go to its directory
-Build MongoDB C++ driver source package from MongoDB sources:
-	scons distclient
-Unpack the resulting archive (mongo-cxx-driver.tgz) and go it its directory
+Grab MongoDB C++ driver from http://dl.mongodb.org/dl/cxx-driver (2.1+ required, don't use *-latest and unreleased versions), unpack it and go to its directory
 Fix the driver build environment (build static library with PIC to allow module to be built as a shared library):
 	echo 'env.Append(CCFLAGS="-fPIC")' >> SConstruct
 Apply the GridFS slaveOk patch:
 Ubuntu pre-build instructions:
 sudo apt-get -y install wget g++ scons apache2 apache2-threaded-dev libboost-filesystem-dev libboost-system-dev libboost-thread-dev
 
-Ubuntu build instructions:
+Ubuntu build instructions (MongoDB C++ driver v2.2.1):
 wget --no-check-certificate https://bitbucket.org/onyxmaster/mod_gridfs/get/release.tar.gz
 tar xzf release.tar.gz
 rm release.tar.gz
 mv onyxmaster-mod_gridfs-* mod_gridfs
 cd mod_gridfs
-wget --no-check-certificate https://github.com/mongodb/mongo/tarball/master
-tar xzf master
-rm master
-mv mongodb-mongo-* mongo
-scons -C mongo distclient
-tar xzf mongo/mongo-cxx-driver.tgz
-rm -rf mongo
+wget http://downloads.mongodb.org/cxx-driver/mongodb-linux-x86_64-2.2.1.tgz
+tar xzf mongodb-linux-x86_64-2.2.1.tgz
+rm mongodb-linux-x86_64-2.2.1.tgz
+mv mongo-cxx-driver-v2.2 mongo-cxx-driver
 echo 'env.Append(CCFLAGS="-fPIC")' >> mongo-cxx-driver/SConstruct
 patch -d mongo-cxx-driver/src/mongo/client < patches/gridfs-slaveok
 scons -C mongo-cxx-driver