【问题标题】:Error with shared library with RStudio Server与 RStudio Server 共享库时出错
【发布时间】:2016-02-27 03:36:38
【问题描述】:

Centos 6.7 机器。已按照以下说明安装 R 和 RStudio Server:

https://www.rstudio.com/products/rstudio/download-server/

  • 添加 EPEL
  • 安装R
  • 安装 RStudio 服务器

但是,在尝试启动 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 在有问题的机器上甚至正在那里寻找共享库...

难倒!感谢您的建议!

【问题讨论】:

    标签: r linux centos6 rstudio-server


    【解决方案1】:

    当我过去遇到同样的问题时,我记得我是有文件夹的:

    /usr/lib64/R/lib

    使用所需的库,所以我创建了一个符号链接:

    ln -s /usr/lib64/R /usr/local/lib64/R

    而且效果很好,也许你的情况也一样

    【讨论】:

    • 不,那没用。不过谢谢你的建议。
    【解决方案2】:

    我终于想通了。该问题是由另一个位置的旧版本 R 引起的,该位置也在我的 PATH 中,因此启动 RStudio Server 时引用了不起作用或不正确的库和可执行文件。

    我的旧版本 R 位于 /usr/local/bin 中,可能没有与 Yum 一起安装。现在一切都好!

    【讨论】:

      【解决方案3】:

      在我的情况下,我的系统 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/ 并且成功了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2011-05-29
        • 1970-01-01
        • 2017-11-05
        • 2014-12-09
        相关资源
        最近更新 更多