Index: library/mongodb/README =================================================================== diff -u -rab21c8502870e715c567c657146283699e31b01b -r7e5bd323c23245a76196e95966ad219b512162f2 --- library/mongodb/README (.../README) (revision ab21c8502870e715c567c657146283699e31b01b) +++ library/mongodb/README (.../README) (revision 7e5bd323c23245a76196e95966ad219b512162f2) @@ -13,26 +13,46 @@ - libbson 1.5.1 (released Dec 17, 2016) Follow the following steps to get MongoDB up and running -and to compile the MongoDB driver for nx: +and to compile the MongoDB driver for nx. +OBTAIN MONGODB and MONGO-C-DRIVER: + - Compile or obtain mongodb (the database). - Compile or obtain the mongo-c-driver (client interface) cd /usr/local/src + wget https://github.com/mongodb/mongo-c-driver/releases/download/1.5.1/mongo-c-driver-1.5.1.tar.gz + tar zxvf mongo-c-driver-1.5.1.tar.gz + rm -rf mongo-c-driver + ln -s mongo-c-driver-1.5.1 mongo-c-driver + cd mongo-c-driver + ./configure --disable-sasl + make + sudo make install + + Alternatively, one can get the newest version form git + + cd /usr/local/src git clone https://github.com/mongodb/mongo-c-driver cd mongo-c-driver - sh autogen.sh + sh autogen.sh --disable-sasl make sudo make install -If you experience errors during autogen on debian, you might have to - apt-get install libtool + If you experience errors during autogen on debian, you might have to + apt-get install libtool -If configure complains about not finding bson, you might have to do - export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig + If configure complains about not finding bson, you might have to do + export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig + Version 1.5.1 of the c-driver leads on Mac OS X to a crash on exit, + when configured sasl support (from mac ports). Therefore, the + configure switch "--disable-sasl" is recommended for the time being. + +COMPILING THE MONGO NSF INTERFACE: + Assume the following installation directories - Tcl: /usr/local/ns/lib/