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

问题描述

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

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")

显示以下错误:

我检查了该地址/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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 12:06