[postgis-users] 0.7.4 compiling problem

Paul Ramsey pramsey at refractions.net
Fri Mar 14 08:35:48 PST 2003


The linking command in the loader attempts to link against the libpq we 
expect to find in the pgsql source tree.  That library is only there if 
you have build PgSQL, and not done a 'make clean' afterwards.  Go into 
your pgsql direction and run make, then go back to postgis and run make.

P.

In Friday, March 14, 2003, at 08:30 AM, Zachariadis Anthimos wrote:

>  am a new user trying to install postgis 0.7.4
> under postgres 7.3.1 (Mandrake Linux 9.0)
> When I run the make command I recieve the following
> message:
>  
> root at desktop postgis]# make
> make -C loader
> make[1]: Entering directory 
> `/root/tmp/postgresql-7.3.1/contrib/postgis/loader'
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations shpopen.o 
> dbfopen.o getopt.o shp2pgsql.o -L../../../src/interfaces/libpq -lpq  
> -Wl,-rpath,/usr/local/pgsql/lib/contrib -lcrypt -lresolv -lnsl -ldl 
> -lm -lbsd  -o shp2pgsql
> /usr/bin/ld: cannot find -lpq
> collect2: ld returned 1 exit status
> make[1]: *** [shp2pgsql] Error 1
> make[1]: Leaving directory 
> `/root/tmp/postgresql-7.3.1/contrib/postgis/loader'
> make: *** [loaderdumper] Error 2
>   
>  
> Any solutions would be worthful
>  
>  
> Thanks in advance
>  
> Anthimos Zachariadis
> University of Macedonia - Greece
> azaxar at the.forthnet.gr
>  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2104 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20030314/c2e54a30/attachment.bin>


More information about the postgis-users mailing list