[GRASSLIST:9967] configure: error: *** Unable to locate GDAL library.

Hi everyone,
Even though i have installed gdal-1.1.9 on my linux
system.
On running the ./configure command for installing
grass-6.0.0 i get the following error

checking for GDALOpen... no
checking for GDALOpen... no
configure: error: *** Unable to locate GDAL library.

These r the files tht are present in the below
mentioned directories
/usr/lib/libgdal.1.1.so
/usr/local/lib/libgdal.so.1.4.1
/usr/local/lib/libgdal.la
/usr/local/lib/libgdal.a
/usr/local/lib/libgdal.1.1.so

Please help.

Rochelle

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Even though i have installed gdal-1.1.9 on my linux
system.

that is a very old version now, consider upgrading.

On running the ./configure command for installing
grass-6.0.0 i get the following error

checking for GDALOpen... no
checking for GDALOpen... no
configure: error: *** Unable to locate GDAL library.

These r the files tht are present in the below
mentioned directories
/usr/lib/libgdal.1.1.so
/usr/local/lib/libgdal.so.1.4.1
/usr/local/lib/libgdal.la
/usr/local/lib/libgdal.a
/usr/local/lib/libgdal.1.1.so

make sure that /usr/local/lib is listed in your /etc/ld.so.conf file and
(as root) run /sbin/ldconfig.

I have added this suggestion to the Wiki FAQ page:
  http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassFAQPage

Hamish

Hello Hamish
As u said i added /usr/local/lib to the
/etc/ld.so.conf as root and ran ldonfig.Do i need to
relogin into my system for the changes to come to
effect?
I tried installing grass-6.0.0 but it gives me the
same errors as before.

Also as u suggested i tried installing latest version
of gdal.
when i run the "make" command for installing
gdal-1.3.1
i get following errors errors

collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/r0chelle/gdal-1.3.1'
make: *** [check-lib] Error 2
r these packages not debugged already?

Please help me
Rochelle

--- Hamish <hamish_nospam@yahoo.com> wrote:

> Even though i have installed gdal-1.1.9 on my
linux
> system.

that is a very old version now, consider upgrading.

> On running the ./configure command for installing
> grass-6.0.0 i get the following error
>
> checking for GDALOpen... no
> checking for GDALOpen... no
> configure: error: *** Unable to locate GDAL
library.
>
> These r the files tht are present in the below
> mentioned directories
> /usr/lib/libgdal.1.1.so
> /usr/local/lib/libgdal.so.1.4.1
> /usr/local/lib/libgdal.la
> /usr/local/lib/libgdal.a
> /usr/local/lib/libgdal.1.1.so

make sure that /usr/local/lib is listed in your
/etc/ld.so.conf file and
(as root) run /sbin/ldconfig.

I have added this suggestion to the Wiki FAQ page:

http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassFAQPage

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

As u said i added /usr/local/lib to the
/etc/ld.so.conf as root and ran ldonfig.Do i need to
relogin into my system for the changes to come to
effect?

No, as soon as ldonfig is done it should be ok.

try:

$ locate gdal-config
$ locate libgdal

where are they?

I tried installing grass-6.0.0 but it gives me the
same errors as before.

On running the ./configure command for installing
grass-6.0.0 i get the following error

checking for GDALOpen... no
checking for GDALOpen... no
configure: error: *** Unable to locate GDAL library.

look at the end of config.log for the error.

Also as u suggested i tried installing latest version
of gdal.
when i run the "make" command for installing
gdal-1.3.1
i get following errors errors

collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/r0chelle/gdal-1.3.1'
make: *** [check-lib] Error 2
r these packages not debugged already?

We need to see a dozen or so lines prior to that as well. That just
tells us where it stopped, not why.

Hamish

Hello Hamish
I ran both the commands and these are the location of
gdal-config and libgdal.

locate gdal-config

/usr/local/bin/gdal-config

locate libgdal

/usr/lib/libgdal.1.1.so
/usr/local/lib/libgdal.so.1
/usr/local/lib/libgdal.so.1.4.1
/usr/local/lib/libgdal.la
/usr/local/lib/libgdal.a
/usr/local/lib/libgdal.1.1.so

R0chelle

--- Hamish <hamish_nospam@yahoo.com> wrote:

> As u said i added /usr/local/lib to the
> /etc/ld.so.conf as root and ran ldonfig.Do i need
to
> relogin into my system for the changes to come to
> effect?

No, as soon as ldonfig is done it should be ok.

try:

$ locate gdal-config
$ locate libgdal

where are they?

> I tried installing grass-6.0.0 but it gives me the
> same errors as before.

