安装R包`GeoXp`失败

时间:2015-02-05 10:19:18

标签: r install.packages sp

我想安装软件包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      

我该怎么办?

2 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:0)

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

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