Hi, I need help building the PostGreSQL database adapter on Linux. Sigh... why is installing everything on Linux such a nightmare? ZPyGreSQLDA installation is in such a primitive stage... I don't understand... it's like it's written to work with one very particular directory structure at the author's machine, and the heck with the rest of the world. :) Why not just write something to build the C Python module in place and then tell the user to move the compile C Python module (.so) to whereever it needs to be moved? The problem now is that the ZPyGreSQLDA/Makefile.pre.in has all kinds of settings of folder structures that don't match with my folder structure. I get the following error: (yes yes, I have played with PATH and the <prefix> variable mentioned inside Makefile.pre.in... and by the way, the FTP site ftp://www.eevolute.com/pub/python/ mentioned in README.linux no longer exists.) ---------------------------------------------------------- [hjlu@www src]$ make -f Makefile.pre.in boot rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`python -c "import sys; print sys.version[:3]"`; \ installdir=`python -c "import sys; print sys.prefix"`; \ exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \ make -f ./Makefile.pre.in VPATH=. srcdir=. \ VERSION=$VERSION \ installdir=$installdir \ exec_installdir=$exec_installdir \ Makefile make[1]: Entering directory `/u/c2/hjlu/lwc_zope_current/lib/python/Products/ZPy GreSQLDA/src' make[1]: *** No rule to make target `/u/c2/hjlu/lwc_zope/lib/python1.5/config/Ma kefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/u/c2/hjlu/lwc_zope_current/lib/python/Products/ZPyG reSQLDA/src' make: *** [boot] Error 2 --------------------------------------------------------- Not that I like to complain, but every time I run into a trouble, dozens more people will run into the same problem. I still remember when I complained about some other database adapter, someone popped up and said "I have been running it with ZERO problem"... and 3 months later the same person was screaming about the very database adapter that that supposingly had "ZERO problem". Things do improve. I remember the days when Python couldn't be installed easily, but nowadays even the Tcl/Tk part of Python has been absorbed into a single installer on Windows system. And it's as trivial as one-click-does-it-all. PostGreSQL has been around for a while, now. And I guess we all could do a little bit more towards making the installation of the adapter easier. Hung Jung ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
On Fri, 26 May 2000, Hung Jung Lu wrote:
I need help building the PostGreSQL database adapter on Linux.
Welcome!
Sigh... why is installing everything on Linux such a nightmare? ZPyGreSQLDA
In the world of free software you must do it yourself - there are too many UNIX variants and personal settings that noone can create an universal Makfile...
make[1]: *** No rule to make target `/u/c2/hjlu/lwc_zope/lib/python1.5/config/Ma kefile', needed by `sedscript'. Stop.
You forget to install python-dev RPMs. Just a guess, but reasonable guess. Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
My problem fits under this subject so i thought i'd hijack it :-] I have redhat 6.1, and i've installed and gotten postgresql 7.0 working okay (at least i can create tables at a psql prompt and insert data). I have zope 2.1.6 and after untarring the ZPyGreSQLDA, the README.txt file says to do two things. First: make -f Makefile.pre.in boot there was lots of output, but everything seemed to go okay however when i tried the second step: make it failed with an error saying that libpq-fe.h and libpq/libpq-fs.h weren't found any suggestions for how i correct this? where *should* those header files be? thanx so much in advance, ~c ~ ~ On Fri, 26 May 2000, Hung Jung Lu wrote: ~ > I need help building the PostGreSQL database adapter on Linux. ~ ~ Welcome! ~ ~ > Sigh... why is installing everything on Linux such a nightmare? ~ ZPyGreSQLDA ~ ~ In the world of free software you must do it yourself - there are too ~ many UNIX variants and personal settings that noone can create an ~ universal ~ Makfile... ~ ~ > make[1]: *** No rule to make target ~ > `/u/c2/hjlu/lwc_zope/lib/python1.5/config/Ma ~ > kefile', needed by `sedscript'. Stop. ~ ~ You forget to install python-dev RPMs. Just a guess, but reasonable ~ guess. ~ ~ Oleg. (All opinions are mine and not of my employer) ~ ---- ~ Oleg Broytmann Foundation for Effective Policies ~ phd@phd.russ.ru ~ Programmers don't die, they just GOSUB without RETURN. ~ ~ ~ _______________________________________________ ~ 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 ) ~
Charlie Derr wrote:
My problem fits under this subject so i thought i'd hijack it :-]
I have redhat 6.1, and i've installed and gotten postgresql 7.0 working okay (at least i can create tables at a psql prompt and insert data). [snip] it failed with an error saying that libpq-fe.h and libpq/libpq-fs.h weren't found
Caveat: I'm running 6.5.2. First, try running: find /usr/include/ -name "libpq*" and see if it actually reports that you have those files present on your system. You haven't said a lot (read: anything) about how you installed postgresql, so I'm assuming that for whatever reason you may be missing your postgresql development environment (for the record, RedHat installs those include files in /usr/include/pgsql/, but you'll need the libraries as well). Regards, Daryl Tester
Daryl, Thanx very much for the reply. |-----Original Message----- |From: dt@zen.localdomain [mailto:dt@zen.localdomain]On Behalf Of Daryl |Tester |Sent: Monday, May 29, 2000 6:27 AM |To: Charlie Derr |Cc: Zope Mailing List |Subject: Re: [Zope] Building ZPyGreSQLDA on Linux | | |Charlie Derr wrote: | |> My problem fits under this subject so i thought i'd hijack it :-] | |> I have redhat 6.1, and i've installed and gotten postgresql 7.0 working |> okay (at least i can create tables at a psql prompt and insert data). |[snip] |> it failed with an error saying that libpq-fe.h and |libpq/libpq-fs.h weren't |> found | |Caveat: I'm running 6.5.2. First, try running: | | find /usr/include/ -name "libpq*" | |and see if it actually reports that you have those files present on |your system. You haven't said a lot (read: anything) sorry about that. I had first tried to install 6.5.3 using rpms, but hadn't had success. So i did an rpm -U for all that stuff and got things cleaned out. Then I downloaded the postgresql7.0.tar.gz file and proceeded according to the instructions put forth by a Mr. Robert Easter in response to a question from "Janet" on the pgsql [General] list last week (the timestamp says it was sent Tues May 23, 2:54 am and i'm on the east coast of the US). I'm at work away from the machine i've got this set up on, so unfortunately i'm not able to provide any more information at the moment. |about how |you installed postgresql, so I'm assuming that for whatever reason |you may be missing your postgresql development environment (for the |record, RedHat installs those include files in /usr/include/pgsql/, |but you'll need the libraries as well). | |Regards, | Daryl Tester | thanx so much for taking the time to respond, ~c
participants (5)
-
Charlie Derr -
Charlie Derr -
Daryl Tester -
Hung Jung Lu -
Oleg Broytmann