#1 Le 28/03/2022, à 13:39
- Comp4Bio
Impossible d'installer curl
Bonjour,
Je n'arrive pas a installer le package devtools dans R (mon ordinateur tourne sous Ubuntu 20.04.4 LTS).
> install.packages("devtools")
Il me renvoie ceci:
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/x86_64-linux-gnu
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/curl’
ERROR: dependency ‘curl’ is not available for package ‘credentials’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/credentials’
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/httr’
ERROR: dependency ‘curl’ is not available for package ‘rcmdcheck’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/rcmdcheck’
ERROR: dependency ‘curl’ is not available for package ‘rversions’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/rversions’
ERROR: dependency ‘credentials’ is not available for package ‘gert’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/gert’
ERROR: dependency ‘httr’ is not available for package ‘gh’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/gh’
ERROR: dependencies ‘curl’, ‘gert’, ‘gh’ are not available for package ‘usethis’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/usethis’
ERROR: dependencies ‘usethis’, ‘httr’, ‘rcmdcheck’, ‘rversions’ are not available for package ‘devtools’
* removing ‘/home/benoit/miniconda3/envs/ChaseR/lib/R/library/devtools’
The downloaded source packages are in
‘/tmp/Rtmpv1y6vT/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("devtools") :
installation of package ‘curl’ had non-zero exit status
2: In install.packages("devtools") :
installation of package ‘credentials’ had non-zero exit status
3: In install.packages("devtools") :
installation of package ‘httr’ had non-zero exit status
4: In install.packages("devtools") :
installation of package ‘rcmdcheck’ had non-zero exit status
5: In install.packages("devtools") :
installation of package ‘rversions’ had non-zero exit status
6: In install.packages("devtools") :
installation of package ‘gert’ had non-zero exit status
7: In install.packages("devtools") :
installation of package ‘gh’ had non-zero exit status
8: In install.packages("devtools") :
installation of package ‘usethis’ had non-zero exit status
9: In install.packages("devtools") :
installation of package ‘devtools’ had non-zero exit status
J'ai utilise la commande suivante, sans effet :
sudo apt install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
Que faire ?
Benoit
Hors ligne
#2 Le 28/03/2022, à 14:13
- Comp4Bio
Re : Impossible d'installer curl
J'ai resolu ce probleme. Peut-on supprimer ce message?
Merci :-)
Hors ligne
#3 Le 28/03/2022, à 15:59
- xubu1957
Re : Impossible d'installer curl
Bonjour,
Pour éditer ta discussion et rajouter [Résolu], au début du titre, il faut utiliser le bouton Modifier au bas de ton premier message.
Pour notre forum d'entraide, tu pourrais indiquer la solution utilisée.
Merci
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
En ligne
#4 Le 28/03/2022, à 16:00
- ar barzh paour
Re : Impossible d'installer curl
en principe il est conseillé de donner la façon dont tu as résolu ton souci ou d'indiquer pourquoi ça ne fonctionnait pas
c'est bien pour tout le monde
pour indiquer que cette discussion est terminé , il suffit de cliquer sur modifier du post #1
et de modifier le titre
Impossible d'installer curl
en
[Résolu] Impossible d'installer curl
PC : B760M DS3H DDR4, 12th Gen Intel(R) Core(TM) i3-12100, RAM DDR4 8GiB -2400 Ubuntu 20.04, 22.04, 24.04 (en test )
Portable1 : ThinkPad P50 I7-6820HQ, 16G0 Ram Ubuntu 22.04 Ubuntu 24.04 , W10-PRO( en voyage )
Portable2 : T5750 @ 2.00GHz RAM 1GiB DDR2 667 Mhz Ubuntu 20.04 ( batterie HS )
stourm a ran war bep tachenn (Angela Duval) ( Je combats sur tous les fronts )
Hors ligne