我正在尝试在 R 上安装 rgdal 库,但我遇到了一些困难。也许我是一个天真的错误或纯粹的新手:P。我在跑步:
经销商编号:Ubuntu;说明:Ubuntu 17.10;发布:17.10;代号:巧夺天工
R 版本 3.4.2 (2017-09-28) -- 《短暂的夏天》;版权所有 (C) 2017 R 统计计算基金会;平台:x86_64-pc-linux-gnu(64位)
当我尝试install.packages('rgdal')时,显示以下错误:
Installing package into ‘/home/jonathan/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rgdal_1.2-18.tar.gz'
Content type 'application/x-gzip' length 1650578 bytes (1.6 MB)
==================================================
downloaded 1.6 MB
* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgdal: 1.2-18
checking for /usr/bin/svnversion... no
configure: svn revision: 718
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/jonathan/R/x86_64-pc-linux-gnu-library/3.4/rgdal’
Warning in install.packages :
installation of package ‘rgdal’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmpt88o8k/downloaded_packages’