[postgis-users] problem compiling postgis 1.0.5 and 1.0.6

Blair Zajac blair at orcaware.com
Wed Dec 7 09:10:16 PST 2005


Guillaume Sueur wrote:
> Hi,
> 
> an old problem shows up again.
> I've upgraded from postgresql 8.0 to 8.1 and it went ok, the postmaster 
> is running again.
> But when I try to compile postgis 1.0.6 or 1.0.5 from the contrib 
> directory, I have the following message : usr/bin/ld: can't find -lpq
> I checked these points :
>     - libpq.so is under /usr/local/pgsql/lib
>     - /usr/local/pgsql/lib is in /etc/ld.so.conf
>     - ldconfig has been run after that.
> and I still have the same problem.
> 
> Any idea ?

Linking a library or a program doesn't look at ld.so.conf and doesn't use 
ldconfig.  You need to specify the location of the library with 
-L/usr/local/pgsql/lib in the link line.

Regards,
Blair

-- 
Blair Zajac, Ph.D.
<blair at orcaware.com>
Subversion and Orca training and consulting
http://www.orcaware.com/svn/



More information about the postgis-users mailing list