1. libcurl.so.4: cannot open shared object file: No such file or directory

./mongo -f /mongodb/etc/mongo.conf

报此错误

libcurl.so.4: cannot open shared object file: No such file or directory

 

1、缺少相关文件,通过

sudo apt-get install libcurl4-openssl-dev 安装 提示:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libcurl4-openssl-dev

2、sudo apt-get update

检查更新过后重新安装libcurl4-openssl-dev即可

posted @ 2018-10-30 17:20  Sampson1207  阅读(4282)  评论(0编辑  收藏  举报