概要

姊妹文章:Win10+VS2017+Qt+Boost+MongoDB安装配置

Qt

sudo dnf install qt5-devel

Boost

sudo dnf install boost-devel

MongoDB

一、安装MongoDB

sudo dnf install mongodb

二、编译 mongo-c-driver

跟着官网教程

wget https://github.com/mongodb/mongo-c-driver/releases/download/1.10.0/mongo-c-driver-1.10.0.tar.gz
tar xzf mongo-c-driver-1.10.0.tar.gz
cd mongo-c-driver-1.10.0
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
make
sudo make install

三、编译 mongo-cxx-driver

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=OFF ..
sudo make
sudo make install

欢迎留言>_<

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据