[Re: [GRASS-user] some hints for grass 6.3, now on etch !]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

what about gdal installation? it seems that grass is not linked to libgdal.
if gdal library is installed you need to add the path to libgdal library to
your ld.so.conf and run ldconfig.

thanks, but no success,

locate gdal

...
/usr/lib/libgdal1.3.2.so.1
/usr/lib/libgdal1.3.2.so.1.10.0
...

then:

denkbrett:/home/georg# locate ld.so.conf
/etc/ld.so.conf
/etc/ld.so.conf.d
/etc/ld.so.conf.d/i486-linux-gnu.conf
denkbrett:/home/georg#

ld.so.conf is linked to /etc/ld.so.conf.d and in this directory is
/etc/ld.so.conf.d/i486-linux-gnu.conf

this after my changes

I /etc/ld.so.conf.d/i486-linux-gnu.conf
Row 1 Col 1 5:19 Ctrl-K H for help
# Multiarch support
/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu
/usr/lib/libgdal1.3.2.so.1
/usr/lib/libgdal1.3.2.so.1.10.0

then ldconfig

and then grass63

same error

??

Georg

- --
- -------------------------------------------------------
  Georg Lösel
  Meterstraße 37
  30169 Hannover

  fon/fax: ++49 (0) 511 - 80 60 685
  mobil: ++49 (0) 176 - 233 244 11
  mail: georg@de-schorsch.de
  skype/wengo: georgloesel
  internet: www.de-schorsch.de
  LatLon: 52,3625; 9,7481
  gpg: look for 05C6733F
- -------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCTZSOXEppwXGcz8RAlqrAJ9A+3sKCublU6dfcjDIsyb4L/WG+ACeOBSa
bJQ3n2yEFwkZ9HWOMr0eYoc=
=poEx
-----END PGP SIGNATURE-----

How have you used "./configure" or how have you compiled from source?
I have grass 6.3.x and everything is working...

Ricardo

On Tue, 27 Mar 2007 17:20:50 +0200
"Georg Lösel (privat)" <georg@de-schorsch.de> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> what about gdal installation? it seems that grass is not linked to
> libgdal. if gdal library is installed you need to add the path to
> libgdal library to your ld.so.conf and run ldconfig.
>

thanks, but no success,

locate gdal

...
/usr/lib/libgdal1.3.2.so.1
/usr/lib/libgdal1.3.2.so.1.10.0
...

then:

denkbrett:/home/georg# locate ld.so.conf
/etc/ld.so.conf
/etc/ld.so.conf.d
/etc/ld.so.conf.d/i486-linux-gnu.conf
denkbrett:/home/georg#

ld.so.conf is linked to /etc/ld.so.conf.d and in this directory is
/etc/ld.so.conf.d/i486-linux-gnu.conf

this after my changes

I /etc/ld.so.conf.d/i486-linux-gnu.conf
Row 1 Col 1 5:19 Ctrl-K H for help
# Multiarch support
/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu
/usr/lib/libgdal1.3.2.so.1
/usr/lib/libgdal1.3.2.so.1.10.0

then ldconfig

and then grass63

same error

??

Georg

- --
- -------------------------------------------------------
  Georg Lösel
  Meterstraße 37
  30169 Hannover

  fon/fax: ++49 (0) 511 - 80 60 685
  mobil: ++49 (0) 176 - 233 244 11
  mail: georg@de-schorsch.de
  skype/wengo: georgloesel
  internet: www.de-schorsch.de
  LatLon: 52,3625; 9,7481
  gpg: look for 05C6733F
- -------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGCTZSOXEppwXGcz8RAlqrAJ9A+3sKCublU6dfcjDIsyb4L/WG+ACeOBSa
bJQ3n2yEFwkZ9HWOMr0eYoc=
=poEx
-----END PGP SIGNATURE-----

_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

"Georg Lösel (privat)" wrote:

