我尝试在 CentOS 6.7 上安装 "rgl",但我无法让它工作。
看到许多类似的问题,但没有解决方案对我有用。
我的系统:
仙人 6.7
R 版本 3.2.3 (2015-12-10( -- "木制圣诞树">
平台:x86_64-redhat-linux-gnu(64位(
注意:问题发生了,您可以直接跳转到UPDATE部分。当问题得到解决时,我将重新格式化整个帖子。
错误(使用生物导体(
source("https://bioconductor.org/biocLite.R")
biocLite("rgl")
...
configure: error: X11 not found but required, configure aborted.
ERROR: configuration failed for package ‘rgl’
* removing ‘/usr/lib64/R/library/rgl’
使用同样的问题
install.packages("rgl", repos="http://R-Forge.R-project.org")
我在这里
尝试了解决方案如何在 centos 6 下安装 R"rgl" 软件包?
这是我安装的 X11 库:
>yum list installed |grep X11
libX11.x86_64 1.6.0-6.el6 @base
libX11-common.noarch 1.6.0-6.el6 @base
libX11-devel.x86_64 1.6.0-6.el6 @base
但它仍然失败了。
我还安装了devtools和导入库,它没有解决问题。
source("https://bioconductor.org/biocLite.R")
library(devtools)
biocLite("rgl")
... same issue
花了几个小时,没有任何效果
注意:我成功地将它安装在我的 ubuntu 上,但没有办法让它在 centos6.7(工作站(上运行
更新
发现libpng-devel缺失(已经有,libpng,libpng10,libpng10-devel(
sudo yum install libpng-devel.x86_64
错误已更改然后我添加了更多缺少的库
sudo yum install mesa-libGL
sudo yum install mesa-libGL-devel
sudo yum install mesa-libGLU
sudo yum install mesa-libGLU-devel
错误已更改我仍然有问题
* installing *source* package ‘rgl’ ...
** package ‘rgl’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -m64 -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -m64 -std=gnu99 accepts -g... yes
checking for gcc -m64 -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -m64 -std=gnu99 -E
checking for gcc... (cached) gcc -m64 -std=gnu99
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -m64 -std=gnu99 accepts -g... (cached) yes
checking for gcc -m64 -std=gnu99 option to accept ISO C89... (cached) none needed
checking whether __attribute__((visibility())) is supported... yes
checking whether gcc -m64 -std=gnu99 accepts -fvisibility... yes
checking whether accepts -fvisibility... no
checking for libpng-config... yes
configure: using libpng-config
configure: using libpng dynamic linkage
checking for X... libraries , headers
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glEnd in -lGL... no
configure: error: missing required library GL
ERROR: configuration failed for package ‘rgl’
现在,如果我找到libGL
locate libGL
/usr/lib/libGL.la
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.361.28
/usr/lib/libGLESv1_CM.so
/usr/lib/libGLESv1_CM.so.1
/usr/lib/libGLESv1_CM_nvidia.so.1
/usr/lib/libGLESv1_CM_nvidia.so.361.28
/usr/lib/libGLESv2.so
/usr/lib/libGLESv2.so.2
/usr/lib/libGLESv2_nvidia.so.2
/usr/lib/libGLESv2_nvidia.so.361.28
/usr/lib/libGLX_indirect.so.0
/usr/lib/libGLX_nvidia.so.0
/usr/lib/libGLX_nvidia.so.361.28
/usr/lib/libGLdispatch.so.0
/usr/lib64/libGL.la
/usr/lib64/libGL.so
/usr/lib64/libGL.so.1
/usr/lib64/libGL.so.361.28
/usr/lib64/libGLESv1_CM.so
/usr/lib64/libGLESv1_CM.so.1
/usr/lib64/libGLESv1_CM_nvidia.so.1
/usr/lib64/libGLESv1_CM_nvidia.so.361.28
/usr/lib64/libGLESv2.so
/usr/lib64/libGLESv2.so.2
/usr/lib64/libGLESv2_nvidia.so.2
/usr/lib64/libGLESv2_nvidia.so.361.28
/usr/lib64/libGLU.so
/usr/lib64/libGLU.so.1
/usr/lib64/libGLU.so.1.3.1
/usr/lib64/libGLX_indirect.so.0
/usr/lib64/libGLX_nvidia.so.0
/usr/lib64/libGLX_nvidia.so.361.28
/usr/lib64/libGLdispatch.so.0
/usr/lib64/libGLw.so
/usr/lib64/libGLw.so.1
/usr/lib64/libGLw.so.1.0.0
/usr/share/doc/mesa-libGLw-6.5.1
/usr/share/doc/mesa-libGLw-6.5.1/README
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/changed_by
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/checksum_data
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/checksum_type
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/command_line
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/from_repo
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/installed_by
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/reason
/var/lib/yum/yumdb/m/010c511f597ab7af9a62cb69e3efa97a86d8aed8-mesa-libGLU-10.4.3-1.el6-x86_64/releasever
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/checksum_data
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/checksum_type
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/command_line
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/from_repo
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/installed_by
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/reason
/var/lib/yum/yumdb/m/a38f4280f482ab6f663312b4971b2355c27dedc6-mesa-libGLw-6.5.1-10.el6-x86_64/releasever
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/changed_by
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/checksum_data
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/checksum_type
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/command_line
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/from_repo
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/installed_by
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/reason
/var/lib/yum/yumdb/m/aa6576ce41dd030b88b08c1a166b3a367f685972-mesa-libGL-10.4.3-1.el6-x86_64/releasever
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/checksum_data
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/checksum_type
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/command_line
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/from_repo
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/installed_by
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/reason
/var/lib/yum/yumdb/m/adc9d6749b6c635c773e81565cd5d39b0ab3b851-mesa-libGL-devel-10.4.3-1.el6-x86_64/releasever
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/checksum_data
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/checksum_type
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/command_line
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/from_repo
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/installed_by
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/reason
/var/lib/yum/yumdb/m/dc1a62e08fc366e4a97e261f5dc94d04019e1e68-mesa-libGLU-devel-10.4.3-1.el6-x86_64/releasever
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/checksum_data
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/checksum_type
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/command_line
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/from_repo
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/installed_by
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/reason
/var/lib/yum/yumdb/m/edbad91b2990d0cab1c3e8a029bcd7129ce3a1e5-mesa-libGLw-devel-6.5.1-10.el6-x86_64/releasever
UPDATE2:
在@MartinMorgan的帮助下,我下载了ligGL软件包并手动进行了配置
./configure
给了我
configure: error: Direct rendering requires libdrm >= 2.4.38
所以我不得不安装 libdrm-devel
sudo yum install libdrm-devel
然后再次,错误更新!
configure: error: DRI3 requires xcb >= 1.9.3
但是 centos 安装了 1.9.1
我决定手动完成
wget https://xcb.freedesktop.org/dist/libxcb-1.9.3.tar.gz
但是当我点击配置时,它告诉我它需要 xcb-proto 1.9
centOS6 的 Yum 存储库仅提供 1.8
我又一次手动去了
wget https://xcb.freedesktop.org/dist/xcb-proto-1.9.tar.gz
但是当我安装它并返回 libxcb-1.9.3 时,它没有检测到安装了 xcb-proto。
而如果我从存储库安装1.8 xcb-proto,它会检测到它并告诉我它已经过时了。
通过查看何时安装了 xcb-proto 1.8
rpm -ql xcb-proto
输出为
/usr/lib/python2.6/site-packages/xcbgen
/usr/lib/python2.6/site-packages/xcbgen/__init__.py
/usr/lib/python2.6/site-packages/xcbgen/__init__.pyc
/usr/lib/python2.6/site-packages/xcbgen/__init__.pyo
/usr/lib/python2.6/site-packages/xcbgen/error.py
/usr/lib/python2.6/site-packages/xcbgen/error.pyc
/usr/lib/python2.6/site-packages/xcbgen/error.pyo
/usr/lib/python2.6/site-packages/xcbgen/expr.py
/usr/lib/python2.6/site-packages/xcbgen/expr.pyc
/usr/lib/python2.6/site-packages/xcbgen/expr.pyo
/usr/lib/python2.6/site-packages/xcbgen/matcher.py
/usr/lib/python2.6/site-packages/xcbgen/matcher.pyc
/usr/lib/python2.6/site-packages/xcbgen/matcher.pyo
/usr/lib/python2.6/site-packages/xcbgen/state.py
/usr/lib/python2.6/site-packages/xcbgen/state.pyc
/usr/lib/python2.6/site-packages/xcbgen/state.pyo
/usr/lib/python2.6/site-packages/xcbgen/xtypes.py
/usr/lib/python2.6/site-packages/xcbgen/xtypes.pyc
/usr/lib/python2.6/site-packages/xcbgen/xtypes.pyo
/usr/share/doc/xcb-proto-1.8
/usr/share/doc/xcb-proto-1.8/COPYING
/usr/share/doc/xcb-proto-1.8/NEWS
/usr/share/doc/xcb-proto-1.8/README
/usr/share/doc/xcb-proto-1.8/TODO
/usr/share/doc/xcb-proto-1.8/xml-xcb.txt
/usr/share/pkgconfig/xcb-proto.pc
/usr/share/xcb
/usr/share/xcb/bigreq.xml
/usr/share/xcb/composite.xml
/usr/share/xcb/damage.xml
/usr/share/xcb/dpms.xml
/usr/share/xcb/dri2.xml
/usr/share/xcb/ge.xml
/usr/share/xcb/glx.xml
/usr/share/xcb/randr.xml
/usr/share/xcb/record.xml
/usr/share/xcb/render.xml
/usr/share/xcb/res.xml
/usr/share/xcb/screensaver.xml
/usr/share/xcb/shape.xml
/usr/share/xcb/shm.xml
/usr/share/xcb/sync.xml
/usr/share/xcb/xc_misc.xml
/usr/share/xcb/xcb.xsd
/usr/share/xcb/xevie.xml
/usr/share/xcb/xf86dri.xml
/usr/share/xcb/xf86vidmode.xml
/usr/share/xcb/xfixes.xml
/usr/share/xcb/xinerama.xml
/usr/share/xcb/xinput.xml
/usr/share/xcb/xkb.xml
/usr/share/xcb/xprint.xml
/usr/share/xcb/xproto.xml
/usr/share/xcb/xselinux.xml
/usr/share/xcb/xtest.xml
/usr/share/xcb/xv.xml
/usr/share/xcb/xvmc.xml
而 xcb-proto 使用 python 2.7
我不太明白系统如何找到 yum 安装的软件包与从压缩包安装时如何找到它们之间的区别。
用来在 6.7(和 7.x(上获取 rgl 的软件包
yum install mesa-libGLU-devel libGL-devel libpng-devel libX11-devel