[postgis-users] make problem (again!)

Marie-Lise VAUTIER vautier at ensg.ign.fr
Thu Jul 22 07:44:45 PDT 2004


Hello,

I am installing postgis (0.8.2) again, and this time I thought it would work :-)

-I have installed proj4 in /usr/local/proj4, geos in /usr/local/geos, set the
variables in the Makefile to their proper value. I have set the library paths in
ld.so.conf and run ldconfig. 

-I have installed postgresql 7.4 in its default location (/usr/local/pgsql).
The source tree of postgres is in /root/postgresql-7.4.3.

I run ./configure, and OK. Then I run make and I get (I had run make a first
time, without including libpq's path in ld.conf.so, and I had the same message):

[root at localhost postgis-0.8.2]# make
make -C loader
make[1]: Entering directory `/root/postgresql-7.4.3/contrib/postgis-0.8.2/loader'
gcc -g -I.. -I. -I../../../src/interfaces/libpq -O2 -fno-strict-aliasing -Wall
-Wmissing-prototypes -Wmissing-declarations -DFRONTEND
-DSYSCONFDIR='"/usr/local/pgsql/etc"' -DUSE_VERSION=73 shpopen.o dbfopen.o
getopt.o pgsql2shp.o -L../../../src/interfaces/libpq -lpq -L../../../src/port 
-Wl,-rpath,/usr/local/pgsql/lib -o pgsql2shp
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
make[1]: *** [pgsql2shp] Error 1
make[1]: Leaving directory `/root/postgresql-7.4.3/contrib/postgis-0.8.2/loader'
make: *** [loaderdumper] Error 2

Can anyone give me a hint at where to find this "-lpq"? I've looked around but
I've not figured out what it is.

Thank you very much,
Marie-Lise



More information about the postgis-users mailing list