On Thu, Jun 23, 2011 at 7:15 AM, Lee Hachadoorian <
[email protected]> wrote:

> 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
>

I would actually *not recommend* to use sudo to run R - unless you need a
systemwide installation. I usually use R without sudo, and the packages are
installed in my home directory, which I prefer

Cheers,

Rainer


> $ sudo R
> > install.packages("rgdal")
>
> Best,
> --Lee
>
> --
> Lee Hachadoorian
> PhD Student, Geography
> Program in Earth & Environmental Sciences
> CUNY Graduate Center
>
> _______________________________________________
> R-SIG-Debian mailing list
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      [email protected]

Skype:      RMkrug

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Debian mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to