/ usr / bin / ld:找不到-lcurl
I'm trying to install the ruby gem for curl (curb) on Ubuntu 10.10, but during the installation, I get the error:
我正在尝试在Ubuntu 10.10上为curl(curb)安装ruby gem,但在安装过程中,我收到错误:
/usr/bin/ld: cannot find -lcurl
But curl is installed! apt-get install curl says I've got the newest version. There is no curl-dev either.
但是curl已经安装好了! apt-get install curl说我有最新版本。也没有curl-dev。
I'm getting these kinds of errors all the time, with curl, with libxml, with readline, and I have no idea what's going on. Something is wrong with my installation of Ubuntu, but I don't know what, I don't know where to look, I don't know what to google for, and I don't know how to fix it.
我一直都会遇到这类错误,包括curl,libxml,readline,我不知道发生了什么。我的Ubuntu安装有问题,但我不知道什么,我不知道在哪里看,我不知道谷歌的用途,我不知道如何解决它。
Help would be deeply appreciated.
帮助将深表感谢。
EDIT: this is in my /usr/lib dir for libcurl:
编辑:这是在libcurl的/ usr / lib目录中:
lrwxrwxrwx 1 root root 19 2011-02-18 23:15 libcurl-gnutls.so.3 -> libcurl-gnutls.so.4
lrwxrwxrwx 1 root root 23 2011-02-18 23:15 libcurl-gnutls.so.4 -> libcurl-gnutls.so.4.2.0
-rw-r--r-- 1 root root 339880 2010-06-23 09:07 libcurl-gnutls.so.4.2.0
lrwxrwxrwx 1 root root 12 2011-02-18 23:14 libcurl.so.3 -> libcurl.so.4
lrwxrwxrwx 1 root root 16 2011-02-18 23:14 libcurl.so.4 -> libcurl.so.4.2.0
-rw-r--r-- 1 root root 360904 2010-06-23 09:07 libcurl.so.4.2.0
1 个解决方案
#1
23
You need the libcurl3-dev package. Curl is just the command line utility. The library is libcurl3, and it has a -dev package. (It seems to be a virtual package in Maverick, redirecting to libcurl4-openssl-dev, but that should still work or the virtual package would not have been provided.) Indeed from your lib directory I can see that libcurl3 is merely a symbolic link to libcurl4. (libcurl3-dev may not be available in the future, so use libcurl4-openssl-dev directly).
你需要libcurl3-dev软件包。 Curl只是命令行实用程序。该库是libcurl3,它有一个-dev包。 (它似乎是Maverick中的一个虚拟包,重定向到libcurl4-openssl-dev,但它仍然可以工作或者不提供虚拟包。)实际上从你的lib目录我可以看到libcurl3只是一个符号链接到libcurl4。 (libcurl3-dev将来可能无法使用,因此请直接使用libcurl4-openssl-dev)。
更多相关文章
- Linux 2.6.x 内核模块加载错误 “Invalid module format” 解决
- 在用apt源安装mysql-server时出现如下错误,需要安装mysql-server-
- 存储过程放在sql脚本里,命令行导入总是提示错误
- 解决缺少sql头文件编译错误
- “已有打开的与此命令相关联的 DataReader,必须首先将它关闭 ”错
- Mysql5.7.10版本安装后空密码登录,退出后提示密码错误连接不上解
- PostgreSQL无法加载库未知错误14001
- QT 使用QSqlQuery时候的 错误,。。。。
- 参数化的Insert语句,事务抛出错误