Compiling MapServer with PostGIS Support - Error

Paul Ramsey pramsey at REFRACTIONS.NET
Thu Dec 29 01:52:28 EST 2005


Adam,

Edit /etc/ld.so.conf
Add /usr/local/pgsql/lib
Run ldconfig
Rejoice

P

On 28-Dec-05, at 10:34 PM, Adam wrote:

> I'm compiling MapServer with PostGIS support.  PostGIS is installed  
> and I
> can load shapefiles and query them fine.
>
> Now I'm trying to recomplie MapServer with PostGIS support and I'm  
> getting
> this error after compiliation:
> [root at localhost mapserver-4.6.2]# ./mapserv -v
> ./mapserv: error while loading shared libraries: libpq.so.4: cannot  
> open
> shared object file: No such file or directory
> [root at localhost mapserver-4.6.2]#
>
> libpq.so.4 is located in two places:
> /usr/local/pgsql/lib/libpq.so.4
> /usr/local/src/pgsql/postgresql-8.1.1/src/interfaces/libpq/libpq.so.4
>
> And for the ./configure line where I specify the PostgreSQL install  
> I use:
> --with-postgis=/usr/local/pgsql/bin/pg_config
>
> pg_config is indeed in this directory.
>
> I also ran "ldconfig".
>
> Any ideas as to why I'm getting this error?



More information about the mapserver-users mailing list