[GRASSLIST:6083] Re: Getting started with postgresql and GRASS

Glynn Clements glynn.clements at virgin.net
Thu Apr 17 20:40:51 EDT 2003


Michael Ash wrote:

> GRASS:~ > g.select.pg -l
> g.select.pg: error while loading shared libraries: libpq.so: cannot load shared object file: No such file or directory

> GRASS:~ > locate libpq.so
> /usr/local/pgsql/lib/libpq.so.3
> /usr/local/pgsql/lib/libpq.so.3.0
> /usr/local/pgsql/lib/libpq.so

If you put shared libraries in a non-standard location (i.e. anywhere
other than /lib and /usr/lib), you have to tell the loader. E.g.:

	LD_LIBRARY_PATH=/usr/local/pgsql/lib
	export LD_LIBRARY_PATH

Or, if LD_LIBRAY_PATH is already defined:

	LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib
	export LD_LIBRARY_PATH

Or add /usr/local/pgsql/lib to /etc/ld.so.conf then run "ldconfig".

The ld.so(8) man page might have useful information (or it might just
be hopelessly out of date; any references to a.out are ancient
history).

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list