2015-08-31 1 views
-4

J'ai un problème avec l'installation de packages dans RStudio. J'utilise Linux Mint et j'ai déjà installé libgdal-dev et libproj-dev.erreur lors de l'installation d'un package dans R correspondant package stringr

Voici le texte dans le terminal:

* installing *source* package ‘stringi’ ... 
** package ‘stringi’ successfully unpacked and MD5 sums checked 
checking for local ICUDT_DIR... icu55/data 
checking for R_HOME... /usr/lib/R 
checking for R... /usr/lib/R/bin/R 
checking for R >= 3.1.0... no 
*** disabling C++11 use 
checking for cat... /bin/cat 
checking for gcc... gcc -std=gnu99 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.out 
checking for suffix of executables... 
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc -std=gnu99 accepts -g... yes 
checking for gcc -std=gnu99 option to accept ISO C89... none needed 
checking how to run the C preprocessor... g++ -E 
configure: error: in `/tmp/Rtmp3NFJZN/R.INSTALL28c32774afde/stringi': 
configure: error: C preprocessor "g++ -E" fails sanity check 
See `config.log' for more details 
ERROR: configuration failed for package ‘stringi’ 
* removing ‘/home/varum/R/x86_64-pc-linux-gnu-library/3.0/stringi’ 

Warning in install.packages : 
    installation of package ‘stringi’ had non-zero exit status 

The downloaded source packages are in 
    ‘/tmp/Rtmpv9QKWM/downloaded_packages’ 

Toutes les idées où le problème est?

+0

Il devrait y avoir plus de détails dans le 'config.log'. – drmariod

+0

Il y a un certain nombre de questions avec un message d'erreur similaire ou identique. Veuillez indiquer, le cas échéant, si vous avez lu pour voir si leur solution (si disponible) résout votre problème. –

Répondre

0

vérification R> = 3.1.0 ... pas

Il pourrait aider à mettre à jour votre version de R. La version actuelle est la version 3.2.2

Vérifiez les directives d'installation here.

+0

Merci pour cet indice. :) – croorc

0

installation Peut-être le g ++ pourrait aider

sudo apt-get install g++ 
+0

Merci beaucoup! Cela a aidé! – croorc