Centos7 installing MongoDB's C + + driver

Source: Internet
Author: User
Tags automake

According to the official website (https://github.com/mongodb/mongo-cxx-driver/wiki/quickstart-guide-(new-driver)), the C + + driver internal use of Libbson and MongoDB C driver. Therefore to install C + + driver, you need to install C driver first. My system GCC version 4.8.5,cmake version 3.5.2, to meet the official website requirements of the installation version.

1. Install Automake, autoconf and Libtool, here all Yum installation can be

Yum-y Install Automake autoconf libtool

2. Install c driver and install the installation method according to the official website (https://github.com/mongodb/mongo-c-driver). Here I have 1.3.5 version.

wget Https://github.com/mongodb/mongo-c-driver/releases/download/1.3.5/mongo-c-driver-1.3.5.tar.gztar Xzf MONGO-C-DRIVER-1.3.5.TAR.GZCD Mongo-c-driver-1.3.5./configuremakemake Install

3. Install C + + driver and install according to the installation method given by the official website (https://github.com/mongodb/mongo-cxx-driver/wiki/quickstart-guide-(new-driver)). Here I have 3.0.1 version.

wget Https://github.com/mongodb/mongo-cxx-driver/archive/r3.0.1.tar.gztar Xzf R3.0.1.TAR.GZCD Mongo-cxx-driver-r3.0.1/buildpkg_config_path=/usr/local/lib/pkgconfig Cmake-dcmake_build_type=release-dcmake_ install_prefix=/usr/local/. Makemake Install



Centos7 installing MongoDB's 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.