[R-sig-Geo] Error to load rgdal

Susumu Tanimura stanimura-ngs at umin.ac.jp
Thu May 12 06:35:17 CEST 2005


Dear elijah

Thank you very much for your reply.

$ ldd /usr/lib/R/library/rgdal/libs/rgdal.so
        libR.so => not found
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40276000)
        libm.so.6 => /lib/i686/libm.so.6 (0x4032e000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40350000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40358000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
$ locate libR.so
/usr/lib/R/lib/libR.so

So, I added /usr/lib/R/lib in /etc/ld.co.conf and did /sbin/ldconfig.
Then the result of ldd was changed.

$ ldd /usr/lib/R/library/rgdal/libs/rgdal.so
        libR.so => /usr/lib/R/lib/libR.so (0x40276000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x404f2000)
        libm.so.6 => /lib/i686/libm.so.6 (0x405aa000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x405cc000)
        libc.so.6 => /lib/i686/libc.so.6 (0x405d4000)
        libg2c.so.0 => /usr/lib/libg2c.so.0 (0x4070f000)
        libreadline.so.4 => /usr/lib/libreadline.so.4 (0x4072d000)
        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x40759000)
        libdl.so.2 => /lib/libdl.so.2 (0x40799000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libgpm.so.1 => /usr/lib/libgpm.so.1 (0x4079c000)

Nevertheless, there is the same failure.

> library(rgdal)
Loading required package: abind
Loading required package: pixmap
Error in dyn.load(x, as.logical(local), as.logical(now)) : 
        unable to load shared library '/usr/lib/R/library/rgdal/libs/rgdal.so':
  /usr/lib/R/library/rgdal/libs/rgdal.so: undefined symbol: DGifCloseFile
Error in library(rgdal) : .First.lib failed for 'rgdal'

Could you give me further advice?

--
Susumu Tanimura




More information about the R-sig-Geo mailing list