[GRASS-user] GDAL-GRASS Error

Hi all,

When I run --with-grass=/usr/local/grass-6.5.svn, for installing GDAL-GRASS, I get the following error:

checking for gdal-config... /usr/bin/gdal-config
using /usr/lib/gdalplugins as GDAL shared library autoload directory
checking for G_asprintf in -lgrass_gis... no
configure: error: --with-grass=/usr/local/grass-6.5.svn requested, but libraries not found!  
Perhaps you need to set LD_LIBRARY_PATH to include /usr/local/grass-6.5.svn/lib?

I have created a **grass.conf** as instructed elsewhere inside /etc/ld.so.conf.d/ and have added following lines in it: 

/usr/local/lib
/usr/local/grass-6.5.svn/lib

I ran sudo ldconfig after that too.

I came across a similar issue posted in the [GRASS-Dev mailing list](http://osgeo-org.1803224.n2.nabble.com/gdal-grass-plugin-build-failed-td6232215). As an answer it was instructed to: 

You could just generate the symlinks yourself, e.g.:

cd /usr/local/grass-6.5.svn/lib
    for file in libgrass_*.so ; do ln -s $file ${file%.[6.5.svn.so](http://6.5.svn.so)}.so ; done html. 

I ran,

cd /usr/local/grass-6.5.svn/lib
ln -s $file ${file%.[6.5.svn.so](http://6.5.svn.so)}.so

but it made no difference! What should I do now?

Thanks and Regards,

Chethan S.

On Mon, May 2, 2011 at 3:01 PM, Chethan S <chethanuniversal@gmail.com> wrote:

Hi all,

When I run --with-grass=/usr/local/grass-6.5.svn, for installing GDAL-GRASS,
I get the following error:

checking for gdal-config... /usr/bin/gdal-config
using /usr/lib/gdalplugins as GDAL shared library autoload directory
checking for G_asprintf in -lgrass_gis... no
configure: error: --with-grass=/usr/local/grass-6.5.svn requested, but
libraries not found!
Perhaps you need to set LD_LIBRARY_PATH to include
/usr/local/grass-6.5.svn/lib?

Above problem was a temporary mess which has been fixed since then:
See http://trac.osgeo.org/grass/changeset/46104

I wonder why 6.5 is lacking this fix.

Markus

Hi,

2011/5/2 Markus Neteler <neteler@osgeo.org>:

Above problem was a temporary mess which has been fixed since then:
See http://trac.osgeo.org/grass/changeset/46104

I wonder why 6.5 is lacking this fix.

I will apply the fix ASAP (when I will be able to commit the patch)

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa