I recently had to recompile gdal so that support for ECW was enabled. I decided since I was changing my compile line, I would upgrade from gdal-1.3.2 to gdal-1.4.0 in the process. I ran make distclean in my gdal-1.3.2 directory, then configure, make, and make install in gdal-1.4.0, all of which proceeded without errors. gdalinfo --formats reports a normal listing of supported file types. Grass compiles and installs normally as well.
The trouble lies with the gdal-grass plugin. An error occurs during compilation, reporting
configure: error: --with-grass=/usr/local/grass-6.3.cvs requested, but libraries not found! Perhaps you need to set LD_LIBRARY_PATH to include /usr/local/grass-6.3.cvs/lib?
However, my LD_LIBRARY_PATH is set to include my Grass installation driectory:
$ echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/lib:/usr/local/IVS/lib:/usr/local/grass-6.3.cvs/
My /etc/ld.so.conf also includes my Grass lib directory:
$cat /etc/ld.so.conf
/usr/local/bin
/usr/X11R6/lib
/usr/local/lib
/usr/lib
/usr/lib/atlas
/usr/local/grass-6.3.cvs/lib
Any suggestions?
Thanks,
~ Eric.
Patton, Eric wrote:
configure: error: --with-grass=/usr/local/grass-6.3.cvs requested, but
libraries not found! Perhaps you need to set LD_LIBRARY_PATH to include
/usr/local/grass-6.3.cvs/lib?
Eric,
This suggestion is just a perhaps. Generally it means things failed
to link and you can dig into the config.log to find out details. I
suspect the problem is that grass is built against the old GDAL so
attempts to link the driver against grass libraries fails because the
old gdal library can't be found.
If that is the problem, you may need to rebuild and install GRASS using
the new GDAL libraries before trying to rebuild the grass-gdal driver.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
I tried rebuilding Grass (make distcleaning first) and reinstalling the gdal plugin with the same error. What's the recommended way of starting from scratch so that all gdal-related files are removed?
~ Eric.
-----Original Message-----
From: Frank Warmerdam
To: Patton, Eric
Cc: grassuser@grass.itc.it
Sent: 1/23/2007 11:20 AM
Subject: Re: [GRASS-user] Error configuring grass-gdal 1.3.2: grass libs not found
Patton, Eric wrote:
configure: error: --with-grass=/usr/local/grass-6.3.cvs requested, but
libraries not found! Perhaps you need to set LD_LIBRARY_PATH to
include
/usr/local/grass-6.3.cvs/lib?
Eric,
This suggestion is just a perhaps. Generally it means things failed
to link and you can dig into the config.log to find out details. I
suspect the problem is that grass is built against the old GDAL so
attempts to link the driver against grass libraries fails because the
old gdal library can't be found.
If that is the problem, you may need to rebuild and install GRASS using
the new GDAL libraries before trying to rebuild the grass-gdal driver.
Best regards,
--
---------------------------------------+--------------------------------
------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo,
http://osgeo.org
Patton, Eric wrote:
I recently had to recompile gdal so that support for ECW was
enabled. I decided since I was changing my compile line, I would
upgrade from gdal-1.3.2 to gdal-1.4.0 in the process. I ran make
distclean in my gdal-1.3.2 directory, then configure, make, and make
install in gdal-1.4.0, all of which proceeded without errors.
gdalinfo --formats reports a normal listing of supported file types.
Grass compiles and installs normally as well.
The trouble lies with the gdal-grass plugin. An error occurs during compilation, reporting
configure: error: --with-grass=/usr/local/grass-6.3.cvs requested,
but libraries not found! Perhaps you need to set LD_LIBRARY_PATH to
include /usr/local/grass-6.3.cvs/lib?
However, my LD_LIBRARY_PATH is set to include my Grass installation driectory:
$ echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/lib:/usr/local/IVS/lib:/usr/local/grass-6.3.cvs/
The last entry needs to have "lib" appended.
My /etc/ld.so.conf also includes my Grass lib directory:
$cat /etc/ld.so.conf
/usr/local/bin
/usr/X11R6/lib
/usr/local/lib
/usr/lib
/usr/lib/atlas
/usr/local/grass-6.3.cvs/lib
Have you run ldconfig since adding the last line? ld.so.conf itself
has no effect upon anything except ldconfig; it's the ld.so.cache file
which ldconfig generates that is actually used for locating shared
libraries.
--
Glynn Clements <glynn@gclements.plus.com>
Glynn,
The last entry needs to have "lib" appended.
Done. Despite this change, gdal-grass still complains it can't find the libs.
Have you run ldconfig since adding the last line? ld.so.conf itself
has no effect upon anything except ldconfig; it's the ld.so.cache file
which ldconfig generates that is actually used for locating shared
libraries.
I tried this as well, still no luck. If it matters, the only configure flags I'm passing gdal-grass are --with-gdal=/usr/local/bin/gdal-config and with-grass=/usr/local/grass-6.3.cvs
For the 'with-grass' portion, you only need to pass the root directory of the Grass installation, and configure picks up the libs directory on its own, correct?
I also checked /usr/local/lib/gdalplugins, and that directory is empty, so the problem can't be old Grass plugins hanging around.
~ Eric.
Patton, Eric napisa?(a):
I recently had to recompile gdal so that support for ECW was enabled. I decided since I was changing my compile line, I would upgrade from gdal-1.3.2 to gdal-1.4.0 in the process. I ran make distclean in my gdal-1.3.2 directory, then configure, make, and make install in gdal-1.4.0, all of which proceeded without errors. gdalinfo --formats reports a normal listing of supported file types. Grass compiles and installs normally as well.
Do:
./configure --with-grass=/usr/local/grass-6.3.cvs --with-libgrass=/usr/local/grass-6.3.cvs/lib/
ubuntu or mandriva I guess?
The trouble lies with the gdal-grass plugin. An error occurs during compilation, reporting
configure: error: --with-grass=/usr/local/grass-6.3.cvs requested, but libraries not found! Perhaps you need to set LD_LIBRARY_PATH to include /usr/local/grass-6.3.cvs/lib?
However, my LD_LIBRARY_PATH is set to include my Grass installation driectory:
$ echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/lib:/usr/local/IVS/lib:/usr/local/grass-6.3.cvs/
My /etc/ld.so.conf also includes my Grass lib directory:
$cat /etc/ld.so.conf
/usr/local/bin
/usr/X11R6/lib
/usr/local/lib
/usr/lib
/usr/lib/atlas
/usr/local/grass-6.3.cvs/lib
Any suggestions?
Thanks,
~ Eric.
_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser
I tried that line as you suggested to no avail. Again the plugin complains it can't see my grass libs.
~ Eric.
-----Original Message-----
From: Jaros?aw Jasiewicz
To: Patton, Eric
Cc: grassuser@grass.itc.it
Sent: 1/24/2007 3:10 AM
Subject: Re: [GRASS-user] Error configuring grass-gdal 1.3.2: grass libs not found
Patton, Eric napisa?(a):
I recently had to recompile gdal so that support for ECW was enabled.
I decided since I was changing my compile line, I would upgrade from
gdal-1.3.2 to gdal-1.4.0 in the process. I ran make distclean in my
gdal-1.3.2 directory, then configure, make, and make install in
gdal-1.4.0, all of which proceeded without errors. gdalinfo --formats
reports a normal listing of supported file types. Grass compiles and
installs normally as well.
Do:
./configure --with-grass=/usr/local/grass-6.3.cvs
--with-libgrass=/usr/local/grass-6.3.cvs/lib/
ubuntu or mandriva I guess?
The trouble lies with the gdal-grass plugin. An error occurs during
compilation, reporting
configure: error: --with-grass=/usr/local/grass-6.3.cvs requested, but
libraries not found! Perhaps you need to set LD_LIBRARY_PATH to include
/usr/local/grass-6.3.cvs/lib?
However, my LD_LIBRARY_PATH is set to include my Grass installation
driectory:
$ echo $LD_LIBRARY_PATH
/usr/local/lib:/usr/lib:/usr/local/IVS/lib:/usr/local/grass-6.3.cvs/
My /etc/ld.so.conf also includes my Grass lib directory:
$cat /etc/ld.so.conf
/usr/local/bin
/usr/X11R6/lib
/usr/local/lib
/usr/lib
/usr/lib/atlas
/usr/local/grass-6.3.cvs/lib
Any suggestions?
Thanks,
~ Eric.
_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser
Patton, Eric wrote:
I recently had to recompile gdal so that support for ECW was
enabled. I decided since I was changing my compile line, I would
upgrade from gdal-1.3.2 to gdal-1.4.0 in the process. I ran make
distclean in my gdal-1.3.2 directory, then configure, make, and make
install in gdal-1.4.0, all of which proceeded without errors.
gdalinfo --formats reports a normal listing of supported file types.
Grass compiles and installs normally as well.
The trouble lies with the gdal-grass plugin. An error occurs during
compilation, reporting
configure: error: --with-grass=/usr/local/grass-6.3.cvs requested,
but libraries not found! Perhaps you need to set LD_LIBRARY_PATH to
include /usr/local/grass-6.3.cvs/lib?
Eric,
Look into this thread:
http://www.nabble.com/gdal-grass-plugin-fails-during-.-configure-with-GRASS-6.3-CVS-tf2904760.html#a8115150
Maybe there's some help.
Maciek
Thanks to everyone for their replies, the issue I was having with my gdal plugin not compiling was that I had two versions of geos installed (unbeknownst to me). Removing one allowed the plugin to compile normally.
Thanks guys!
~ Eric.
-----Original Message-----
From: Maciej Sieczka
To: Patton, Eric
Cc: grassuser@grass.itc.it
Sent: 1/24/2007 5:44 PM
Subject: Re: [GRASS-user] Error configuring grass-gdal 1.3.2: grass libs not found
Patton, Eric wrote:
I recently had to recompile gdal so that support for ECW was
enabled. I decided since I was changing my compile line, I would
upgrade from gdal-1.3.2 to gdal-1.4.0 in the process. I ran make
distclean in my gdal-1.3.2 directory, then configure, make, and make
install in gdal-1.4.0, all of which proceeded without errors.
gdalinfo --formats reports a normal listing of supported file types.
Grass compiles and installs normally as well.
The trouble lies with the gdal-grass plugin. An error occurs during
compilation, reporting
configure: error: --with-grass=/usr/local/grass-6.3.cvs requested,
but libraries not found! Perhaps you need to set LD_LIBRARY_PATH to
include /usr/local/grass-6.3.cvs/lib?
Eric,
Look into this thread:
http://www.nabble.com/gdal-grass-plugin-fails-during-.-configure-with-GR
ASS-6.3-CVS-tf2904760.html#a8115150
Maybe there's some help.
Maciek