[R-sig-Debian] Help: how to install "rgdal package" on Ubuntu desktop?

Lee Hachadoorian Lee.Hachadoorian+L at gmail.com
Thu Jun 23 07:15:46 CEST 2011


On 06/22/2011 08:27 PM, 张志坤 wrote:
> Dear groups:
> I have tried to install rgdal in my Ubuntu, but it is not as straight
> as installing "sp". It demand the pre-installed GDAL and proj.4.
> I searched the source code in http://trac.osgeo.org/proj/ and
> http://trac.osgeo.org/gdal/wiki/DownloadSource. but don't know how to
> compile them.

Ethan,

You need the development packages of GDAL and proj4. Probably easier to
install from repository than from source. Try:

$ sudo apt-get install libgdal1-dev libproj-dev
$ sudo R
> install.packages("rgdal")

Best,
--Lee

-- 
Lee Hachadoorian
PhD Student, Geography
Program in Earth & Environmental Sciences
CUNY Graduate Center



More information about the R-SIG-Debian mailing list