>> On running the ./configure command for installing
>> grass-6.0.0 i get the following error
>>
>> checking for GDALOpen... no
>> checking for GDALOpen... no
>> configure: error: *** Unable to locate GDAL
library.

look at the end of config.log for the error.

> Also as u suggested i tried installing latest
version
> of gdal.
> when i run the "make" command for installing
> gdal-1.3.1
> i get following errors errors
>
> collect2: ld returned 1 exit status
> make[1]: *** [libgdal.la] Error 1
> make[1]: Leaving directory
`/home/r0chelle/gdal-1.3.1'
> make: *** [check-lib] Error 2
> r these packages not debugged already?

We need to see a dozen or so lines prior to that as
well. That just
tells us where it stopped, not why.

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Hello Hamish
These are some of the few lines preceeding the error
messages. hope this will help u diagnos the
problem.Please look in.

/usr/lib/libnetcdf.a(attr.o)(.text+0x3f0): In function
`NC_findattr':
: multiple definition of `NC_findattr'
/usr/lib/libmfhdf.a(attr.o)(.text+0x1e0): first
defined here
/usr/bin/ld: Warning: size of symbol `NC_findattr'
changed from 124 in /usr/lib/libmfhdf.a(attr.o) to 140
in /usr/lib/libmfhdf.a(attr.o)
/usr/lib/libnetcdf.a(nc.o)(.text+0x60): In function
`NC_check_id':
: multiple definition of `NC_check_id'
/usr/lib/libmfhdf.a(file.o)(.text+0x0): first defined
here
/usr/bin/ld: Warning: size of symbol `NC_check_id'
changed from 67 in /usr/lib/libmfhdf.a(file.o) to 61
in /usr/lib/libmfhdf.a(file.o)
/usr/lib/libnetcdf.a(var.o)(.text+0x5b0): In function
`NC_var_shape':
: multiple definition of `NC_var_shape'
/usr/lib/libmfhdf.a(var.o)(.text+0x1d0): first defined
here
/usr/bin/ld: Warning: size of symbol `NC_var_shape'
changed from 520 in /usr/lib/libmfhdf.a(var.o) to 373
in /usr/lib/libmfhdf.a(var.o)
collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/bnagesh/gdal-1.3.1'
make: *** [check-lib] Error 2

R0chelle

--- Hamish <hamish_nospam@yahoo.com> wrote:

> As u said i added /usr/local/lib to the
> /etc/ld.so.conf as root and ran ldonfig.Do i need
to
> relogin into my system for the changes to come to
> effect?

No, as soon as ldonfig is done it should be ok.

try:

$ locate gdal-config
$ locate libgdal

where are they?

> I tried installing grass-6.0.0 but it gives me the
> same errors as before.

>> On running the ./configure command for installing
>> grass-6.0.0 i get the following error
>>
>> checking for GDALOpen... no
>> checking for GDALOpen... no
>> configure: error: *** Unable to locate GDAL
library.

look at the end of config.log for the error.

