* 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
 
                如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!
