在Ubuntu 13.04中找不到curl-config。

我正在R中安装RCurl包,但是遇到了一个错误。
  checking for curl-config... no
  Cannot find curl-config
  ERROR: configuration failed for package ‘RCurl’

我尝试在Ubuntu上安装libcurl,但它并没有解决我的问题,还有一些依赖关系。
sudo apt-get install libcurl4-gnutls-dev
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcurl4-gnutls-dev : Depends: libcurl3-gnutls (= 7.29.0-1ubuntu3.1) but 7.29.0-1ubuntu3.2 is to be installed
Depends: libldap2-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

locate curl config给我什么都没有:

locate curl-config
curl-config
The program 'curl-config' can be found in the following packages:
* libcurl4-gnutls-dev
* libcurl4-nss-dev
* libcurl4-openssl-dev

我看了一些解决方案RCurl,但它没有起作用。你能提供建议或帮助吗?非常感谢。
编辑
当我尝试从Ubuntu软件中心安装(Curl)时,得到了相同的错误信息。
无法解决软件包依赖关系
这个错误可能是由于缺少或无法安装所需的其他软件包引起的。此外,可能存在不允许同时安装的软件包之间的冲突。
以下软件包存在未满足的依赖关系:
 curl: Depends: libcurl3 (= 7.29.0-1ubuntu3.1) but 7.29.0-1ubuntu3.2 is to be installed
  Depends: zlib1g (>= 1:1.1.4) but 1:1.2.7.dfsg-13ubuntu2 is to be installed

编辑

sudo aptitude install libcurl4-openssl-dev

The following NEW packages will be installed:
libcurl4-openssl-dev{b} 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,210 kB of archives. After unpacking 2,778 kB will be used.
The following packages have unmet dependencies:
libcurl4-openssl-dev : Depends: libcurl3 (= 7.29.0-1ubuntu3.1) but 7.29.0-1ubuntu3.2 is installed.
                    Depends: libidn11-dev but it is not going to be installed.
                    Depends: libkrb5-dev but it is not going to be installed.
                    Depends: libldap2-dev but it is not going to be installed.
                    Depends: librtmp-dev but it is not going to be installed.
                    Depends: libssl-dev but it is not going to be installed.
 The following actions will resolve these dependencies:
 Keep the following packages at their current version:
 1)     libcurl4-openssl-dev [Not Installed]               

1你试过用 apt-get install -f 吗? - arsaKasra
0个升级,0个新安装,0个要移除,0个未升级。 - Aashu
另外,如果你还没有的话,可以看一下这个链接:点击这里,它说可能会有一些与Google Chrome冲突的问题。 - arsaKasra
2个回答

你找到的三个包含curl-config的软件包是:
  1. libcurl4-gnutls-dev
  2. libcurl4-nss-dev
  3. libcurl4-openssl-dev
看起来它们都具有相同的功能。我通过Synaptic软件包管理器安装了第一个软件包,然后能够从CRAN安装RCurl。
所以,如果你选择第一个选项,请打开终端并执行以下命令:
sudo apt-get install libcurl4-gnutls-dev

然后进入R并执行
install.packages("RCurl")

5对不起,你的回答具体是什么意思? - tumultous_rooster
3在R之外的终端框中执行sudo libcurl4-gnutls-dev命令。然后在R中使用install.packages("RCurl")安装RCurl。 - Placidia
3我按照以下步骤操作,它完美地运行了。 在一个新的终端中 sudo apt-get install libcurl4-openssl-dev 在R控制台中 install.packages("RCurl") - Chitrasen
2apt-get install libcurl4-gnutls-dev - user2413
1我要补充一点,只有第三个libcurl4-openssl-dev在Linux Mint 17.1上对我有效。 - MichaelChirico
curl希望已经安装了SSL/TLS库,而这3个提到的包是不同类型的SSL/TLS库。要进行功能比较,请参阅此页面 - yingw
我尝试了第一行代码,它成功运行了。但是当我试图安装swirl以获取其他软件包时,它在openssl上失败了,所以我收到了以下错误信息: ------------------------- ANTICONF ERROR --------------------------- 由于找不到openssl,配置失败。请尝试安装:
  • deb: libssl-dev (Debian, Ubuntu等)
所以我执行了以下操作: sudo apt-get install libssl-dev 然后它成功了,接着我就能够安装httr和swirl了。
- Rick Henderson

这是我解决相同问题的方法:
sudo aptitude install libcurl4-openssl-dev

当提示接受解决方案时,选择 [Y/n/q]。
 :
 The following actions will resolve these dependencies:
 Keep the following packages at their current version:
 1)     libcurl4-openssl-dev [Not Installed]      
 :

回答“n”。当出现另一个操作提示时,回答[Y]。