[R-sig-Geo] libproj errors
Dave Roberts
dvrbts at ecology.msu.montana.edu
Thu Jun 10 23:45:50 CEST 2010
Friends,
I recently became a GRASS convert. I have been an R user for a long
time, so naturally I have tried spgrass6. Unfortunately I have yet to
get it to work. The beginning goes well
> library(spgrass6)
Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.5.3, released 2008/09/09
Path to GDAL shared files: /usr/share/gdal
Loaded PROJ.4 runtime: Rel. 4.6.1, 21 August 2008
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: 6.3.0
and location: grte
but then (despite the reference to PROJ.4 above) when I try and get a
raster into R I get an error
> test <- readRAST6('elev_30')
Error in .local(.Object, ...) :
GDAL Error 1: libproj.so: cannot open shared object file: No such file
or directory
but it appears to be there (twice actually)
> system('find /usr -name libproj.so')
/usr/local/lib/libproj.so
/usr/lib/libproj.so
I copied it from usr/local/lib to usr/lib thinking maybe it wasn't
looking at the right path, but it doesn't seem to find it in either
location. This appears to be a GDAL error, rather than an R or spgrass6
error, but GRASS runs fine.
FWIW I'm running Fedora 10 x86_64, GRASS 6.3, GDAL 1.5.3, PROJ.4 4.6.1
Thanks in advance for any help, Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David W. Roberts office 406-994-4548
Department of Ecology email droberts at montana.edu
Montana State University
Bozeman, MT 59717-3460
More information about the R-sig-Geo
mailing list