欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

./mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3‘ not found (required by ./

程序员文章站 2022-07-08 14:46:37
...

场景

Ubuntu 16 安装 MongoDB 4.2.8 ,运行mongod出错:

./mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./mongod)

mongo在Debian系的Linux发行版下运行,需要先安装两个依赖:
opensslcurllib

看错误消息,是需要安装libcucrl3
安装即可:sudo apt install openssl curllib3

安装后,查看安装信息
dpkg -l <package_name> 查看已安装的包的信息
dpkg -L <package_name> 查看这个包的相关文件都安装到了什么位置(可执行程序、配置文件等)

[email protected]:/opt/mongo428/bin$ dpkg -l openssl
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                       Version            Architecture       Description
+++-==========================-==================-==================-==========================================================
ii  openssl                    1.1.1-1ubuntu2.1~1 amd64              Secure Sockets Layer toolkit - cryptographic utility
[email protected]:/opt/mongo428/bin$ dpkg -L openssl | grep bin
/usr/bin
/usr/bin/c_rehash
/usr/bin/openssl
[email protected]:/opt/mongo428/bin$