首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在ubuntu中安装mongodb-c驱动程序并在co回合服务器上使用

如何在ubuntu中安装mongodb-c驱动程序并在co回合服务器上使用
EN

Stack Overflow用户
提问于 2020-09-26 10:48:26
回答 1查看 332关注 0票数 2

我正在使用co转折点,我想使用mongodb作为数据库运行它显示的旋转服务器。

代码语言:javascript
复制
SQLite supported, default database location is /var/lib/turn/turndb
0: Redis supported
0: PostgreSQL supported
0: MySQL supported
0: MongoDB is not supported
0: 
0: Default Net Engine version: 3 (UDP thread per CPU core)

我已经使用以下命令安装了coturn

代码语言:javascript
复制
sudo apt-get install coturn

文档

mongo驱动程序包“自动”不可用。除非您在转服务器编译之前“手动”安装MongoDB支持,否则不会编译它。有关驱动程序的安装说明,请参阅https://github.com/mongodb/mongo-c-driver

并试图通过以下指南安装mongo驱动程序

使用包管理器安装libmongoc

代码语言:javascript
复制
apt-get install libmongoc-1.0-0

基于Unix的构建环境

关于Debian / Ubuntu:

代码语言:javascript
复制
$ sudo apt-get install cmake libssl-dev libsasl2-dev

配置生成,准备从git存储库克隆生成

代码语言:javascript
复制
$ git clone https://github.com/mongodb/mongo-c-driver.git
$ cd mongo-c-driver
$ git checkout 1.17.0  # To build a particular release
$ python build/calc_release_version.py > VERSION_CURRENT
$ mkdir cmake-build
$ cd cmake-build
$ cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..

执行生成

基于Unix、macOS和Windows (MinGW-W64和MSYS2)

代码语言:javascript
复制
$ cmake --build .
$ sudo cmake --build . --target install

~/mongo-c-driver/cmake-build$cmake --构建。帮助

返回

代码语言:javascript
复制
Unknown argument help
Usage: cmake --build <dir> [options] [-- [native-options]]
Options:
  <dir>          = Project binary directory to be built.
  --target <tgt> = Build <tgt> instead of default targets.
                   May only be specified once.
  --config <cfg> = For multi-configuration tools, choose <cfg>.
  --clean-first  = Build target 'clean' first, then build.
                   (To clean only, use --target 'clean'.)
  --use-stderr   = Ignored.  Behavior is default in CMake >= 3.0.
  --             = Pass remaining options to the native tool.

生成文档

代码语言:javascript
复制
cmake -DENABLE_MAN_PAGES=ON -DENABLE_HTML_DOCS=ON ..

返回

代码语言:javascript
复制
-- No CMAKE_BUILD_TYPE selected, defaulting to RelWithDebInfo
file VERSION_CURRENT contained BUILD_VERSION 1.17.0
-- Build and install static libraries
  -- Using bundled libbson
libbson version (from VERSION_CURRENT file): 1.17.0
--     struct timespec found
Adding -fPIC to compilation of bson_static components
CMake Error at CMakeLists.txt:10 (_message):
  Could NOT find Sphinx (missing: SPHINX_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message)
  /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  build/cmake/FindSphinx.cmake:10 (find_package_handle_standard_args)
  src/libbson/CMakeLists.txt:444 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/user/mongo-c-driver/cmake-build/CMakeFiles/CMakeOutput.log".
See also "/home/user/mongo-c-driver/cmake-build/CMakeFiles/CMakeError.log".

cmake --build . --target mongoc-doc

make: *** No rule to make target 'mongoc-doc'.  Stop.

当我重新启动co转折点服务器时,它仍然显示出mongodb不受支持。

我如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2021-01-28 13:03:14

sudo apt-获取安装python3 3-sphinx

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64076726

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档