This doesn't seem to be a permission issue, as there are several other compiled modules in the R library directory. It seems pretty clear that either libgdal.so.1 is pointing to the wrong place, or does not have references to PROJ.4.
Any ideas? Any hints? I could sure use the extra computing power right now. Thanks! JP On Sat, Oct 1, 2011 at 11:15 AM, JP Glutting <jpglutt...@gmail.com> wrote: > Hi, > > I am trying to do some heavy analysis on a server that I have been given an > account on. It is running Debian lenny, so the version of R is 2.7, and I > need at least 2.10. > > I have downloaded and installed R 2.13 and gdal 1.8.1 into a local > directory /home/jpglutting/local (with bin/ lib/ include/ etc. in there). I > have pre-pended /home/jpglutting/local/bin to my path. > > R works fine and I can all the packages (using > "--prefix=/home/jpglutting/local") I need and get everything working fine > except rgdal. gdal-config and gdalwarp seem to work fine (I didn't test > them, but I did call the from the command line, and they return the normal > usage information). From the R prompt I am running: > > install.packages("rgdal", > configure.args="--with-proj-lib=/home/jpglutting/local/lib"), but I get the > following error when trying to install rgdal: > > *** R* > *** inst* > *** preparing package for lazy loading* > *** help* > **** installing help indices* > *** building package indices ...* > *** testing if installed package can be loaded* > *Error in dyn.load(file, DLLpath = DLLpath, ...) : * > * unable to load shared object > '/home/jpglutting/local/lib64/R/library/rgdal/libs/rgdal.so':* > * libgdal.so.1: cannot open shared object file: No such file or directory > * > *Error: loading failed* > *Execution halted* > *ERROR: loading failed* > ** removing /home/jpglutting/local/lib64/R/library/rgdal* > * > * > *The downloaded packages are in* > * /tmp/RtmpOcXpYE/downloaded_packages* > *Updating HTML index of packages in '.Library'* > *Making packages.html ... done* > *Warning message:* > *In install.packages("rgdal", configure.args = > "--with-proj-lib=/home/jpglutting/local/lib") :* > * installation of package 'rgdal' had non-zero exit status* > > The problem seems to be farther up, where I get: > > *checking for pj_init_plus in -lproj... yes* > *./proj_conf_test: error while loading shared libraries: libgdal.so.1: > cannot open shared object file: No such file or directory* > *PROJ.4 Version 4.7 or earlier* > *./proj_conf_test: error while loading shared libraries: libgdal.so.1: > cannot open shared object file: No such file or directory* > *./proj_conf_test: error while loading shared libraries: libgdal.so.1: > cannot open shared object file: No such file or directory* > *Package CPP flags: -I/home/jpglutting/local/include* > *Package LIBS: -L/home/jpglutting/local/lib -L/home/jpglutting/local/lib > -lgdal* > *configure: creating ./config.status* > *config.status: creating src/Makevars* > *** libs* > > The file libgdal.so.1 does exist, in /home/jpglutting/local/lib. It is a > symlink to libgdal.so.1.15.1. I am not sure what proj_conf_test is, but it > seems to either not be finding libgdal.so.1 or not finding the PROJ.4 > libraries. I installed PROJ.4 version 4.7.0, just in case (although I > believe they are included with the GDAL source). The include directories for > proj are in /home/jpglutting/local/include/proj. Do I need to include the > proj sub-directory as well? > > I am not sure what the problem is, whether it is within libgdal.so.1 trying > to call PROJ.4 or whether there is a problem finding/loading libgdal.so.1 > itself. It seems to be the latter, but R seems to know to look in > /home/jpglutting/local/lib, so I am not sure what else to do. Is there > another argument I should be passing to the R installer? > > Has anyone seen this kind of error before? > > Thanks! > JP > [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo