[R-sig-Geo] rgdal installation - libraries in non-standard locations
jgarcia at ija.csic.es
jgarcia at ija.csic.es
Tue Oct 25 16:51:12 CEST 2011
Hi Paul,
Thanks, I've just tried that but the error message remains the same.
Cheers,
Javier
...
> Hi,
>
> A friend had this exact problem. I think it was fixed by setting an
> evironment variable PROJ_LIB to the directory where the proj libs are
> located.
>
> cheers,
> Paul
>
> On 10/24/2011 03:55 PM, jgarcia at ija.csic.es wrote:
>> Hi all,
>> I am having problems installing RGDAL (with R 2.13.0) in a linux Redhat
>> box where I do not have administrative privileges, so I have to install
>> new libraries and R packages in my $HOME (/users/jgp) folder. The R core
>> is, however, preinstalled.
>>
>> After installation of proj-4.7.0 and gdal-1.81.1 from sources in my
>> folder /users/jgp, libraries are located in /users/jgp/lib and includes
>> in
>> /users/jgp/include for both libraries.
>>
>> Then, installation of:
>>
>> R CMD INSTALL --configure-args='--with-proj-lib=/users/jgp/lib'
>> rgdal_0.7-1.tar.gz
>>
>> gives the output log (the end of it):
>>
>> ...
>> export PKG_LIBS='-L/users/jgp/lib -l'
>> R CMD INSTALL --configure-args='--with-proj-lib=/users/jgp/lib'
>> rgdal_0.7-1.tar.gz
>> checking proj_api.h usability... yes
>> checking proj_api.h presence... yes
>> checking for proj_api.h... yes
>> checking for pj_init_plus in -lproj... no
>> Error: libproj.a not found.
>> If the PROJ.4 library is installed in a non-standard location,
>> use --configure-args='--with-proj-lib=/opt/local/lib' for example,
>> replacing /opt/local/* with appropriate values for your installation.
>> If PROJ.4 is not installed, install it.
>> ERROR: configuration failed for package 'rgdal'
>> * removing '/users/jgp/R/x86_64-redhat-linux-gnu-library/2.13/rgdal'
>>
>> Please, could you help with this? I've already spent with this an insane
>> amount of hours without any success.
>>
>> Thanks
>> Javier
>> ...
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
> --
> 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