Forum de Statistiques
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Les posteurs les plus actifs de la semaine
Aucun utilisateur

Le Deal du moment :
Cartes Pokémon 151 : où trouver le ...
Voir le deal

Impossible d'utiliser le package "car" [RÉSOLU]

Aller en bas

Impossible d'utiliser le package "car" [RÉSOLU] Empty Impossible d'utiliser le package "car" [RÉSOLU]

Message par Liyongo Jeu 27 Juin 2019 - 10:16

Bonjour, j'aurais besoin de votre aide. Je ne parviens pas à installer le package "car"

Voici ce qui s'affiche :

Code:
> install.packages("car")
Installing package into ‘/home/jordan/R/i686-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘rio’

essai de l'URL 'https://cloud.r-project.org/src/contrib/curl_3.3.tar.gz'
Content type 'application/x-gzip' length 371740 bytes (363 KB)
==================================================
downloaded 363 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/rio_0.5.16.tar.gz'
Content type 'application/x-gzip' length 420489 bytes (410 KB)
==================================================
downloaded 410 KB

essai de l'URL 'https://cloud.r-project.org/src/contrib/car_3.0-3.tar.gz'
Content type 'application/x-gzip' length 539020 bytes (526 KB)
==================================================
downloaded 526 KB

* installing *source* package ‘curl’ ...
** package ‘curl’ correctement décompressé et sommes MD5 vérifiées
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
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/jordan/R/i686-pc-linux-gnu-library/3.6/curl’
* restoring previous ‘/home/jordan/R/i686-pc-linux-gnu-library/3.6/curl’
Warning in install.packages :
  installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘rio’ ...
** package ‘rio’ correctement décompressé et sommes MD5 vérifiées
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 methods ‘print.curl_handle’, ‘print.curl_multi’, ‘print.form_data’, ‘print.form_file’ were declared in NAMESPACE but not found
Error in library.dynam(lib, package, package.lib) :
  shared object ‘curl.so’ not found
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> library.dynam
Exécution arrêtée
ERROR: lazy loading failed for package ‘rio’
* removing ‘/home/jordan/R/i686-pc-linux-gnu-library/3.6/rio’
* restoring previous ‘/home/jordan/R/i686-pc-linux-gnu-library/3.6/rio’
Warning in install.packages :
  installation of package ‘rio’ had non-zero exit status
* installing *source* package ‘car’ ...
** package ‘car’ correctement décompressé et sommes MD5 vérifiées
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 methods ‘print.curl_handle’, ‘print.curl_multi’, ‘print.form_data’, ‘print.form_file’ were declared in NAMESPACE but not found
Error in library.dynam(lib, package, package.lib) :
  shared object ‘curl.so’ not found
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> library.dynam
Exécution arrêtée
ERROR: lazy loading failed for package ‘car’
* removing ‘/home/jordan/R/i686-pc-linux-gnu-library/3.6/car’
Warning in install.packages :
  installation of package ‘car’ had non-zero exit status

The downloaded source packages are in
 ‘/tmp/RtmpRLpwTr/downloaded_packages’
> install.packages("~/R/i686-pc-linux-gnu-library/3.6/car_3.0-3.tar.gz", repos = NULL, type = "source")
Installing package into ‘/home/jordan/R/i686-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
* installing *source* package ‘car’ ...
** package ‘car’ correctement décompressé et sommes MD5 vérifiées
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 methods ‘print.curl_handle’, ‘print.curl_multi’, ‘print.form_data’, ‘print.form_file’ were declared in NAMESPACE but not found
Error in library.dynam(lib, package, package.lib) :
  shared object ‘curl.so’ not found
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace -> library.dynam
Exécution arrêtée
ERROR: lazy loading failed for package ‘car’
* removing ‘/home/jordan/R/i686-pc-linux-gnu-library/3.6/car’
Warning in install.packages :
  installation of package ‘/home/jordan/R/i686-pc-linux-gnu-library/3.6/car_3.0-3.tar.gz’ had non-zero exit status
> library(car)
Error in library(car) : aucun package nommé ‘car’ n'est trouvé

Merci d'avoir pris le temps de lire le message


Dernière édition par Liyongo le Jeu 27 Juin 2019 - 13:57, édité 1 fois

Liyongo

Nombre de messages : 12
Date d'inscription : 30/04/2019

Revenir en haut Aller en bas

Impossible d'utiliser le package "car" [RÉSOLU] Empty Re: Impossible d'utiliser le package "car" [RÉSOLU]

Message par Liyongo Jeu 27 Juin 2019 - 13:57

J'ai trouvé une solution.

Je la partage ici pour ceux qui auraient le même problème.

1. Vous rendre à cette adresse https://cran.r-project.org/src/contrib/Archive/car/
2. Cliquer sur "car archive"
3. Télécharger le fichier car_2.1-6.tar.gz
4. À partir de Rstudio installer le fichier car_2.1-6.tar.gz (Tool ----> Install)
5. Normalement library(car) fonctionne !

Liyongo

Nombre de messages : 12
Date d'inscription : 30/04/2019

Revenir en haut Aller en bas

Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum