在Ubuntu 13.04中找不到curl-config


42

我在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

已编辑

须藤aptitude安装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)2013年

另外,如果您尚未浏览此内容,则表示与Google Chrome浏览器可能存在一些冲突。
arsaKasra

Answers:


67

您发现包含的3个软件包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
抱歉,您的答案到底是什么意思?
Matt O'Brien 2014年

3
在接线盒的R外部执行sudo liblcurl4-gnutls-dev。然后使用RCurl install.packages( “RCurl”)内安装R.
普拉奇迪亚

3
我确实遵循了,而且效果很好。在新的终端中sudo apt-get install libcurl4-openssl-dev在R控制台中install.packages(“ RCurl”)
Chitrasen 2014年

2
apt-get install libcurl4-gnutls-dev
user2413

1
我要补充一点,只有第三个libcurl4-openssl-dev对我适用于Linux Mint 17.1
MichaelChirico 2015年

2

这是我为解决同一问题所做的工作:

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]。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.