zoukankan      html  css  js  c++  java
  • mongodb c api编译

    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,src下面有)

      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无法编过,使用下面的包: https://github.com/mongodb/mongo-c-driver/releases

  • 相关阅读:
    nginx配置虚拟主机
    nginx 中http协议的相关配置
    nginx的性能优化
    编译安装NGINX-1.21.0
    nginx命令使用
    编译安装NGINX1.16.1
    nginx: [emerg] getpwnam("nginx") failed
    swift选择类或结构体
    工具与网址
    WARNING: CPU: 0 PID: 1 at ./arch/x86/include/asm/fpu/internal.h:373
  • 原文地址:https://www.cnblogs.com/foreverstars/p/5209312.html
Copyright © 2011-2022 走看看