千家信息网

R包安装报错configure: error怎么解决

发表于:2024-09-23 作者:千家信息网编辑
千家信息网最后更新 2024年09月23日,这篇文章主要讲解了"R包安装报错configure: error怎么解决",文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习"R包安装报错configure:
千家信息网最后更新 2024年09月23日R包安装报错configure: error怎么解决

这篇文章主要讲解了"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 installationconfigure: CC: /share/work/biosoft/gcc/gcc-v6.4.0/bin/gccconfigure: CXX: g++ -std=gnu++11checking for gdal-config... nonoconfigure: 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' ... doneWarning messages:1: In install.packages("adegenet") :  installation of package 'sf' had non-zero exit status2: In install.packages("adegenet") :  installation of package 'spdep' had non-zero exit status3: In install.packages("adegenet") :  installation of package 'adegenet' had non-zero exit status
缺少必要的包,安装以下:
yum install gdal gdal-devel

感谢各位的阅读,以上就是"R包安装报错configure: error怎么解决"的内容了,经过本文的学习后,相信大家对R包安装报错configure: error怎么解决这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是,小编将为大家推送更多相关知识点的文章,欢迎关注!

0