[postgis-users] Error making postgis with postgres 8.0.3

Mark Cave-Ayland m.cave-ayland at webbased.co.uk
Tue Sep 13 04:56:54 PDT 2005



> -----Original Message-----
> From: postgis-users-bounces at postgis.refractions.net 
> [mailto:postgis-users-bounces at postgis.refractions.net] On 
> Behalf Of Werdin Jens
> Sent: 13 September 2005 11:21
> To: 'PostGIS Users Discussion'
> Subject: AW: [postgis-users] Error making postgis with postgres 8.0.3
> 
> 
> Hi Jim,
> 
> I posted it some days ago,
> The error is that make seems not to find the libpq.
> The error occurs while making pgsql2shp
> 
> 
> 
> * --> ERROR
> *
> 
> 
> make[1]: Entering directory 
> `/opt/datenbank/postgresql-8.0.3/contrib/postgis-1.0.3/loader'
> gcc -g -Wall -I.. -I. 
> -I/opt/datenbank/postgresql-8.0.3/contrib/postgis-1.0.3/../../
> src/interfaces
> /libpq 
> -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels 
> -fno-strict-aliasing -DFRONTEND -DSYSCONFDIR='"/usr/local/pgsql/etc"' 
> -DUSE_VERSION=80 shpopen.o dbfopen.o getopt.o 
> PQunescapeBytea.o pgsql2shp.o 
> -L/opt/datenbank/postgresql-8.0.3/contrib/postgis-1.0.3/../../
> src/interfaces
> /libpq 
> -lpq 
> -L/opt/datenbank/postgresql-8.0.3/contrib/postgis-1.0.3/../../
> src/port 
> -lstdc++  -Wl,-rpath,/usr/local/pgsql/lib -o pgsql2shp
> /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-l
> inux/bin/ld: 
> cannot find -lpq
> collect2: ld returned 1 exit status
> make[1]: *** [pgsql2shp] Fehler 1
> make[1]: Leaving directory 
> `/opt/datenbank/postgresql-8.0.3/contrib/postgis-1.0.3/loader'
> make: *** [loaderdumper] Fehler 2
> 
> 
> Thanks
> Jens


Hi Jens,

As you suggested, it looks like the linker cannot find libpq. What configure
command did you use when you compiled PostgreSQL? It may be that you need to
add the directory where libpq.so was installed into your /etc/ld.so.conf
file and then run ldconfig so that the system can find it.


Kind regards,

Mark.

------------------------
WebBased Ltd
17 Research Way
Tamar Science Park
Plymouth
PL6 8BT 

T: +44 (0)1752 797131
F: +44 (0)1752 791023
W: http://www.webbased.co.uk





More information about the postgis-users mailing list