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

场景

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

wuyujin1997@ubuntu:/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
wuyujin1997@ubuntu:/opt/mongo428/bin$ dpkg -L openssl | grep bin
/usr/bin
/usr/bin/c_rehash
/usr/bin/openssl
wuyujin1997@ubuntu:/opt/mongo428/bin$

你可能感兴趣的:(配置,Linux,数据库,mongodb,依赖,libcurl3)