Jesus Loves GRASS

Technical blog about GRASS/GIS,open source geoinformatics and MAPSERVER.

Thursday, November 30, 2006

After GRASS was installed.....

After GRASS is compiled the GDAL need to be recompiled pointing to the GRASS directory
>./configure –with-grass=/usr/local/grass-6.2.0 && make

Normally when using gdal (in this case gdalinfo) it may get an error message like this

>gdalinfo: error while loading shared libraries: libgrass_vect.so: cannot open shared object file: No such file or directory

This means that gdal is not finding the libraries of GRASS, the best thing is to put the GRASS path on the ld.so.config and run the ldconfig

>echo /usr/local/grass-6.2.0/lib >> /etc/ld.so.conf
>ldconfig

If you put > instead of >> it will fuck up all ld.so.conf

0 Comments:

Post a Comment

<< Home