Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am installing package RCurl in R and getting an error

  checking for curl-config... no
  Cannot find curl-config
  ERROR: configuration failed for package ‘RCurl’

I have tried to install libcurl on Ubuntu, but it doesn't solve my problem have some dependecies

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 gives me nothing:

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

I went through some of the solution RCurl but it is working. Can you suggest or help in this direction. Thank you so much.

Edit

when i tried to install(Curl) from Ubuntu Software center got the same erroe message

Package dependencies cannot be resolved

This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.

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]               
share|improve this question
1  
Have you tried it with apt-get install -f? –  arsaKasra Oct 16 '13 at 6:10
    
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. –  Aashu Oct 16 '13 at 6:50
    
Also, if you haven't already, take a look at this, it says there might be some conflicts with Google Chrome. –  arsaKasra Oct 16 '13 at 7:15

1 Answer 1

up vote 12 down vote accepted

The 3 packages that you found to contain curl-config:libcurl4-gnutls-dev, libcurl4-nss-dev and libcurl4-openssl-dev, all seem to have the same functionality. I installed the first of these via Synaptic Package Manager and was then able to install RCurl from CRAN.

share|improve this answer
3  
I'm sorry, what exactly does your answer mean? –  Matt O'Brien Mar 11 at 4:53
3  
do sudo liblcurl4-gnutls-dev outside R, in a terminal box. Then install RCurl using install.packages("RCurl") within R. –  Placidia Mar 12 at 9:02
3  
@Placidia There is a mistype in the file name: it is libcurl4-gnutls-dev instead of liblcurl4-gnutls-dev. –  Vladimir S. Apr 17 at 3:31
2  
I did following and it worked perfectly. In a new terminal sudo apt-get install libcurl4-openssl-dev In R console install.packages("RCurl") –  Chit Jun 11 at 6:22
    
apt-get install libcurl4-gnutls-dev –  user2413 Oct 27 at 16:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.