centos7.2 Installing the MongoDB C + + driver

Source: Internet
Author: User
Tags gettext mongodb openssl automake

System: centos7.2

Indicates that all source stacking is

1. Prepare the MongoDB C + + driver dependency

Yum-y Install Epel-release
Yum install-y git gcc gcc-c++ OpenSSL openssl-devel make Texinfo patch imake wget perl-test-harness perl-thread-queue Perl-data-dumper Help2man cyrus-sasl-devel glib-devel gettext gettext-devel gnulib-devel

2, install cmake3.2 above version if old please uninstall

Yum Remove Cmakewget https://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz tar-xvf cmake-3.2.2.tar.gz cd cmake-3.2.2./ Bootstrap./configure make && make install Ln-s/usr/local/bin/cmake/usr/bin CD.

3, Installation autoconf-2.69

wget HTTP://MIRRORS.KERNEL.ORG/GNU/AUTOCONF/AUTOCONF-2.69.TAR.GZTAR-XVF AUTOCONF-2.69.TAR.GZCD autoconf-2.69./ Configure--prefix=/usr/localmake && make INSTALLCD.

4, Installation automake-1.15.1

wget HTTP://FTP.GNU.ORG/GNU/AUTOMAKE/AUTOMAKE-1.15.1.TAR.XZTAR-XVF AUTOMAKE-1.15.1.TAR.XZCD automake-1.15.1./ Bootstrap--force./configure--prefix=/usr/localmake && make installln-sf/usr/local/bin/automake-1.15/usr/ Bin/automakecd.

5, Installation libtool-2.4.6

wget http://mirrors.ustc.edu.cn/gnu/libtool/libtool-2.4.6.tar.gz tar-xvf libtool-2.4.6.tar.gz cd libtool-2.4.6./ Bootstrap--force./configure make && make install CD.

6, Installation libbson-1.6.3

wget https://github.com/mongodb/libbson/releases/download/1.6.3/libbson-1.6.3.tar.gz TAR-XVF libbson-1.6.3.tar.gz CD libbson-1.6.3./configure-prefix=/usr--libdir=/usr/lib64 make && make install CD.

7, Installation m4-1.4.18

wget http://mirrors.kernel.org/gnu/m4/m4-1.4.18.tar.gztar-xvf m4-1.4.18.tar.gz CD m4-1.4.18./bootstrap--force./ Configure--prefix=/usr/localmake && make INSTALLLN-SF/USR/LOCAL/BIN/M4/USR/BIN/M4CD.

8, installation mongo-c-driver-1.6.3

wget HTTPS://GITHUB.COM/MONGODB/MONGO-C-DRIVER/RELEASES/DOWNLOAD/1.6.3/MONGO-C-DRIVER-1.6.3.TAR.GZTAR-XVF MONGO-C-DRIVER-1.6.3.TAR.GZCD mongo-c-driver-1.6.3./configuremake && make install CD.

9, installation mongo-cxx-driver-r3.1.2

wget https://github.com/mongodb/mongo-cxx-driver/archive/r3.1.2.tar.gz tar-xvf r3.1.2.tar.gz CD Mongo-cxx-driver-r3.1.2/build/pkg_config_path=/usr/local/lib/pkgconfig Cmake-dcmake_build_type=release-dbsoncxx _poly_use_mnmlstc=1-dcmake_install_prefix=/usr/local. sudo make ep_mnmlstc_core sudo make && sudo make install ln-s/usr/local/lib/libmongocxx.so/usr/lib/libmongocxx. So


This article is from the "Leaflet Cold Smile" blog, please be sure to keep this source http://juestnow.blog.51cto.com/1515305/1950039

centos7.2 Installing the MongoDB C + + driver

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.