ubuntu 17.10 上的 rgdal 安装错误
rgdal installation error on ubuntu 17.10
我正在尝试在 R 上安装 rgdal 库,但我遇到了一些困难。也许我是一个天真的错误或纯粹的新手:P。我是 运行:
经销商编号:Ubuntu;说明:Ubuntu 17.10 ;发布:17.10;代号:巧妙
R 版本 3.4.2 (2017-09-28) -- "Short Summer" ;
版权所有 (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’
我尝试了 this and ,但 none 很有帮助。
谢谢支持
error: gdal-config not found
是否安装了gdal? ....
解决方案:sudo apt install libgdal-dev
:提供/usr/bin/gdal-config
我正在尝试在 R 上安装 rgdal 库,但我遇到了一些困难。也许我是一个天真的错误或纯粹的新手:P。我是 运行:
经销商编号:Ubuntu;说明:Ubuntu 17.10 ;发布:17.10;代号:巧妙
R 版本 3.4.2 (2017-09-28) -- "Short Summer" ; 版权所有 (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’
我尝试了 this and
error: gdal-config not found
是否安装了gdal? ....
解决方案:sudo apt install libgdal-dev
:提供/usr/bin/gdal-config