Can't build psycopg

Ed Leafe ed at
Mon Jul 19 02:12:51 CEST 2004

	I've been trying to build psycopg, a python adapter for PostgreSQL. In  
order to build it, you need to have (among other things) the PostgreSQL  
source code, headers and libraries. Since my Fedora install doesn't  
include these things, I downloaded the source and ran configure and  
make. At this point everything should be built and ready to install. I  
don't want to run make install, since I already have a perfectly good  
PostgreSQL installation running.

	I then re-ran configure as follows:

libpq/ \
	--with-postgres-includes=/home/ed/dls/postgresql-7.4.2/src/include \

which should tell configure where all the pieces it needs are. But it  
abends with the error:

checking PostgreSQL version... 7.4
checking PostgreSQL type catalog...  
checking for mxDateTime.h... yes
checking for main in -lcrypt... yes
checking for PQconnectStart in -lpq... no
configure: error: can't build without PostgreSQL libraries

	Has anyone else built psycopg successfully? Any ideas what else I can  

  Ed Leafe

More information about the Python-list mailing list