Can't build psycopg

E

Ed Leafe

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:

../configure
--with-postgres-libraries=/home/dls/postgresql-7.4.2/src/interfaces/
libpq/ \
--with-postgres-includes=/home/ed/dls/postgresql-7.4.2/src/include \
--with-mxdatetime-includes=/usr/lib/python2.3/site-packages/mx/
DateTime/mxDateTime

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...
/home/ed/dls/postgresql-7.4.2/src/include/catalog/pg_type.h
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
try?

___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://dabodev.com/
 
I

Istvan Albert

Ed said:
./configure
--with-postgres-libraries=/home/dls/postgresql-7.4.2/src/interfaces/
libpq/ \
--with-postgres-includes=/home/ed/dls/postgresql-7.4.2/src/include \
--with-mxdatetime-includes=/usr/lib/python2.3/site-packages/mx/
DateTime/mxDateTime


Just so you know, there is an error in what you posted,
the paths for libs do not have an /ed/ while the includes do

Istvan.
 
E

Ed Leafe

Just so you know, there is an error in what you posted,
the paths for libs do not have an /ed/ while the includes do

Thanks; I had caught that after I posted. I'm still not able to build,
though - looks like I'll have to bite the bullet and do a full
PostgreSQL install in order to build psycopg.
___/
/
__/
/
____/
Ed Leafe
http://leafe.com/
http://dabodev.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top