[GRASS-user] grass 7 svn gdal

Hello,

Building grass 7 in ubuntu 9.10. Got an error I have seen before on this list.
GRASS 7.0.svn (demolocation):/usr/local/src/grass_trunk > g.list: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory

I put in
matthew@matthew-laptop:~$ dpkg -l|grep libgdal
ii libgdal1-1.5.0 1.5.4-4 Geospatial Data Abstraction Library
ii libgdal1-1.5.0-grass 1.5.4-3 GRASS extension for the GDAL library
ii libgdal1-dev 1.5.4-4 Geospatial Data Abstraction Library - Develo
matthew@matthew-laptop:~$ dpkg -l|grep libproj
ii libproj-dev 4.6.1-5 Cartographic projection library (development
ii libproj0 4.6.1-5 Cartographic projection library
matthew@matthew-laptop:~$

it does exist but when in grass I do

GRASS 7.0.svn (demolocation):/usr/local/src/grass_trunk > whereis libgdal.so.1
libgdal.so:
GRASS 7.0.svn (demolocation):/usr/local/src/grass_trunk > whereis libgdal.so
libgdal:
GRASS 7.0.svn (demolocation):/usr/local/src/grass_trunk > wheris libgdal libgdal
No command ‘wheris’ found, did you mean:
Command ‘whereis’ from package ‘util-linux’ (main)
wheris: command not found
GRASS 7.0.svn (demolocation):/usr/local/src/grass_trunk > whereis libgdal libgdal
libgdal:
libgdal:
GRASS 7.0.svn (demolocation):/usr/local/src/grass_trunk >

I don’t think it can find the location because it does not list a dir as it should. Does that sound correct. If so how do I fix it.

Any help would be great.

Thanks,

Matthew


Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.

Matthew Mulbrandon wrote:

Building grass 7 in ubuntu 9.10. Got an error I have seen before on this
list. GRASS
7.0.svn (demolocation):/usr/local/src/grass_trunk > g.list: error
while loading shared libraries: libgdal.so.1: cannot open shared object
file: No such file or directory

Matthew,

you probably need to make "visible" the path that leads to the directory where
the file "libgdal.so.1" is placed. You can set this under "/etc/ld.so.conf"
directly or as a ".conf" file under "/etc/ld.so.conf.d/".

For example I have within "/etc/ld.so.conf" the following entry (among many
others):
--%<---
/usr/local/lib
--%<---

Once you have done that it is required to execute ldconfig (under ubuntu
usually as a superuser, i.e.: "sudo ldconfig").

As to how you can "trace" files in your system, you can use the "locate"
command. But before "locate" can search for a file in _its_ index (database),
the latter must be updated. So... :

# update db
sudo updatedb

# locate the file of interest
locate libgdal.so.1

I hope this helps, Nikos