[postgis-users] make problem (again!)

strk strk at keybit.net
Thu Jul 22 07:57:31 PDT 2004


On Thu, Jul 22, 2004 at 04:44:45PM +0200, Marie-Lise VAUTIER wrote:
> 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.

It is libpq.so and your compiler is asked to search for it
in ../../../src/interfaces/libpq
If it is not there that's probably because you did not run 'make'
in postgresql root source dir. 

--strk;

> 
> Thank you very much,
> Marie-Lise
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list