> what about gdal installation? it seems that grass is not linked to libgdal.
> if gdal library is installed you need to add the path to libgdal library to
> your ld.so.conf and run ldconfig.

thanks, but no success,

locate gdal

...
/usr/lib/libgdal1.3.2.so.1
/usr/lib/libgdal1.3.2.so.1.10.0
...

GRASS is probably linked to a GDAL library with a different name, e.g.
libgdal.so.1.

Creating a symlink with the correct name (then re-running ldconfig)
may work. Running ldd on r.in.gdal should provide the name which GRASS
is using to refer to the GDAL library.

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

I /etc/ld.so.conf.d/i486-linux-gnu.conf
Row 1 Col 1 5:19 Ctrl-K H for help

Multiarch support

/lib/i486-linux-gnu
/usr/lib/i486-linux-gnu
/usr/lib/libgdal1.3.2.so.1
/usr/lib/libgdal1.3.2.so.1.10.0

then ldconfig

and then grass63

same error

No library name is needed in the path-to-gdal, so only ‘/usr/lib’ must appear instead of the last two lines.

If you compiled from source using only ./configure without options and libgdal comes as debian package you need to install libgdal-1.3.2-dev (in order to get library headers, *.h files) and use --with-gdal option (look at ‘./configure --help’ ).

Other dev packages are needed to compile from source, http://hamish.bowman.googlepages.com/debiangisfiles#compile
this is for 6.1 but dev packages are the same.

raffaele

Hi, Raffaele,

No library name is needed in the path-to-gdal, so only '/usr/lib' must
appear instead of the last two lines.

If you compiled from source using only ./configure without options and
libgdal comes as debian package you need to install libgdal-1.3.2-dev (in
order to get library headers, *.h files) and use --with-gdal option (look
at './configure --help' ).

Thats the thing , i had no -dev package installed.

BUT: My configure script runs through with some hints of finding no gdal
but gives at the end
GDAL-Support: YES !

I guess its an bug in the configure script.

more detailed answer with proofs, later on, stay tuned.

best Georg

(short answer from work via webmail)

Thats the thing , i had no -dev package installed.

BUT: My configure script runs through with some hints of finding no gdal
but gives at the end
GDAL-Support: YES !

wait, probably you asked for gdal support and configure finds gdal-config, which is needed, and probably it worries about missing gdal.h header which is provided by libgdal-dev

I guess its an bug in the configure script.

If I were in you I would not say that in a hurry but carefully read installation hints at http://grass.itc.it/download/index.php

raffaele

Hello Raffaele,

"Raffaele Morelli" <raffaele.morelli@gmail.com>, [20070328 - 13:29:04]

>
> Thats the thing , i had no -dev package installed.
>
> BUT: My configure script runs through with some hints of finding no
> gdal but gives at the end
> GDAL-Support: YES !

wait, probably you asked for gdal support and configure finds
gdal-config, which is needed, and probably it worries about missing
gdal.h header which is provided by libgdal-dev

Let me jump into this too (I have seen georgs setup). The problem is
that configure does not handle gdal-config correct. Evem if you give a
nonexistant path to gdal-config, configure does not bail out with an
error. You need to scroll up to see the error and at the end it gets
summed up that gdal is found.

I guess its an bug in the configure script.

Yes, definetly.

Best

  Stephan

--
Stephan Holl <stephan.holl@intevation.de>, http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

Hello

Let me jump into this too (I have seen georgs setup). The problem is
that configure does not handle gdal-config correct. Evem if you give a
nonexistant path to gdal-config, configure does not bail out with an
error. You need to scroll up to see the error and at the end it gets
summed up that gdal is found.

I guess its an bug in the configure script.

Yes, definetly.

Best

Stephan

Ok, I have recently compiled 6.3cvs snapshot and gdal and had the same g.region problem on debian, I have followed the on site instructions and everything went fine but I forgot to set up ld.so.conf correctly.

Installing grass6.2.2 on another debian box, apt complained about missing gdal-config instead.

Anyway, good work!!

regards
raffaele