[Gdal-dev] Error compiling gdal: libgrass_I.so: cannot open shared object file

Patton, Eric epatton at nrcan.gc.ca
Wed Nov 15 11:05:38 EST 2006


Thanks for the pointers, Frank.

I removed existing Grass plugins in /usr/local/lib/gdalplugins, ran make distclean, reconfigured, and installed again. The libgrass error mentioned in the subject header is now gone, however, it's replaced by "Segmentation Fault" when I try to run any gdal program.

I don't get any obvious errors during configure or make. I'm installing in /usr/local/gdal-1.3.2, and my $LD_LIBRARY_PATH and $PATH seem OK:

$ echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/lib:/usr/local/IVS/lib

$ echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11: \ /usr/games:/usr/local/IVS/bin:/opt/bin:/opt/grass-6.3.cvs/bin_tcl: \ /opt/grass-6.3.cvs/bin_extra:/home/epatton/coderepo

My libgeos and libproj files all exist in /usr/local/lib, which is included in /etc/ld.so.conf:

$ cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/local/lib
/usr/lib
/usr/lib/atlas

Maybe try compliing without libtool?

Regards,

~ Eric. 



>Eric,

>I'm guessing you are either not running the version of GDAL you just
>installed, or you have a grass driver plugin sitting out there.  If
>gdalinfo still works despite the message then it is likely a plugin.
>Look in /usr/local/lib/gdalplugins and delete any grass plugins you
>find.  Otherwise check to see if there are any old libgdal.so type files
>sitting somewhere on your system.  "local libgdal.so" should be your
>friend
>for this.

>It is also possible that you didn't do a make clean from a previous
>build.  GDAL's build is very sloppy about reacting to configure changes.
>If you reconfigure you should also do a "make clean".






More information about the Gdal-dev mailing list