Created
April 13, 2012 03:29
-
-
Save syshack/2373406 to your computer and use it in GitHub Desktop.
mogodb auto-compile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash -e | |
#author:syshack | |
echo "Before all,u should download pcre,js,scons,boost,mongodb sourcecode" | |
echo -n "Pls enter ur *needed* package path:" | |
read prepath | |
cd ${prepath:=.} | |
echo -n "Where your bin want to install:" | |
read mongodir | |
echo "Install scons" | |
tar -xvf scons-* | |
cd scons-* | |
python setup.py install | |
echo "Install js": | |
tar -xvf js-* | |
cd js*/src | |
export CFLAGS="-DJS_C_STRING_ARE_UTF8" | |
make -f Makefile.ref | |
JS_DIST=/usr make -f Makefile.ref export | |
echo "Install pcre" | |
tar -xvf pcre-* | |
cd pcre* | |
./configer --enable-unicode-properities | |
make &&make install | |
ldconfig | |
echo "Install Boost" | |
tar -xvf boost* | |
cd boost* | |
sh bootstrap.sh | |
./bjam --without-python --layout=tagged variant=debug,release link=static,shared runtime-link=shared threading=multi stage | |
echo "Install mongodb" | |
cd mongodb* | |
scons all | |
scons --prefix=${mongodir:=/usr} --full install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment