这篇文章主要讲解了“R包安装报错configure: error怎么解决”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“R包安装报错configure: error怎么解决”吧!
configure: error: gdal-config not found or not executable.
* installing *source* package ‘sf’ ... ** package ‘sf’ successfully unpacked and MD5 sums checked ** using staged installation configure: CC: /share/work/biosoft/gcc/gcc-v6.4.0/bin/gcc configure: CXX: g++ -std=gnu++11 checking for gdal-config... no no configure: error: gdal-config not found or not executable. ERROR: configuration failed for package ‘sf’ * removing ‘/share/work/biosoft/R/R-v3.6.1/lib64/R/library/sf’ ERROR: dependency ‘sf’ is not available for package ‘spdep’ * removing ‘/share/work/biosoft/R/R-v3.6.1/lib64/R/library/spdep’ ERROR: dependency ‘spdep’ is not available for package ‘adegenet’ * removing ‘/share/work/biosoft/R/R-v3.6.1/lib64/R/library/adegenet’ The downloaded source packages are in ‘/tmp/RtmpuYCUHI/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning messages: 1: In install.packages("adegenet") : installation of package ‘sf’ had non-zero exit status 2: In install.packages("adegenet") : installation of package ‘spdep’ had non-zero exit status 3: In install.packages("adegenet") : installation of package ‘adegenet’ had non-zero exit status
缺少必要的包,安装以下:
yum install gdal gdal-devel
感谢各位的阅读,以上就是“R包安装报错configure: error怎么解决”的内容了,经过本文的学习后,相信大家对R包安装报错configure: error怎么解决这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。