> Also as u suggested i tried installing latest
version
> of gdal.
> when i run the "make" command for installing
> gdal-1.3.1
> i get following errors errors
>
> collect2: ld returned 1 exit status
> make[1]: *** [libgdal.la] Error 1
> make[1]: Leaving directory
`/home/r0chelle/gdal-1.3.1'
> make: *** [check-lib] Error 2
> r these packages not debugged already?

We need to see a dozen or so lines prior to that as
well. That just
tells us where it stopped, not why.

Hamish

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Some time a go when I was workin on GRASS/GDAL ebuilds for Gentoo, I
recall similar problem. There is conflict between NetCDF and HDF4.
IIRC best soltion was to use only one of them.
Compilation worked fine, if HDF4 was compiled with szip flag, but
there was note, that GDAL may fail on HDF4 data loading. I had no
HDF4/NetCDF data to test it, so I cant say anything about faling
during runtime.
See more: http://bugs.gentoo.org/show_bug.cgi?id=89030

Maris.

Details from Gentoo bugzilla:
__________________________
HDF4 and NetCDF _CANNOT_ be compiled into the same package. HDF4 contains some
of the code from NetCDF 2.x, and thus there are symbol conflicts. I mentioned
this in bug #39942, but I guess it was missed. This same problem also currently
affects the GDAL 1.2.5 ebuild.
__________________________
I just wish I understood why. Can you
explain why compiling HDF4 with szip support fixes the conflicts?
__________________________
I just found Bug#96187 and it says - "Also this is not easy to catch
because it compiles fine and only causes problems at runtime when the wrong
function gets linked / called."
__________________________
2006/1/25, Rochelle MIranda <r0chelle_miranda@yahoo.com>:

Hello Hamish
These are some of the few lines preceeding the error
messages. hope this will help u diagnos the
problem.Please look in.

/usr/lib/libnetcdf.a(attr.o)(.text+0x3f0): In function
`NC_findattr':
: multiple definition of `NC_findattr'
/usr/lib/libmfhdf.a(attr.o)(.text+0x1e0): first
defined here
/usr/bin/ld: Warning: size of symbol `NC_findattr'
changed from 124 in /usr/lib/libmfhdf.a(attr.o) to 140
in /usr/lib/libmfhdf.a(attr.o)
/usr/lib/libnetcdf.a(nc.o)(.text+0x60): In function
`NC_check_id':
: multiple definition of `NC_check_id'
/usr/lib/libmfhdf.a(file.o)(.text+0x0): first defined
here
/usr/bin/ld: Warning: size of symbol `NC_check_id'
changed from 67 in /usr/lib/libmfhdf.a(file.o) to 61
in /usr/lib/libmfhdf.a(file.o)
/usr/lib/libnetcdf.a(var.o)(.text+0x5b0): In function
`NC_var_shape':
: multiple definition of `NC_var_shape'
/usr/lib/libmfhdf.a(var.o)(.text+0x1d0): first defined
here
/usr/bin/ld: Warning: size of symbol `NC_var_shape'
changed from 520 in /usr/lib/libmfhdf.a(var.o) to 373
in /usr/lib/libmfhdf.a(var.o)
collect2: ld returned 1 exit status
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory `/home/bnagesh/gdal-1.3.1'
make: *** [check-lib] Error 2

R0chelle

--- Hamish <hamish_nospam@yahoo.com> wrote:

> > As u said i added /usr/local/lib to the
> > /etc/ld.so.conf as root and ran ldonfig.Do i need
> to
> > relogin into my system for the changes to come to
> > effect?
>
> No, as soon as ldonfig is done it should be ok.
>
> try:
>
> $ locate gdal-config
> $ locate libgdal
>
> where are they?
>
>
> > I tried installing grass-6.0.0 but it gives me the
> > same errors as before.
>
> >> On running the ./configure command for installing
> >> grass-6.0.0 i get the following error
> >>
> >> checking for GDALOpen... no
> >> checking for GDALOpen... no
> >> configure: error: *** Unable to locate GDAL
> library.
>
> look at the end of config.log for the error.
>
>
> > Also as u suggested i tried installing latest
> version
> > of gdal.
> > when i run the "make" command for installing
> > gdal-1.3.1
> > i get following errors errors
> >
> > collect2: ld returned 1 exit status
> > make[1]: *** [libgdal.la] Error 1
> > make[1]: Leaving directory
> `/home/r0chelle/gdal-1.3.1'
> > make: *** [check-lib] Error 2
> > r these packages not debugged already?
>
> We need to see a dozen or so lines prior to that as
> well. That just
> tells us where it stopped, not why.
>
>
> Hamish
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Rochelle MIranda wrote:

These are some of the few lines preceeding the error
messages. hope this will help u diagnos the
problem.Please look in.

/usr/lib/libnetcdf.a(attr.o)(.text+0x3f0): In function `NC_findattr':
: multiple definition of `NC_findattr'
/usr/lib/libmfhdf.a(attr.o)(.text+0x1e0): first defined here

Versions of the HDF library which include built-in NetCDF support will
conflict with a separate NetCDF library. You will need to disable
either NetCDF or HDF support.

--
Glynn Clements <glynn@gclements.plus.com>

Hello Glynn,

Thanks a million.
I configured gdal-1.3.1 as u suggested without hdf
support
cd gdal-1.3.1
./configure --without-hdf4
make
make install

And its now installs successfully.

Regards
R0chelle.

--- Glynn Clements <glynn@gclements.plus.com> wrote:

Rochelle MIranda wrote:

  These are some of the few lines preceeding the
error
  messages. hope this will help u diagnos the
  problem.Please look in.
  
  /usr/lib/libnetcdf.a(attr.o)(.text+0x3f0): In
function `NC_findattr':
  : multiple definition of `NC_findattr'
  /usr/lib/libmfhdf.a(attr.o)(.text+0x1e0): first
defined here

Versions of the HDF library which include built-in
NetCDF support will
conflict with a separate NetCDF library. You will
need to disable
either NetCDF or HDF support.

--
Glynn Clements <glynn@gclements.plus.com>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Hello Maris
Thanks a Lot for writing back to my query. As u
suggested there was a conflict betn the hdf4 and the
seperate netcdf installed on my system.
I went through the URL u gave.
On configuring gdal-1.3.1 without the hdf4 support
everything seems to be working fine

Regards
R0chelle

