2015-07-12 18 views
10

Non riesco a installare pacchetti da CRAN dopo aver aggiornato R da 3.1.3 a 3.2.1. Il messaggio di errore è che l'oggetto condiviso internet.so non può essere caricato.R-3.2.1 impossibile caricare l'oggetto condiviso internet.so

install.packages("randomForest") 
Installing package into ‘/gs/project/feb-684-aa/BIF/R/R-3.2.1/library’ (as ‘lib’ is unspecified) 
--- Please select a CRAN mirror for use in this session --- 
Error in url("http://cran.r-project.org/CRAN_mirrors.csv") : 
    internet routines cannot be loaded 
In addition: Warning message: 
In url("http://cran.r-project.org/CRAN_mirrors.csv") : 
    unable to load shared object '/software/areas/ircm/tools/R-3.2.1/lib64/R/modules//internet.so': 
    /software/areas/ircm/tools/R-3.2.1/lib64/R/modules//internet.so: undefined symbol: curl_multi_wait 
> sessionInfo() 
R version 3.2.1 (2015-06-18) 
Platform: x86_64-unknown-linux-gnu (64-bit) 
Running under: CentOS release 6.5 (Final) 

locale: 
[1] LC_CTYPE=en_CA.UTF-8  LC_NUMERIC=C    
[3] LC_TIME=en_CA.UTF-8  LC_COLLATE=en_CA.UTF-8  
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8 
[7] LC_PAPER=en_CA.UTF-8  LC_NAME=C     
[9] LC_ADDRESS=C    LC_TELEPHONE=C    
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

other attached packages: 
[1] nvimcom_0.9-8 

loaded via a namespace (and not attached): 
[1] tools_3.2.1 

[[email protected] BIF]$ ls /software/areas/ircm/tools/R-3.2.1/lib64/R/modules//internet.so -l 
-rwxrwxr-x 1 blancha feb-684-01 275221 Jul 12 09:47 /software/areas/ircm/tools/R-3.2.1/lib64/R/modules//internet.so 

Il seguente messaggio sembra risolvere un problema simile. Error in install.packages: internet routines cannot be loaded using StatET while it works in R console

+2

Come è stato installato R? Tramite i repository ufficiali dei pacchetti? Sembra che la versione installata di R non sia compatibile con la versione di arricciatura installata. Più specificamente, R richiede una funzione di curl, '' 'curl_multi_wait''', che sembra essere stata introdotta in curl intorno al 2013. La tua versione di arricciatura potrebbe essere più vecchia di quella. – mdiener

+1

La versione minima di curl/libcurl dovrebbe essere 7.28.0, come da [documentazione] (http://curl.haxx.se/libcurl/c/curl_multi_wait.html). Quale versione hai installato? – mdiener

+0

Ho installato la versione arricciata 7.35. Ho aggiornato a 7.43 e reinstallato R-3.2.1. Ho ancora esattamente la stessa versione di errore. R-3.2.1 è stato scaricato da CRAN. Sono stato installato dal pacchetto sorgente. wget http://cran.utstat.utoronto.ca/src/base/R-3/R-3.2.1.tar.gz – Alex

risposta

3

Riparato! Grazie @ David Robinson per i tuoi suggerimenti. Mi hanno messo sulla strada giusta.

Ho appena aggiunto il seguente comando al mio .bash_profile, e il problema è stato risolto:

export LD_LIBRARY_PATH=$TOOLS/curl-7.43.0/lib:$LD_LIBRARY_PATH