我怀疑我的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