10
將R從3.1.3升級到3.2.1後,我無法安裝來自CRAN的軟件包。 錯誤消息是無法加載共享對象internet.so。R-3.2.1無法加載共享對象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
以下帖子似乎是爲了解決類似的問題。 Error in install.packages: internet routines cannot be loaded using StatET while it works in R console
你怎麼安裝R?通過官方軟件倉庫?看來你安裝的R版本與curl的安裝版本不兼容。更具體地說,R需要一個curl函數'''''curl_multi_wait''',這似乎是在2013年左右的curl中引入的。你的curl版本可能比這個更早。 – mdiener
根據[documentation](http://curl.haxx.se/libcurl/c/curl_multi_wait.html),curl/libcurl的最低版本應爲7.28.0。你安裝了哪個版本? – mdiener
我已經安裝了curl 7.35版本。 我已更新至7.43,並重新安裝了R-3.2.1。 我仍然得到完全相同的錯誤版本。 R-3.2.1是從CRAN下載的。 我是從源碼包安裝的。 wget http://cran.utstat.utoronto.ca/src/base/R-3/R-3.2.1.tar.gz – Alex