[R-sig-Geo] rgdal loading problem...

Paul Hiemstra paul.hiemstra at knmi.nl
Thu Feb 9 16:20:33 CET 2012


The env. variable you need is probably LD_LIBRARY_PATH...

cheers,
Paul

On 02/08/2012 10:18 PM, Jonathan Greenberg wrote:
> R-sig-geo'ers:
>
> I'm trying to get the Eclipse plugin for R ("Stat-et") working, but I've
> run into a curious problem with rgdal I was hoping to get some help with.
>  When loading rgdal from within the remote connection in Eclipse, I get
> this error:
>
>> require("rgdal")
> Loading required package: rgdal
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>   unable to load shared object
> '/usr/apps/oa/lib64/R/library/rgdal/libs/rgdal.so':
>   libgdal.so.1: cannot open shared object file: No such file or directory
>
> Other packages work fine via the remote "load", e.g.:
>> require("raster")
> Loading required package: raster
> raster version 1.9-64 (16-January-2012)
>
>
> Curiously, when launch of R via the command line (connecting to the same
> server as above via SSH) I get the normal, no-problem load:
>> require("rgdal")
> Loading required package: rgdal
> Loading required package: sp
> Geospatial Data Abstraction Library extensions to R successfully loaded
> Loaded GDAL runtime: GDAL 1.9.0, released 2011/12/29
> Path to GDAL shared files: /usr/apps/oa/share/gdal
> Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
> Path to PROJ.4 shared files: (autodetected)
>
> I suspect something is going on with the environment variables between the
> Stat-ET launching of R, and the command-line launching.  A Sys.getenv()
> reveals that the environment variables are different, but I'm unclear which
> variable(s?) I should be looking for to fix this problem (or perhaps it is
> another issue altogether).  Thoughts?  Cheers!
>
> --j
>
>
>


-- 
Paul Hiemstra, Ph.D.
Global Climate Division
Royal Netherlands Meteorological Institute (KNMI)
Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39
P.O. Box 201 | 3730 AE | De Bilt
tel: +31 30 2206 494

http://intamap.geo.uu.nl/~paul
http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770



More information about the R-sig-Geo mailing list