[postgis-users] installation (last step) problems

David TECHER davidtecher at yahoo.fr
Thu Jul 15 06:11:29 PDT 2004


if you are on red hat or debian

don't forget to be 'root' for ldconfig

and see if you had added

/usr/local/lib 

at the end of /etc/ld.so.conf

in order your system to find geos library

EN francais

si vous êtes sou debian ou red hat en tant que root

cd repertoire_de_source_de_proj4
make distclean
make uninstall
./configure
make
make install

pour voir si proj est bien installé

proj 

pour lier la librairie geos au système

echo  /usr/local/lib >> /etc/ld.so.conf

puis 

ldconfig

pour ne pas avoir de problème de avec le fichier
postgis.sql rendez-vous dans le répertoire
sources_de_postgresql/contrib/source_de_postgis

perl -i.bak -pe 's/\$libdir/\/usr\/lib\/postgresql/g'
postgis.sql

ca vous permettra d'accéder à ce fichier et de
remplacez la variable $libdir par le chemin d'accès
exacte de postgis


--- strk <strk at keybit.net> a écrit : > Did you
communicate your system about the newly
> installed GEOS shared lib ?
> For unix system this is done with 'ldconfig'.
> --strk;
> 
> On Thu, Jul 15, 2004 at 01:25:01PM +0200, Marie-Lise
> VAUTIER wrote:
> > Hello,
> > 
> > I know that it is a very current problem, but I
> have a problem with the last
> > step of the installation of postgis, that is to
> say, when I enter spql -d mydb
> > -f postgis.sql.
> > I have installed geos and proj4, because I already
> had problems without them.
> > geos has been installed with the default
> ./configure and proj4 with ./configure
> > --prefix=/usr/local/proj4.
> > 
> > I get the following error message:
> > 
> > 
> > 
> > [postgres at localhost postgres]$ psql -d mydb -f
> > /usr/local/pgsql/share/contrib/postgis.sql
> > BEGIN
> >         message
> > ------------------------
> >  PL/PgSQL is installed.
> > (1 row)
> >  
> > NOTICE:  type "histogram2d" is not yet defined
> > DETAIL:  Creating a shell type definition.
> > ERROR:  could not load library
> "/usr/local/pgsql/lib/libpostgis.so.0.8":
> > libgeos.so.1: cannot open shared obj
> > ect file: No such file or directory
> >
> psql:/usr/local/pgsql/share/contrib/postgis.sql:44:
> NOTICE:  type "histogram2d"
> > is not yet defined
> > DETAIL:  Creating a shell type definition.
> >
> psql:/usr/local/pgsql/share/contrib/postgis.sql:44:
> ERROR:  could not load
> > library "/usr/local/pgsql/lib/libp
> > ostgis.so.0.8": libgeos.so.1: cannot open shared
> object file: No such file or
> > directory
> > ERROR:  current transaction is aborted, commands
> ignored until end of
> > transaction block
> >
> psql:/usr/local/pgsql/share/contrib/postgis.sql:49:
> ERROR:  current transaction
> > is aborted, commands ignored
> > until end of transaction block
> > 
> > 
> > libgeos.so.1 is in /usr/local/lib.
> > 
> > I have not "linked postgresql against the standard
> c++ library", as described in
> > the documentation, because I don't know exactly
> where to write this line. Is it
> > the reason why it doesn't work?
> > 
> > Thank you for your help, Marie-Lise.
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> >
>
http://postgis.refractions.net/mailman/listinfo/postgis-users
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
>
http://postgis.refractions.net/mailman/listinfo/postgis-users
>  


	

	
		
Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger sur http://fr.messenger.yahoo.com



More information about the postgis-users mailing list