Centos 6.7机器。按照这些说明安装R和RStudio Server:
https://www.rstudio.com/products/rstudio/download-server/
但是,在尝试启动RStudio时,我在/ var / log / messages中看到以下内容:
Nov 24 07:39:35 myserver rserver[14346]: ERROR 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?; LOGGED FROM: int main(int, char* const*) /root/rstudio/src/cpp/server/ServerMain.cpp:402
Nov 24 07:39:35 myserver init: rstudio-server main process (14346) terminated with status 1
Nov 24 07:39:35 myserver init: rstudio-server respawning too fast, stopped
在另一台机器上完全全新安装,这些安装步骤正常,RStudio无错误地启动,/ usr / local / lib64 / R /甚至不存在,所以我很困惑为什么RStudio会出现问题的机器甚至在那里寻找共享库...
难倒!你的建议赞赏!
丹
答案 0 :(得分:0)
当我在过去遇到同样的问题时,我记得我的确有文件夹:
的/ usr / lib64下/ R / lib中
使用所需的库,所以我创建了一个符号链接:
ln -s /usr/lib64/R /usr/local/lib64/R
它运作良好,也许你的情况是一样的
答案 1 :(得分:0)
我终于弄明白了。问题是由另一个位置的旧版R引起的,该版本也在我的PATH中,因此启动RStudio Server引用的库和可执行文件不起作用或不正确。
我的旧版R在/ usr / local / bin中,可能没有安装Yum。现在好了!
答案 2 :(得分:0)
在我的情况下,我的系统R2.15.1和R3.1.0中有三个R版本,第三个版本是使用备选选项/usr/local/R/3.1.0安装的。我刚刚将/usr/lib64/R/lib/libR.so复制到/usr/local/R/3.1.0/lib64/R/lib/并且有效。