473,320 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Can't build psycopg

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/

Jul 18 '05 #1
2 2124
Ed Leafe wrote:
./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.

Jul 18 '05 #2
On Jul 19, 2004, at 12:03 PM, Istvan Albert wrote:
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/

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Hefferon | last post by:
Hello, I want to try psycopg, the module for Postgres access. I'm having trouble reaching the site for four or five days now. For example, the link on the Python web site's DB Modules page...
0
by: Gandalf | last post by:
Hi All! Every time I get an error psycopg refuses to execute further commands in the same transaction: psycopg.ProgrammingError:ERROR: current transaction is aborted, commands ignored until...
8
by: Alban Hertroys | last post by:
Hello, I'm using psycopg to insert records in a number of threads. After the threads finish, another thread runs to collect the inserted data. Now, my problem is that psycopg let's my threads...
12
by: Alban Hertroys | last post by:
Good day, I have a number of threads doing inserts in a table, after which I want to do a select. This means that it will occur that the row that I want to select is locked (by the DB). In these...
1
by: roderik | last post by:
How do I supress the output generated from each psycopg command: >>> import psycopg initpsycopg: initializing psycopg 1.99.10 typecast_init: initializing NUMBER .. .. microprotocols_add:...
1
by: Eino Mäkitalo | last post by:
I had Visual C++ 6.0, so I compiled those libpq.dll and psycopg.pyd. if there are anyone to play with Windows, Python 2.3 and Postgre-8.0.0-beta4 for windows like me. You cat get those from:...
7
by: jslowery | last post by:
Hello, I'm new to both PostgreSQL and psycopg and I'm trying to connect to my database running on localhost. I have postgres setup to do md5 authentication and this works when using a db admin tool...
4
by: Michele Simionato | last post by:
Look at this example: >>> import psycopg >>> psycopg.__version__ '1.1.19' >>> import datetime >>> today = datetime.datetime.today() >>> co = psycopg.connect('') >>> cu = co.cursor()
2
by: Martin P. Hellwig | last post by:
Hi all, I'm playing a bit with PostgreSQL, in which I've set me the target to create a python script which with user input creates a new user role and a database with that owner (connecting to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.