[GRASS5] Grass and GDAL-1.3.2b1

hello list.

I have been trying to install grass6.1cvs (also grass-6.0.2 too. ) with gdal for reading dataset AAIGrid/Arc/Info ASCII Grid large than 2gb.

after report the same on the gdal list is was told to use gdal-1.3.2b1 for the same and after successfully compilation and installation I was able to read dataset greater than 2gb.

but am facing problem in getting compiled version of gdal-1.3.2b1 to work with grass.

after doing simple following steps in gdal-1.3.2b1
#./configure --enable-shared --with-libtiff=internal --with-geotiff=internal --with-python

make

make install.

the gdalinfo is able to read >2gb.

but when gdal-1.3.2b1 is used(also, configured and compiled) with grass61cvs or grass60 (grass6.0.2 stable ed). the grass seem reports the below error and does nothing.

Error in startup script: ps.map: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
while executing
“exec ps.map -p”
(procedure “DmPrint::init” line 14)
invoked from within
“DmPrint::init”
(procedure “main” line 34)
invoked from within
“main $argc $argv”
(file “/usr/local/grass-6.1.cvs/etc/dm/d.m.tcl” line 1627)

please help…!!!


Best Regrads

Abhay Menon

Hallo, if I underastand it well, you have to perform 3 steps:

    1) Install "somehow" gdal
    2) Install grass --with-gdal-includes=/path/to/gdal...
    3) Install gdal --with-grass=/path/to/grass/base

Good luck

Jachym

On Tue, Apr 25, 2006 at 04:45:12PM +0530, abhay menon wrote:

hello list.

I have been trying to install grass6.1cvs (also grass-6.0.2 too. ) with gdal
for reading dataset AAIGrid/Arc/Info ASCII Grid large than 2gb.

after report the same on the gdal list is was told to use gdal-1.3.2b1 for
the same and after successfully compilation and installation I was able to
read dataset greater than 2gb.

but am facing problem in getting compiled version of gdal-1.3.2b1 to
work with grass.

after doing simple following steps in gdal-1.3.2b1
#./configure --enable-shared --with-libtiff=internal --with-geotiff=internal
--with-python
# make
# make install.

the gdalinfo is able to read >2gb.

but when gdal-1.3.2b1 is used(also, configured and compiled) with grass61cvs
or grass60 (grass6.0.2 stable ed). the grass seem reports the below error
and does nothing.

*Error in startup script: ps.map: error while loading shared libraries:
libgdal.so.1: cannot open shared object file: No such file or directory
    while executing
"exec ps.map -p"
    (procedure "DmPrint::init" line 14)
    invoked from within
"DmPrint::init"
    (procedure "main" line 34)
    invoked from within
"main $argc $argv"
    (file "/usr/local/grass-6.1.cvs/etc/dm/d.m.tcl" line 1627)
*

please help..!!!

--
Best Regrads

Abhay Menon

--
Jachym Cepicky
e-mail: jachym.cepicky@centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------
OFFICE:
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky@gdf-hannover.de
URL: http://gdf-hannover.de
Tel.: +49 511-39088507

On Tue, 25 Apr 2006 16:45:12 +0530
"abhay menon" <abhay.menon@gmail.com> wrote:
<snip>

*Error in startup script: ps.map: error while loading shared
libraries: libgdal.so.1: cannot open shared object file: No such file

What does $ whereis libgdal.so. say?

Maciek

--------------------
W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

Hello Maciek,

at first whereis gave this
libgdal.so:/usr/local/lib/libgdal.so. 1 /usr/local/lib/libgdal.so

but since i add a softlink to libgdal.* from /usr/local/lib to /usr/lib it give these too…
libgdal.so: /usr/lib/libgdal.so.1 /usr/lib/libgdal.so /usr/local/lib/libgdal.so. 1 /usr/local/lib/libgdal.so


Best Regrads

Abhay Menon

On 4/25/06, Maciek Sieczka <werchowyna@epf.pl> wrote:

On Tue, 25 Apr 2006 16:45:12 +0530
“abhay menon” <abhay.menon@gmail.com > wrote:

*Error in startup script: ps.map: error while loading shared
libraries: libgdal.so.1: cannot open shared object file: No such file

What does $ whereis libgdal.so . say?

Maciek


W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/

Hello Maciek and Lists.

sorry, that i forgot to put this on the list guess gmail seem make commuincation one to one so i was only communicating with Jachym.
i was able to solve the problem with grass61cvs and gdal-1.3.2b1

–quote–
final the problem solved…
1st compile and install gdal then created a softlink using ln -s command of the libgdal.* to /usr/lib and then compile and install grass61 and thats it.
–unquote–

and

–quote–
each time when we compile gdal the --prefix is default set to /usr/local hence all library compiled to gdal is set to /usr/local (and defualt library to /usr/local/lib) where as while compilation of grass the library of gdal was set to /usr/local/lib but when it was installed and executed the library of gdal was been default searched in /usr/lib by grass. which is why the softlink was need to be set for gdal /usr/lib from /usr/local/lib, so that whenever the grass try to access gdal library in /usr/lib it is pointed to /usr/local/lib.
–unquote–


Best Regrads

Abhay Menon

On 4/27/06, abhay menon <abhay.menon@gmail.com> wrote:

Hello Maciek,

at first whereis gave this
libgdal.so:/usr/local/lib/libgdal.so. 1 /usr/local/lib/libgdal.so

but since i add a softlink to libgdal.* from /usr/local/lib to /usr/lib it give these too…
libgdal.so: /usr/lib/libgdal.so.1 /usr/lib/libgdal.so /usr/local/lib/libgdal.so. 1 /usr/local/lib/libgdal.so


Best Regrads

Abhay Menon

On 4/25/06, Maciek Sieczka <werchowyna@epf.pl > wrote:

On Tue, 25 Apr 2006 16:45:12 +0530
“abhay menon” < abhay.menon@gmail.com > wrote:

*Error in startup script: ps.map: error while loading shared
libraries: libgdal.so.1: cannot open shared object file: No such file

What does $ whereis libgdal.so . say?

Maciek


W polskim Internecie s? setki milion?w stron. My przekazujemy Tobie tylko najlepsze z nich!
http://katalog.panoramainternetu.pl/