在 Ubuntu 和 Mac 上安装 rgl:找不到 X11 [英] Installing rgl on Ubuntu and Mac: X11 not found

查看:32
本文介绍了在 Ubuntu 和 Mac 上安装 rgl:找不到 X11的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里看到过这个问题:加载rgl时出错使用 Mac OS X 打包,但没有提到安装错误,这就是我的情况.我无法安装 rgl 包,在 R 中使用此命令:

I have seen this question here: Error in loading rgl package with Mac OS X but there is no mentioning about installation error, which is my case. I cannot install rgl package, using this command in R:

source("http://bioconductor.org/biocLite.R")
biocLite("rgl")

显示以下错误:

配置:错误:X11 未找到但需要,配置中止.错误:包rgl"的配置失败* 移除‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgl’

configure: error: X11 not found but required, configure aborted. ERROR: configuration failed for package ‘rgl’ * removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/rgl’

我查了这个地址/Library/Frameworks/R.framework/Versions/3.2/Resources/library 没有rgl文件夹,所以我不能删除aglrgl.so(或rgl.so),就是上述问题的答案.你能帮我解决这个安装问题吗?谢谢.

I checked this address /Library/Frameworks/R.framework/Versions/3.2/Resources/library and there is no rgl folder, so I cannot delete aglrgl.so (or rgl.so), which is the answer to the above-mentioned question. Can you please help me with this installation problem? Thanks.

推荐答案

所有提到的答案都是正确的;然而,没有一个适用于 Mac.

All the mentioned answers are correct; however, none is for Mac.

就我而言(我是 Mac 用户),我通过安装 XQuartz 并重新启动 R 解决了问题.

In my case (I am a Mac user), I solved the problem by installing XQuartz and restarting R.

这篇关于在 Ubuntu 和 Mac 上安装 rgl:找不到 X11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