R 包安装报错:configure: error: gdal-config not found or not executable.

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 
  • 发表于 2020-10-19 17:14
  • 阅读 ( 7884 )
  • 分类:R

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

658 篇文章

作家榜 »

  1. omicsgene 658 文章
  2. 安生水 328 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. CORNERSTONE 72 文章
  7. xun 68 文章
  8. rzx 67 文章