当前位置:Gxlcms > 数据库问题 > mongodb c api编译

mongodb c api编译

时间:2021-07-01 10:21:17 帮助过:7人阅读

1. autoconf-latest.tar.gz

  http://ftp.gnu.org/gnu/autoconf/

  tar xzvf autoconf-latest.tar.gz

  ./configure --prefix=/home/stars/support/mongo-c/autoconf-2.69/install

  make && make install

  设置PATH环境变量

2. pkg-config-0.29.tar.gz

  https://www.freedesktop.org/wiki/Software/pkg-config/

  tar xzvf pkg-config-0.29.tar.gz

  ./configure --prefix=/home/stars/support/mongo-c/pkg-config-0.29/install --with-internal-glib

  make && make install

  设置PATH环境变量

 3. libtool-2.4.6.tar.gz

  http://mirror.hust.edu.cn/gnu/libtool/

  tar xzvf libtool-2.4.6.tar.gz

  ./configure --prefix=/home/stars/support/mongo-c/libtool-2.4.6/install

  make && make install

  设置PATH环境变量

4. mongo-c-driver-1.3.0-dev.tar.gz

  https://github.com/mongodb/mongo-c-driver  (记得在里面单独下载libbson)

  tar xzvf mongo-c-driver-1.3.0-dev.tar.gz

  ./autogen.sh (libbson里也要执行一下)

  ./configure --prefix=/home/stars/support/mongo-c/mongo-c-driver-1.3.0-dev/install

  make && make install

 

mongodb c api编译

标签:

人气教程排行