r - rgdal package installation -
the issue here not how plot maps through r, have found pretty nice illustration here, rather how create work. in fact, unable load library rgdal
:
library(rgdal) error in library(rgdal) : there no bundle called ‘rgdal’
however, when seek install above bundle manually, next error:
.... configure: error: proj_api.h not found in standard or given locations. error: configuration failed bundle ‘rgdal’ * removing ‘/home/eualin/r/i686-pc-linux-gnu-library/2.15/rgdal’ warning in install.packages : installation of bundle ‘/home/eualin/downloads/rgdal_0.8-5.tar.gz’ had non-zero exit status
any input welcome!
i f @ package page on cran, see next :
systemrequirements: building source: gdal >= 1.7.1 library http://trac.osgeo.org/gdal/wiki/downloadsource , proj.4 (proj >= 4.4.9) http://trac.osgeo.org/proj/; gdal osx frameworks built william kyngesburye @ http://www.kyngchaos.com/ may used source installs on osx.
as seem under linux, build bundle source, have install corresponding libraries on system. if under mint, ubuntu or debian derivative, can :
$ sudo apt-get install libgdal1-dev libproj-dev
one tip can useful, still under debian based system, install apt-file
bundle , run :
$ sudo apt-file update
then, when error such :
configure: error: proj_api.h not found in standard or given locations.
you can utilize next command find bundle must install missing file :
$ apt-file search proj_api.h libproj-dev: /usr/include/proj_api.h
r maps
No comments:
Post a Comment