Centos7 安装Mongodb的C++ driver教程
发布时间:2023-10-20 15:55:45 所属栏目:系统 来源:
导读:安装automake, autoconf and libtool,这里全部yum安装即可
yum -y install automake autoconf libtool
复制代码
安装C driver,按照官网(https://github.com/mongodb/mongo-c-driver)给的安装方法安装。
yum -y install automake autoconf libtool
复制代码
安装C driver,按照官网(https://github.com/mongodb/mongo-c-driver)给的安装方法安装。
安装automake, autoconf and libtool,这里全部yum安装即可 yum -y install automake autoconf libtool 复制代码 安装C driver,按照官网(https://github.com/mongodb/mongo-c-driver)给的安装方法安装。这里我装的是1.3.5版本。 wget https://github.com/mongodb/mongo-c-driver/releases/download/1.3.5/mongo-c-driver-1.3.5.tar.gz tar xzf mongo-c-driver-1.3.5.tar.gz cd mongo-c-driver-1.3.5 ./configure make make install 复制代码 3.安装C++ driver,按照官网(https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-(New-Driver))给的安装方法安装。这里我装的是3.0.1版本。 wget https://github.com/mongodb/mongo-cxx-driver/archive/r3.0.1.tar.gz tar xzf r3.0.1.tar.gz cd mongo-cxx-driver-r3.0.1/build #需要先安装好git,yum -y install git,不然会报错 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/ .. make make install 复制代码 (编辑:聊城站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