R 包 rgl 安装失败, X11 not found but required, configure aborted
* installing *source* package ‘rgl’ ... ** package ‘rgl’ successfully unpacked and MD5 sums checked checking for gcc... gcc -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 -std=gnu99 accepts -g... yes checking for gcc -std=gnu99 option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -std=gnu99 -E checking for gcc... (cached) gcc -std=gnu99 checking whether we are using the GNU C compiler... (cached) yes checking whether gcc -std=gnu99 accepts -g... (cached) yes checking for gcc -std=gnu99 option to accept ISO C89... (cached) none needed checking whether __attribute__((visibility())) is supported... yes checking whether gcc -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... no configure: error: X11 not found but required, configure aborted. ERROR: configuration failed for package ‘rgl’ * removing ‘/home/ds/R/x86_64-pc-linux-gnu-library/3.1/rgl’ Warning in install.packages : installation of package ‘rgl’ had non-zero exit status
在安装Linux 中 R 3.6.1中安装 monocle 时,依赖包 rgl 安装失败,报告显示 X11 not found but required, configure aborted。
从网上索罗了各种教程也用conda 安装了各种网上所说的依赖库,都不奏效。最后通过 conda install -c r r-rgl 完美解决问题。