Compiling mongodb with ssl support
It only took me ten hours! Let me save you some pain. I found a nice script for doing this here: http://brakertech.com/howto-make-mongo-ssl-on-ubuntu-12-04/ and modified it slightly to work on Ubuntu Saucy like so:
#!/bin/bash
RELEASE=saucy
ARCH=amd64
BASE=$PWD
VERSION=2.5.5
apt-get -y install git-core build-essential scons libssl-dev
# Grab the source code.
git clone git://github.com/mongodb/mongo.git
cd mongo
git checkout r$VERSION
# Build it with SSL enabled and mostly statically.
scons install --64 --ssl --release --no-glibc-check --prefix=$BASE/opt/mongo
mkdir $BASE/opt
# Pack it up.
cd $BASE/opt
tar czvf mongo-$VERSION-$RELEASE-$ARCH.tgz mongo/bin
This uses a development version of mongodb, as older versions have dependency ish. If you're running saucy x64 I can save you pain and time: https://drive.google.com/file/d/0B7BiEI3PiFYZNFdpQlQ3RU8yNmc/edit?usp=sharing
This entry was posted on Friday, March 21, 2014 at 3:31 AM. You can follow any responses to this entry through the RSS 2.0. You can leave a response.
Post a Comment