gpt4 book ai didi

r - 安装 RandForestGUI 时出错(因此出现 'rgl'、 'X11) in "R 版本 2.13.1 (2011-07-08))”

转载 作者:行者123 更新时间:2023-12-04 16:06:17 26 4
gpt4 key购买 nike

我已经在“Ubuntu 10.04 - Lucid Lynx”上安装了“R version 2.13.1 (2011-07-08)”。(我使用 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?非常感谢,罗伯托·斯科蒂

最佳答案

几个先决条件:

  • 使用来自 the CRAN Ubuntu repository 的 R 二进制文件.
  • 如果您还没有这样做,请执行 sudo apt-get install r-base-dev 以补充您的 R 环境以进行本地包安装。
  • 然后执行 sudo apt-get install r-cran-rgl 因为这是 OpenGL header 的最难

现在用 RForestGUI 包和它的其他依赖包再试一次,逐个包分析错误。

关于r - 安装 RandForestGUI 时出错(因此出现 'rgl'、 'X11) in "R 版本 2.13.1 (2011-07-08))”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6841726/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com