1

我正在努力rstudio-server连接到rsessionDebian 上的 R ( )。

我以非 root 用户身份启动它。它说,除其他外,这rsession-which-r是一个无法识别的选项:

[rsession-jdm] ERROR system error 2 (No such file or directory) [path=/etc/sysconfig/i18n]; OCCURRED AT: core::Error core::FilePath::open_r(boost::shared_ptr<std::basic_istream<char, std::char_traits<char> > >*) const /home/ubuntu/rstudio/src/cpp/core/FilePath.cpp:973; LOGGED FROM: void<unnamed>::ensureLang() /home/ubuntu/rstudio/src/cpp/session/SessionMain.cpp:2764
02 Apr 2015 01:42:18 [rsession-jdm] ERROR system error 2 (No such file or directory) [path=/etc/locale.conf]; OCCURRED AT: core::Error core::FilePath::open_r(boost::shared_ptr<std::basic_istream<char, std::char_traits<char> > >*) const /home/ubuntu/rstudio/src/cpp/core/FilePath.cpp:973; LOGGED FROM: void<unnamed>::ensureLang() /home/ubuntu/rstudio/src/cpp/session/SessionMain.cpp:2764
02 Apr 2015 01:42:18 [rsession-jdm] ERROR system error 2 (No such file or directory) [path=/etc/sysconfig/language]; OCCURRED AT: core::Error core::FilePath::open_r(boost::shared_ptr<std::basic_istream<char, std::char_traits<char> > >*) const /home/ubuntu/rstudio/src/cpp/core/FilePath.cpp:973; LOGGED FROM: void<unnamed>::ensureLang() /home/ubuntu/rstudio/src/cpp/session/SessionMain.cpp:2764
Error reading /etc/rstudio/rsession.conf: unrecognised option 'rsession-which-r'

R 在 CLI 上运行良好,我可以看到它rstudio-server正在运行,但它实际上并没有连接到 R。

我也尝试过添加这个选项rserver.conf而不是rsession.conf

4

1 回答 1

1

它需要在 rserver.conf 文件中设置,而不是在 rsession.conf 文件中。更改后,重新启动 rstudio-server 服务,您应该一切顺利。

于 2016-10-06T11:54:35.660 回答