2015-04-02 31 views
1

我在努力獲得rstudio-server連接到Debian上的R(rsession)。RStudio服務器說rsession-which-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中添加此選項,而不是​​

回答

0

它需要在rserver.conf文件中設置,而不是rsession.conf文件。改變它之後,重新啓動rstudio-server服務,你應該很好。