Nie można znaleźć curl-config w Ubuntu 13.04

42

Instaluję pakiet RCurl w R i otrzymuję błąd

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

Próbowałem zainstalować libcurl na Ubuntu, ale to nie rozwiązuje mojego problemu z pewnymi zależnościami

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 nic mi nie daje:

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

Przeszedłem przez część rozwiązania RCurl, ale działa. Czy możesz zasugerować lub pomóc w tym kierunku. Dziękuję bardzo.

Edytować

kiedy próbowałem zainstalować (Curl) z centrum oprogramowania Ubuntu dostałem ten sam komunikat o błędzie

Zależności pakietów nie można rozwiązać

Ten błąd może być spowodowany brakiem wymaganych lub niemożliwych do zainstalowania dodatkowych pakietów oprogramowania. Ponadto może wystąpić konflikt między pakietami oprogramowania, których nie można zainstalować w tym samym czasie.

Następujące pakiety mają niespełnione zależności:

 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

EDYTOWANE

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]               
Aashu
źródło
1
Próbowałeś już tego apt-get install -f?
arsaKasra
0 zaktualizowanych, 0 nowo zainstalowanych, 0 do usunięcia i 0 niezaktualizowanych.
Aashu
Ponadto, jeśli jeszcze tego nie zrobiłeś, spójrz na to , to znaczy, że mogą wystąpić pewne konflikty z Google Chrome.
arsaKasra

Odpowiedzi:

67

3 pakiety, które znalazłeś zawierają curl-config:

  1. libcurl4-gnutls-dev
  2. libcurl4-nss-dev
  3. libcurl4-openssl-dev

Wszystkie wydają się mieć tę samą funkcjonalność. Zainstalowałem pierwszy z nich poprzez Synaptic Package Manager, a następnie mogłem zainstalować RCurl z CRAN.

Tak więc, jeśli wybierzesz pierwszą opcję, otwórz skrzynkę zaciskową i zrób to

sudo apt-get install libcurl4-gnutls-dev

następnie przejdź do R i zrób

install.packages("RCurl")
Placidia
źródło
5
Przepraszam, co dokładnie oznacza twoja odpowiedź?
Matt O'Brien
3
wykonaj sudo liblcurl4-gnutls-dev poza R, w skrzynce zaciskowej. Następnie zainstaluj RCurl za pomocą install.packages („RCurl”) w R.
Placidia
3
Wykonałem śledzenie i działało idealnie. W nowym terminalu sudo apt-get install libcurl4-openssl-dev W konsoli R install.packages („RCurl”)
Chitrasen
2
apt-get install libcurl4-gnutls-dev
user2413
1
Dodam, że tylko trzecia libcurl4-openssl-devdziałała dla mnie na Linux Mint 17.1
MichaelChirico
2

Oto, co zrobiłem, aby rozwiązać ten sam problem:

sudo aptitude install libcurl4-openssl-dev

Gdy pojawi się monit o zaakceptowanie rozwiązania, [T / n / q]

 :
 The following actions will resolve these dependencies:
 Keep the following packages at their current version:
 1)     libcurl4-openssl-dev [Not Installed]      
 :

odpowiedz „n”. Następnie odpowiedz [Y], gdy pojawi się monit o inną akcję.

John Huang
źródło