./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发行版下运行,需要先安装两个依赖:openssl
和curllib
看错误消息,是需要安装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$
上一篇: ASP.NET MVC备忘
推荐阅读
-
./mongod: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3‘ not found (required by ./
-
报错:cmake: /usr/local/lib/libcurl.so.4: no version information available (required by cmake)
-
cmake: /usr/local/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)错误
-
/usr/lib64/libssl.so.10: no version information available (required by ./mongod)