我已经安装了“R版本2.13.1(2011-07-08)”,而不是“Ubuntu 10.04 - Lucid Lynx”。 (我使用RStudio 0.94.92),编译我已安装的许多不同软件包所需的所有标头。 我卡住了: install.packages(“RandForestGUI”)。一切顺利,直到
.....
* DONE (sciplot)
ERROR: dependency ‘rgl’ is not available for package ‘clusterSim’
* removing ‘/home/rs/R/i486-pc-linux-gnu-library/2.13/clusterSim’
Warning in install.packages :
installation of package 'clusterSim' had non-zero exit status
ERROR: dependency ‘clusterSim’ is not available for package ‘RandForestGUI’
* removing ‘/home/rs/R/i486-pc-linux-gnu-library/2.13/RandForestGUI’
Warning in install.packages :
installation of package 'RandForestGUI' had non-zero exit status
我尝试: install.packages(“rgl”),但
Installing package(s) into ‘/home/rs/R/i486-pc-linux-gnu-library/2.13’
(as ‘lib’ is unspecified)
provo con l'URL 'http://rm.mirror.garr.it/mirrors/CRAN/src/contrib/rgl_0.92.798.tar.gz'
Content type 'application/x-gzip' length 1677772 bytes (1.6 Mb)
URL aperto
==================================================
downloaded 1.6 Mb
* installing *source* package ‘rgl’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
….
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... no
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package ‘rgl’
* removing ‘/home/rs/R/i486-pc-linux-gnu-library/2.13/rgl’
Warning in install.packages :
installation of package 'rgl' had non-zero exit status
最后我尝试了: install.packages(“X11”)和
Installing package(s) into ‘/home/rs/R/i486-pc-linux-gnu-library/2.13’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘X11’ is not available (for R version 2.13.1)
......卡住了!。
“R版本2.13.1(2011-07-08)”中是否可以有 RandForestGUI ? 非常感谢Roberto Scotti
答案 0 :(得分:5)
一些必要条件:
sudo apt-get install r-base-dev
补充您的R环境以进行本地软件包安装。sudo apt-get install r-cran-rgl
,因为那是最难的OpenGL标头。 现在再次使用RForestGUI
包及其他依赖项,并按包分析错误包。
答案 1 :(得分:2)
该错误表示您没有适用于您的操作系统的相关X11标头包。这是不 R包。您需要使用Ubuntu提供的任何工具来安装它(因为它是Debian off-shoot,apt get
应该可以工作,但是可能有其他优选的技术来向您的操作系统添加软件包。
R安装和管理手册建议,对于Debian,所需的相关操作系统包是xorg-dev
。尝试使用Ubuntu中的软件包管理器进行安装,然后重新在R中安装 rgl 。
@Dirk Eddelbuettel毫无疑问会评论Ubuntu中有许多R包的预构建软件包,或者至少是R开发的元软件包,它将确保您拥有适用于您操作系统的所有标头软件包,以便您可以在安装时构建R包。我不使用Ubuntu或Debian,所以我无法帮助解决你的问题。
答案 2 :(得分:0)