当前位置: 首页>>技术教程>>正文


在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)得到相同的erroe消息

无法解析包依赖关系

此错误可能是由于缺少或无法安装所需的其他软件包引起的。此外,不允许同时安装的软件包之间可能存在冲突。

The following packages have unmet dependencies:

 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

EDITED

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]               

最佳解决方法

您发现包含curl-config的3个软件包:

  1. libcurl4-gnutls-dev

  2. libcurl4-nss-dev

  3. libcurl4-openssl-dev

所有似乎都具有相同的功能。我通过Synaptic Package Manager安装了第一个,然后能够从CRAN安装RCurl。

因此,如果您选择第一个选项,请打开一个接线盒即可

sudo apt-get install libcurl4-gnutls-dev

然后进入R并做

install.packages("RCurl")

次佳解决方法

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

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

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/2098.html,未经允许,请勿转载。