CentOS Source Installation MongoDB

Source: Internet
Author: User

1, from Yum install Boost, pcre, pcre-devel and other dependent libraries.
Execute command yum install boost
Yum Install Pcre
Yum Install Pcre-devel
2, installation SCons
Unzip scons tar-zxvf scons-2.1.0.tar.gz CD scons-2.1.0
Installing scons python setup.py install
3. Compiling mongodb-client
Unzip the MongoDB tar-zxvf mongodb-src-r2.0.4.tar.gz CD mongodb-src-r2.0.4
Compiling MongoDB scons--prefix=/usr/mongo--sharedclient Install
The bin, include, Lib directories will be generated under Usr/mongo, including dynamic, static Mongoclient libraries under LIB.

4. Copy library file

CP-RF Include/mongo/usr/local/include

CP lib64/libmongoclient.so/usr/local/lib64
CP Lib64/libmongoclient.a/usr/local/lib

CentOS Source Installation MongoDB

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.