[mapserver-users] Building mapserver with postgis

Patricio Gigoux pgigoux at munistgo.cl
Fri May 17 10:07:33 EDT 2002


El Vie 17 May 2002 10:06, Patricio Gigoux escribió:
> Juanse:
> las librerias *.so debenser cargadas por el sistema, para esto tiene que
> tener la ruta correcta en el archivo /etc/ld.so.conf y despues debes
> ejecutar: ldconfig -v
>
> Saludos
> Patricio
>
> El Jue 16 May 2002 19:42, escribió:
> > After some mailing with Paul Ramsey that follows, we still can figure out
> > what is wrong? any one else want to give an opinion ... (read bottom to
> > top, for better understanding).
> >
> > TIA
> >
> > Juanse
> >
> >
> > From: Paul Ramsey <pramsey at refractions.net>
> > Sent: Thursday, May 16, 2002 5:01 PM
> >
> > > The problem is right there, the inability of the mapserv program to
> > > load the libpq library. The 'why' is not clear to me. Seems like
> > > everything is configured right from what you have told me.
> > >
> > > "Juan S. Barros J." wrote:
> > > > Paul
> > > >
> > > > actualy the code i send was just the meaninfull part i tough was
> > > > giving
> >
> > the
> >
> > > > problem, but of course we follow with  ldconfig and the rest...
> > > >
> > > > We believe its all right,  we had an other error message when using
> > > > mapscript_info.phtml as a test, so we change to Itasca example at
> > > > http://maps.dnr.state.mn.us/mapserver_demos/itasca/ ....
> > > >
> > > > Could it be that the Itasca example doesn't work with postgreSQL or
> > > > some part of our assembly?
> > > >
> > > > we arrive up to the screen that says "Mapserver Demo Interfase bla
> > > > bla
> >
> > bla "
> >
> > > > (after loading http://maps.dnr.state.mn.us/mapserver_demos/itasca/
> > > > demo_init.html from the example), and when click on the <initialize>
> >
> > button
> >
> > > > we get the error
> > > >
> > > > "Internal Server Error
> > > > The server encountered an internal error or misconfiguration and was
> >
> > unable
> >
> > > > to complete your request.
> > > > Please contact the server administrator, localhost and inform
> > > > them of the time the error occurred, and anything you might have done
> >
> > that
> >
> > > > may have
> > > > caused the error.
> > > > More information about this error may be available in the server
> > > > error
> >
> > log.
> >
> > > > Apache/1.3.12 Server at sandpit Port 80"
> > > >
> > > > in the apache error log we get:
> > > >
> > > > mapserv: error while loading shared libraries: libpq.so.2: canot open
> >
> > shared
> >
> > > > object file: no such file or directory
> > > >
> > > > premature end of script headers: usr/local/apache/cgi-bin/mapserv
> > > >
> > > > Any idea. please help
> > > >
> > > > juanse
> > > >
> > > > From: Paul Ramsey <pramsey at refractions.net>
> > > > Sent: Thursday, May 16, 2002 2:18 PM
> > > >
> > > > > Looks pretty good. You might have to invoke 'ldconfig' to make the
> > > > > linker re-read the conf file.
> > > > >  Paul
> > > > >
> > > > > "Juan S. Barros J." wrote:
> > > > > > thanks but it seem we need a bit more help
> > > > > >
> > > > > > we are building over
> > > > > > linux red hat 7.2
> > > > > > apache 1.3.22
> > > > > > php 4.06
> > > > > > postgre 7.1.3
> > > > > > postgis 0.6.2
> > > > > > mapserver 3.5
> > > > > >
> > > > > > we have
> > > > > >
> > > > > > # vi /etc/ld.so.conf
> > > > > > -------------------
> > > > > > /usr/x11r6/lib
> > > > > > /usr/lib
> > > > > > /usr/local/lib
> > > > > > /usr/local/pgsql/lib
> > > > > >
> > > > > > it this ok?
> > > > > >
> > > > > > juanse
> > > > > >
> > > > > > From: Paul Ramsey <pramsey at refractions.net>
> > > > > > Sent: Thursday, May 16, 2002 1:28 PM
> > > > > >
> > > > > > > Check that libpq is available to your linker. If you are using
> >
> > Linux,
> >
> > > > > > > add the libpq directory to /etc/ld.so.conf. If you are using
> >
> > Solaris,
> >
> > > > > > > ensure that the libpq directory in the LD_LIBRARY_PATH
> > > > > > > environment variable.
> > > > > > >
> > > > > > > P.
> > > > > > >
> > > > > > > > "Juan S. Barros J." wrote:
> > > > > > > >
> > > > > > > > A year or so ago  Andrey piliperz wrote:
> > > > > > > > > Hi!
> > > > > > > > > I am tring to build mapserver (CVS version) with postgis
> >
> > support,
> >
> > > > > > > > > but when I run ./mapserv the next message appears:
> > > > > > > > > ./mapserv: error while loading shared libraries:
> > > > > > > > > libpq.so.2:
> > > >
> > > > cannot
> > > >
> > > > > > > > open shared object file: No such file or directory
> > > > > > > >
> > > > > > > > > I was configuring mapserver with
> > > > > > > >
> > > > > > > > --with-postgis=/usr/local/bin/pg_config option
> > > > > > > >
> > > > > > > > > and it builds without problems.
> > > > > > > >
> > > > > > > > we are having the same error message and couldn´t find
> > > > > > > > answers
> >
> > to
> >
> > > > > > > > Andrey question, ¿anyone have an answer for this?
> > > > > > > >
> > > > > > > > juanse
> > > > > > > > temuko-chile
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.361 / Virus Database: 199 - Release Date: 07/05/02



More information about the mapserver-users mailing list