When I run ./configure --with-grass=/usr/local/grass-6.5.svn/ I get the following errors:
..........
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?
Also if I use --with-grass=/usr/local/grass-6.5.svn, 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. 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}.so ; done html.
I ran,
cd /usr/local/grass-6.5.svn/lib
ln -s $file ${file%.6.5.svn.so}.so
It made no difference to the errors. Did I make any mistake? What do I need to do?