Tag: mongo c driver

在Docker中安装Mongo C和C ++驱动程序

我正在尝试在Docker容器中安装mongocxx驱动程序,第一步是使用软件包pipe理器安装mongo-c驱动程序。 我瘦了Dockerfile: FROM phusion/baseimage:latest RUN apt-get install -y libmongoc-1.0-0 完成这一步后,我应该准备好按照以下说明安装cxx驱动程序: https : //mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/ RUN git clone https://github.com/mongodb/mongo-cxx-driver.git –branch releases/stable –depth 1 WORKDIR /mongo-cxx-driver/build RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local .. RUN make EP_mnmlstc_core RUN make && make install 这一直进行到cmake步骤失败,无法findlibbson包 Step 17/25 : RUN cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local .. —> Running in ba6033b680bb — The CXX compiler identification is […]