0

我想安装软件包GeoXp,但 R 不允许我...请参阅下面的错误...

>install.packages("GeoXp")
...
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/****/R/x86_64-pc-linux-gnu-library/3.0/rgl’

Warning in install.packages :
  installation of package ‘rgl’ had non-zero exit status
ERROR: dependency ‘rgl’ is not available for package ‘GeoXp’
* removing ‘/home/******/R/x86_64-pc-linux-gnu-library/3.0/GeoXp’

 Warning in install.packages :
  installation of package ‘GeoXp’ had non-zero exit status   

The downloaded source packages are in 
   ‘/tmp/RtmpAbblyJ/downloaded_packages’

> library("GeoXp")
Error in library("GeoXp") : there is no package called ‘GeoXp’ 

好吧,依赖项似乎有问题...但是安装rgl也不起作用...

这是我的会话信息:

> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=de_DE.UTF-8       LC_NUMERIC=C
     LC_TIME=de_DE.UTF-8        LC_COLLATE=de_DE.UTF-8       
     LC_MONETARY=de_DE.UTF-8    LC_MESSAGES=de_DE.UTF-8   
 [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C                     
     LC_ADDRESS=C               LC_TELEPHONE=C  
     LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods 
    base     

other attached packages:
[1] spacetime_1.1-3 sp_1.0-17      

loaded via a namespace (and not attached):
[1] grid_3.0.2       intervals_0.15.0 lattice_0.20-29 
    tools_3.0.2      xts_0.9-7        zoo_1.7-11      

我能做些什么?

4

2 回答 2

2

GeoXp依赖于rgl,尝试先安装它,但在那里失败。rgl需要有 X11 开发库,以及(开源)OpenGL 开发和运行时库(mesa)。对于 Ubuntu,您需要先安装系统包libgl1-mesa-devlibglu1-mesa-dev(使用 apt-get 或类似的东西),然后安装在 R 包rgl中,然后GeoXp.

于 2015-02-05T10:32:00.963 回答
0

我认为问题是你必须安装 X 库和 gl

操作,对不起@Pascal,我没有看到你的评论。

于 2015-02-05T10:29:28.210 回答