[R-sig-Geo] rgdal install fails (following GDAL building from source)

Roger Bivand Roger.Bivand at nhh.no
Mon Jul 19 11:03:02 CEST 2010


On Mon, 19 Jul 2010, Pierre Roudier wrote:

> Thanks for the reply Roger,
>
>> Does gdalinfo --version run? Did you run ldconfig -v as su after
>> installing GDAL?
>
> Yes, I ran su -c 'ldconfig -v' after the make install, and at the
> moment gdalinfo --version gives me the good output (GDAL 1.7.2,
> released 2010/04/23).
>
>> Check that GDAL itself can find its own shared objects,
>> if it can, then so should rgdal.
>
> How could I do that? I had the same idea that if GDAL is running,
> rgdal should be running as well, but I only checked using gdalinfo.
>
> Moreover, if it could be of any help, here is the interesting bit
> during the compilation of rgdal:
>
> ...
> 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_conf_test: error while loading shared libraries: libgdal.so.1:
> cannot open shared object file: No such file or directory
> Package CPP flags: -I/usr/local/include
> Package LIBS: -L/usr/local/lib -lgdal
> ...

Is PROJ.4 installed correctly? There is no reason for it to depend on GDAL 
- my RHEL5 says:

$ ldd `which proj`
         libproj.so.0 => /usr/local/lib/libproj.so.0 (0x00002adcf57b0000)
         libm.so.6 => /lib64/libm.so.6 (0x000000308bc00000)
         libc.so.6 => /lib64/libc.so.6 (0x000000308b800000)
         /lib64/ld-linux-x86-64.so.2 (0x000000308b400000)

and

$ proj
Rel. 4.7.1, 23 September 2009
usage: proj [ -beEfiIlormsStTvVwW [args] ] [ +opts[=arg] ] [ files ]

with no dependency on GDAL. Do you maybe have a stale GRASS GDAL plugin 
hanging around?

Roger

>
> Thanks for the help,
>
> Pierre
>
>>
>> Hope this helps,
>>
>> Roger
>>
>>>
>>> Thanks for any hints.
>>>
>>> Here is my config:
>>>
>>> uname -a
>>> Linux 2.6.33.6-147.fc13.x86_64 #1 SMP Tue Jul 6 22:32:17 UTC 2010
>>> x86_64 x86_64 x86_64 GNU/Linux
>>>
>>> Distro : Fedora 13 x86_64 (running KDE)
>>>
>>> gdalinfo --version
>>> GDAL 1.7.2, released 2010/04/23
>>>
>>> The infamous libgdal.so file is located in /usr/local/lib/
>>>
>>> sessionInfo()
>>> R version 2.11.1 (2010-05-31)
>>> x86_64-redhat-linux-gnu
>>>
>>> locale:
>>> [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
>>> [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
>>> [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8
>>> [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
>>> [9] LC_ADDRESS=C               LC_TELEPHONE=C
>>> [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
>>>
>>> attached base packages:
>>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>>
>>> loaded via a namespace (and not attached):
>>> [1] tcltk_2.11.1 tools_2.11.1
>>>
>>> Cheers,
>>>
>>> Pierre
>>>
>>> _______________________________________________
>>> R-sig-Geo mailing list
>>> R-sig-Geo at stat.math.ethz.ch
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>>
>>
>> --
>> Roger Bivand
>> Economic Geography Section, Department of Economics, Norwegian School of
>> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
>> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
>> e-mail: Roger.Bivand at nhh.no
>>
>>
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no



More information about the R-sig-Geo mailing list