Mongodb 安装报错

ubuntu 16.04 mongodb enterprise 3.4 安装中遇到的错误
错误一
./mongod: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
解决方法

apt-get install libcurl4-openssl-dev

错误二
./mongod: error while loading shared libraries: libnetsnmpmibs.so.30: cannot open shared object file: No such file or directory
解决方法

apt-get install snmpd snmp snmp-mibs-downloader

如果上面命令报错:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package snmp-mibs-downloader is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'snmp-mibs-downloader' has no installation candidate

就把snmp-mibs-downloader去掉 执行:

apt-get install snmpd snmp
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容