--- Mâris Nartiðs <maris.nartiss@gmail.com> wrote:

Some time a go when I was workin on GRASS/GDAL
ebuilds for Gentoo, I
recall similar problem. There is conflict between
NetCDF and HDF4.
IIRC best soltion was to use only one of them.
Compilation worked fine, if HDF4 was compiled with
szip flag, but
there was note, that GDAL may fail on HDF4 data
loading. I had no
HDF4/NetCDF data to test it, so I cant say anything
about faling
during runtime.
See more:
http://bugs.gentoo.org/show_bug.cgi?id=89030

Maris.

Details from Gentoo bugzilla:
__________________________
HDF4 and NetCDF _CANNOT_ be compiled into the same
package. HDF4 contains some
of the code from NetCDF 2.x, and thus there are
symbol conflicts. I mentioned
this in bug #39942, but I guess it was missed. This
same problem also currently
affects the GDAL 1.2.5 ebuild.
__________________________
I just wish I understood why. Can you
explain why compiling HDF4 with szip support fixes
the conflicts?
__________________________
I just found Bug#96187 and it says - "Also this is
not easy to catch
because it compiles fine and only causes problems at
runtime when the wrong
function gets linked / called."
__________________________
2006/1/25, Rochelle MIranda
<r0chelle_miranda@yahoo.com>:
> Hello Hamish
> These are some of the few lines preceeding the
error
> messages. hope this will help u diagnos the
> problem.Please look in.
>
>
> /usr/lib/libnetcdf.a(attr.o)(.text+0x3f0): In
function
> `NC_findattr':
> : multiple definition of `NC_findattr'
> /usr/lib/libmfhdf.a(attr.o)(.text+0x1e0): first
> defined here
> /usr/bin/ld: Warning: size of symbol `NC_findattr'
> changed from 124 in /usr/lib/libmfhdf.a(attr.o) to
140
> in /usr/lib/libmfhdf.a(attr.o)
> /usr/lib/libnetcdf.a(nc.o)(.text+0x60): In
function
> `NC_check_id':
> : multiple definition of `NC_check_id'
> /usr/lib/libmfhdf.a(file.o)(.text+0x0): first
defined
> here
> /usr/bin/ld: Warning: size of symbol `NC_check_id'
> changed from 67 in /usr/lib/libmfhdf.a(file.o) to
61
> in /usr/lib/libmfhdf.a(file.o)
> /usr/lib/libnetcdf.a(var.o)(.text+0x5b0): In
function
> `NC_var_shape':
> : multiple definition of `NC_var_shape'
> /usr/lib/libmfhdf.a(var.o)(.text+0x1d0): first
defined
> here
> /usr/bin/ld: Warning: size of symbol
`NC_var_shape'
> changed from 520 in /usr/lib/libmfhdf.a(var.o) to
373
> in /usr/lib/libmfhdf.a(var.o)
> collect2: ld returned 1 exit status
> make[1]: *** [libgdal.la] Error 1
> make[1]: Leaving directory
`/home/bnagesh/gdal-1.3.1'
> make: *** [check-lib] Error 2
>
>
>
> R0chelle
>
>
>
>
>
>
>
>
>
>
>
>
> --- Hamish <hamish_nospam@yahoo.com> wrote:
>
> > > As u said i added /usr/local/lib to the
> > > /etc/ld.so.conf as root and ran ldonfig.Do i
need
> > to
> > > relogin into my system for the changes to come
to
> > > effect?
> >
> > No, as soon as ldonfig is done it should be ok.
> >
> > try:
> >
> > $ locate gdal-config
> > $ locate libgdal
> >
> > where are they?
> >
> >
> > > I tried installing grass-6.0.0 but it gives me
the
> > > same errors as before.
> >
> > >> On running the ./configure command for
installing
> > >> grass-6.0.0 i get the following error
> > >>
> > >> checking for GDALOpen... no
> > >> checking for GDALOpen... no
> > >> configure: error: *** Unable to locate GDAL
> > library.
> >
> > look at the end of config.log for the error.
> >
> >
> > > Also as u suggested i tried installing latest
> > version
> > > of gdal.
> > > when i run the "make" command for installing
> > > gdal-1.3.1
> > > i get following errors errors
> > >
> > > collect2: ld returned 1 exit status
> > > make[1]: *** [libgdal.la] Error 1
> > > make[1]: Leaving directory
> > `/home/r0chelle/gdal-1.3.1'
> > > make: *** [check-lib] Error 2
> > > r these packages not debugged already?
> >
> > We need to see a dozen or so lines prior to that
as
> > well. That just
> > tells us where it stopped, not why.
> >
> >
> > Hamish
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
protection around
> http://mail.yahoo.com
>
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com