R 包“GeoXp”的安装失败
Installation of R package `GeoXp` fails
我想安装包 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
我能做什么?
我认为问题是你必须安装 X 库和 gl
糟糕,抱歉@Pascal,我没有看到你的评论。
GeoXp
依赖于 rgl
,尝试先安装它,但在那里失败了。 rgl
需要 X11 开发库,以及(开源)OpenGL 开发和 运行-time 库 (mesa)。对于 Ubuntu,您需要先安装系统包 libgl1-mesa-dev
和 libglu1-mesa-dev
(使用 apt-get 或类似的东西),然后在 R 包 rgl
中安装,然后 GeoXp
.
我想安装包 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
我能做什么?
我认为问题是你必须安装 X 库和 gl
糟糕,抱歉@Pascal,我没有看到你的评论。
GeoXp
依赖于 rgl
,尝试先安装它,但在那里失败了。 rgl
需要 X11 开发库,以及(开源)OpenGL 开发和 运行-time 库 (mesa)。对于 Ubuntu,您需要先安装系统包 libgl1-mesa-dev
和 libglu1-mesa-dev
(使用 apt-get 或类似的东西),然后在 R 包 rgl
中安装,然后 GeoXp
.