The error I get is listed below. I'm trying to install the stuff that will allow for me to work with Postgresql, and I'm following the HOWTO -- actually, I'm not. I can't believe that I have to *un*install Postgresql to get PoPy to work. That doesn't make sense. Besides, I don't work with source much anyway, I've got Debian ;-) Anyway, I did the ./configure, and this is the error I get. Anyone know what I can change to get it to work? checking for PQconnectStart in -lpq... no configure: error: can't build without PostgreSQL libraries Thanks! Russell
Russell Hires <rhires@earthlink.net> writes:
The error I get is listed below. I'm trying to install the stuff that will allow for me to work with Postgresql, and I'm following the HOWTO -- actually, I'm not. I can't believe that I have to *un*install Postgresql to get PoPy to work. That doesn't make sense. Besides, I don't work with source much anyway, I've got Debian ;-) Anyway, I did the ./configure, and this is the error I get. Anyone know what I can change to get it to work?
checking for PQconnectStart in -lpq... no configure: error: can't build without PostgreSQL libraries
Assuming you have apt installed and correctly configured (on an up to date Debian/sid): keuner:~$ apt-cache --names-only search zope-p | grep Database zope-popyda - A Database Adapter connecting Zope and PostgreSQL zope-psycopgda - Zope Database Adapter based on python-psycopg zope-pygresqlda - A Zope Database Adapter for PostgreSQL Hence, as root: # apt-get install zope-popyda zope-psycopgda zope-pygresqlda If you insist on installing from source, you need some -dev packages, notably postgresql-dev. -- Siggy Brentrup - bsb@winnegan.de - http://www.winnegan.de/ ****** ceterum censeo javascriptum esse restrictam *******
Thanks for this advice: I want to stay away from source...far away... :-) I'm running woody, which I should have said before... woody doesn't seem to have zope-popyda or zope-psycopgda, at least not yet. Oh well. Perhaps I should get them from sid? Russell
checking for PQconnectStart in -lpq... no configure: error: can't build without PostgreSQL libraries
Assuming you have apt installed and correctly configured (on an up to date Debian/sid):
keuner:~$ apt-cache --names-only search zope-p | grep Database zope-popyda - A Database Adapter connecting Zope and PostgreSQL zope-psycopgda - Zope Database Adapter based on python-psycopg zope-pygresqlda - A Zope Database Adapter for PostgreSQL
Hence, as root: # apt-get install zope-popyda zope-psycopgda zope-pygresqlda
If you insist on installing from source, you need some -dev packages, notably postgresql-dev.
Russell Hires <rhires@earthlink.net> writes:
Thanks for this advice: I want to stay away from source...far away... :-) I'm running woody, which I should have said before... woody doesn't seem to have zope-popyda or zope-psycopgda, at least not yet. Oh well. Perhaps I should get them from sid?
Sorry, I don't have a woody system at hand to check. If all you want is accessing a PostgreSQL database from Zope, install zope-pygresqlda, works well enough for me on a potato system. The drawback is that the underlying PyGreSQL doesn't conform to python's DB API specs. Installing sid packages from source on woody (no warranties): Add the following line to /etc/apt/sources.list (you may want to use another debian mirror): deb-src http://ftp.rfc822.org/debian sid main contrib non-free # apt-get update Install packages needed to build argument packages. Since you're on a woody system, this may fail with unmet dependencies, be careful not to break your system! # apt-get install dpkg-dev # apt-get build-deps zope-popyda python-popy Now build the packages # apt-get --build source zope-popyda python-popy Good luck Siggy PS: If you need more assistance, feel free to mail me. -- Siggy Brentrup - bsb@winnegan.de - http://www.winnegan.de/ ****** ceterum censeo javascriptum esse restrictam *******
I believe the configure script for PoPy is broken. Try building it "by hand" instead of running the configure. You'll only have to figure out the right options for two commands. Here's what I used with gcc on a solaris system: gcc -Wstrict-prototypes -Wall -O6 \ -fomit-frame-pointer \ -I/usr/local/include/python1.5 \ -I/usr/local/lib/python1.5/config \ -DHAVE_CONFIG_H=1 \ -I/export/a/Postgres-7.0.3/include/ -Wall \ -DVERSION=\"2.0.2\" -I. -c ./PoPymodule.c ld -G PoPymodule.o \ /export/a/Postgres-7.0.3/lib/libpq.a \ -lposix4 -o PoPymodule.so -jf
On Sun, Jun 24, 2001 at 02:11:46PM +0200, Jan-Frode Myklebust wrote:
I believe the configure script for PoPy is broken. Try building it "by hand" instead of running the configure. You'll only have to figure out the right options for two commands. Here's what I used with gcc on a solaris system:
gcc -Wstrict-prototypes -Wall -O6 \ -fomit-frame-pointer \ -I/usr/local/include/python1.5 \ -I/usr/local/lib/python1.5/config \ -DHAVE_CONFIG_H=1 \ -I/export/a/Postgres-7.0.3/include/ -Wall \ -DVERSION=\"2.0.2\" -I. -c ./PoPymodule.c
ld -G PoPymodule.o \ /export/a/Postgres-7.0.3/lib/libpq.a \ -lposix4 -o PoPymodule.so
-jf
Here is the situation: If you are running postgres 7.0, the sid versions of python-popy and zope-zpopyda will work fine. (With no conflicts, no complaints, everything just working). To make the sid package pre-install process faster, I looked in /etc/postgres, a directory NOT created by a source install of upstream postgres. To make things a bit more specific, I looked for a particular file in /etc/postgres. postgres 7.1 removed that marker file, and so the pre-install grumbles. This is probably good, as postgres 7.1 is currently not supported by popy. I have delayed uploaded a new version because upstream has repeatedly made "just around the corner' type statements. I think that I shall have to upload a new version with a "Conflicts With: .. 7.1", just to avoid this (hopefully) interim problem. Jim Penny PS: If you are not using Debian, you don't care about any of the above. If you are using postgres7.1 and need a postgresql adapter today, then I urge you to look at psycopg
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Jan-Frode Myklebust -
Jim Penny -
Russell Hires -
Siggy Brentrup