[英]R - can't install package "rgl"
I've followed as many threads as I can on this to resolve, but no luck.我已经按照尽可能多的线程来解决这个问题,但没有运气。 Simply can't install R package "rgl".
根本无法安装 R 包“rgl”。 I have Upgraded Ubuntu server 16 to R version 3.3.1.
我已将 Ubuntu 服务器 16 升级到 R 版本 3.3.1。
PuTTY X11 proxy: Unsupported authorisation protocol
Warning in rgl.init(initValue, onlyNULL) :
RGL: unable to open X11 display
Warning: 'rgl_init' failed, running with rgl.useNULL = TRUE
* DONE (rgl)
I've tried these bits of advice: Error in installing rgl package error: installation of package 'rgl' had non-zero exit status我已经尝试了这些建议: 安装 rgl 包错误错误:安装包 'rgl' 的退出状态非零
I have X11 working fine outside R: http://www.tomsitpro.com/articles/how-to-use-x11-forwarding,2-843.html我有 X11 在 R 之外工作正常: http : //www.tomsitpro.com/articles/how-to-use-x11-forwarding,2-843.html
but still get the error above.但仍然得到上面的错误。
Thanks for any help,谢谢你的帮助,
S. S。
Ok, this seems to be solved.好的,这似乎解决了。 I was root, after exiting and using: sudo R
我是 root,退出并使用后: sudo R
install.packages("rgl")
install.packages("rgl")
everything was ok.一切正常。 so it seems you must install as sudo, not root, for everything to go in the right place.
因此,您似乎必须以 sudo 而不是 root 身份安装,才能将所有内容放在正确的位置。
Thanks,谢谢,
S. S。
I checked it.我查了一下。 Everything seems to work properly... Rscript - screen
一切似乎都正常工作...... Rscript - 屏幕
But in "related" here I see some questions about error in installing rgl.但是在“相关”中,我看到了一些关于安装 rgl 时出错的问题。 Take a look eg Error in installing rgl package
看一看,例如安装 rgl 包时出错
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.