我懷疑我的R安裝有問題,這與「--enable-R-shlib」有關。R安裝爲RHive和/或RStudio(「 - enable-R-shlib」)
有人可以解釋,如果這是我可以使用apt-get來修復?
更具體地說:
我有麻煩安裝RHive包。 我安裝ř從無到有,以下的說明在(例如): http://cran.ru.ac.za/bin/linux/ubuntu/
基本上,只是做:
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
接着我打開R和安裝rJava:
install.packages("rJava")
其工作得很好。 接下來,我嘗試安裝RHive:
install.packages("RHive")
此時安裝失敗,出現以下消息:
* installing *source* package ‘Rserve’ ...
** package ‘Rserve’ successfully unpacked and MD5 sums checked
checking whether to compile the server... yes
configure: error: R was configured without --enable-R-shlib or --enable-R-static-lib
*** Rserve requires R (shared or static) library. ***
*** Please install R library or compile R with either --enable-R-shlib ***
*** or --enable-R-static-lib support ***
我應該怎麼辦?
另外,我安裝RStudio和失敗在啓動時有一個相關的消息:
"R shared library (/usr/local/lib64/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option"
所有這一切都使我相信它是所有涉及到同樣的問題。奇怪的是,我在不同的機器上遵循相同的程序,並且所有程序似乎都很好...
你運行什麼版本的R?你是如何安裝R的? – Dason 2012-03-05 16:06:56