RE: [Zope] Building ZPyGreSQLDA on Linux
Daryl, Thanx very much for the reply. |-Original Message- |From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]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 ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Building ZPyGreSQLDA on Linux
try ZPoPyDA http://www.mixadlive.com ftp://ftp.mixadlive.com/pub/zope/ZPoPyDA/ZPoPyDA-0.1.0.tar.gz Bye Paolo Comitini Mixad Live s.r.l. > > Contacted the author of ZPyGreSQLDA but so far no response... > > Hung Jung > ___ Zope maillist - [EMAIL PROTECTED] 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 )
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) 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 ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Building ZPyGreSQLDA on Linux
On Sat, 27 May 2000, Hung Jung Lu wrote: > Let me try again, does any of you guys have a "config" subfolder inside your > /usr/lib/python1.5/ folder? I guess the "config" subfolder maybe an feature Yes, I have it. It appeared after "make install". But it is in /usr/local/lib/python1.5 - you need to uninstall python from /usr/bin and /usr/lib, if you installed python from sources... > from the old python1.5, because in the new python1.5.2 there is no such a > folder. No. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] SV: [Zope] Building ZPyGreSQLDA on Linux
> Let me try again, does any of you guys have a "config" > subfolder inside your > /usr/lib/python1.5/ folder? I guess the "config" subfolder > maybe an feature > from the old python1.5, because in the new python1.5.2 there > is no such a > folder. > > Also, in an error like: > > make[1]: *** No rule to make target > `/usr/lib/python1.5/config/Makefile', > needed > by `sedscript'. Stop. You need to install the python-devel-1.5.2 rpm (or compile and install python from source). /Magnus Heino ___ Zope maillist - [EMAIL PROTECTED] 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 )
RE: [Zope] Building ZPyGreSQLDA on Linux
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 ~ [EMAIL PROTECTED] ~Programmers don't die, they just GOSUB without RETURN. ~ ~ ~ ___ ~ Zope maillist - [EMAIL PROTECTED] ~ 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 ) ~ ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Building ZPyGreSQLDA on Linux
>From: "Cary O'Brien" <[EMAIL PROTECTED]> >Ok, the build procedure can't find the Makefile supplied >by the standard python install (the python-development package >if you are installing via RPMS). It looks as if you >have python installed in /u/c2/hjlu/lwc_zope... rather than >/usr/local/... or something like that. Either the Makefile >is missing, or the build procedure is looking in the wrong >place. Does any of you know where to obtain the Python-dev files? I searched all over www.python.org but could not find anything on Python-dev. I am not using RPMs, I just download source directly from www.python.org. regards, Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Building ZPyGreSQLDA on Linux
>From: Daryl Tester <[EMAIL PROTECTED]> > > Let me try again, does any of you guys have a "config" subfolder inside >your > > /usr/lib/python1.5/ folder? > >Yes. For the record (RedHat 6.1): > >[dt@nipnyep dt]$ ls /usr/lib/python1.5/config/ >MakefileSetup.local config.c.in makesetup >Makefile.pre.in Setup.thread install-sh python.o >Setup config.c libpython1.5.a Thanks a lot, I am inching in day-by-day. :) Your directory structure is really illuminating. You've been very helpful. You'll see why in a second. Trust me, and please take the time to verify yourself, and let me repeat once and for all: the "config" subfolder is a deprecated feature in Python. It's gone. Bye bye to "config". It no longer exists in Python distribution 1.5.2. My Python folder shows the following: (this is from the latest source install of Python... downloaded yesterday from www.python.org) [hjlu@www src]$ ls /u/c2/hjlu/Python-1.5.2/ BeOSMakefile.in Parser config.cacheconfigure.in DemoMiscPython config.h getbuildinfo.o Grammar Modules README config.h.in install-sh Include Objects Tools config.log libpython1.5.a Lib PC acconfig.h config.status pg.py MakefilePCbuild buildno configure python As you can see, a lot of your files that used to be inside the "config" subfolder are nowadays at the root of the Python installation directory. The "makesetup" file is nowadays inside the "Modules" subfolder. It seems to me that Python installation has changed substantially from 1.5 to 1.5.2. So, in short, those of you that are running ZPyGreSQLDA are a very limited lucky bunch of people that are still using Python 1.5 instead of 1.5.2. :) In other words, ZPyGreSQLDA simply doesn't work out-of-the-box with Python 1.5.2. After tweaking the Makefile.pre.in, I have been able to go a few more steps in the makefile process. It still has error, but I'll solve one error at a day, ha. :) Regards and thanks again to all who have helped. I'll post a summary on how to install ZPyGreSQLDA with Python 1.5.2, if I succeed to. :) Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Building ZPyGreSQLDA on Linux
Hung Jung Lu wrote: > Trust me, and please take the time to verify yourself, and let me repeat > once and for all: the "config" subfolder is a deprecated feature in Python. > It's gone. Bye bye to "config". It no longer exists in Python distribution > 1.5.2. OK - I just pulled down a _fresh_ copy of py152.tgz (eschewing the source copy that came with RedHat 6.1), and built it using: ./configure --prefix=/usr/foo --exec-prefix=/usr/foo make make test make install Finally, examining the results: [dt@nipnyep Python-1.5.2]$ ls /usr/foo/lib/python1.5/config/ Makefile Setup.local config.c.in makesetup Makefile.pre.in Setup.thread install-sh python.o Setupconfig.c libpython1.5.a ${PREFIX}/lib/python1.5/config - same as my other install (or, as Aristotle said, "deprecated, my arse"). I think you will find that your problem stems from not having installed Python, but instead are running it from your home directory. > As you can see, a lot of your files that used to be inside the "config" > subfolder are nowadays at the root of the Python installation directory. No, they're not. > It seems to me that Python installation has changed substantially from 1.5 > to 1.5.2. [dt@nipnyep Python-1.5.2]$ which python /usr/bin/python [dt@nipnyep Python-1.5.2]$ /usr/bin/python Python 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam 1.5.2. > Regards and thanks again to all who have helped. I'll post a summary on how > to install ZPyGreSQLDA with Python 1.5.2, if I succeed to. :) I've done it, and it just worked. ZPyGreSQLDA built "out of the box" with no problems, and it runs fine. As I said before, your grievances appear environmental. Regards, Daryl Tester ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Building ZPyGreSQLDA on Linux
Hung Jung Lu wrote: > Let me try again, does any of you guys have a "config" subfolder inside your > /usr/lib/python1.5/ folder? Yes. For the record (RedHat 6.1): [dt@nipnyep dt]$ ls /usr/lib/python1.5/config/ Makefile Setup.local config.c.in makesetup Makefile.pre.in Setup.thread install-sh python.o Setupconfig.c libpython1.5.a > I guess the "config" subfolder maybe an feature from the old python1.5, > because in the new python1.5.2 there is no such a folder. There should be _if you built your python from source_, or have the python development RPMS installed (if you're on a platform that supports RPMS - adjust to taste). The config folder contains all the details of building a new python runtime (or shared library module), so it's unlikely to disappear anytime soon. > I guess RedHat Python RPMs set up folder structures very differently from > the plain source files build of Python. No, they shouldn't - on previous platforms, I've usually built Python from scratch, but on this box is the first time I've used RPMS exclusively (mind you, I'm still using the Zope-2.1.4 RPM that contains its own Python interpreter). Try: [dt@nipnyep dt]$ rpm -qa | egrep python python-1.5.2-7 pythonlib-1.23-1 python-devel-1.5.2-7 python-docs-1.5.2-7 python-tools-1.5.2-7 (I feel an except: clause should go here :-) The key RPM here being python-devel-1.5.2-7. > Contacted the author of ZPyGreSQLDA but so far no response... It still looks like a local environment issue. Regards, Daryl Tester ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Building ZPyGreSQLDA on Linux
Let me try again, does any of you guys have a "config" subfolder inside your /usr/lib/python1.5/ folder? I guess the "config" subfolder maybe an feature from the old python1.5, because in the new python1.5.2 there is no such a folder. Also, in an error like: make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. Is it complaining that the config/Makefile cannot be made? Or is it complainig that the Makefile cannot be found? It the Makefile a target or a source in this particular case? That is, is the "config" folder to be generated, or is it supposed to be there from a start? I guess RedHat Python RPMs set up folder structures very differently from the plain source files build of Python. I am using the source file build of Python and there is no "config" folders anywhere. Contacted the author of ZPyGreSQLDA but so far no response... Hung Jung >From: "Hung Jung Lu" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], >[EMAIL PROTECTED] >Subject: Re: [Zope] Building ZPyGreSQLDA on Linux >Date: Fri, 26 May 2000 22:38:41 PDT > >>From: "Cary O'Brien" <[EMAIL PROTECTED]> >>Ok, the build procedure can't find the Makefile supplied >>by the standard python install (the python-development package >>if you are installing via RPMS). It looks as if you >>have python installed in /u/c2/hjlu/lwc_zope... rather than >>/usr/local/... or something like that. Either the Makefile >>is missing, or the build procedure is looking in the wrong >>place. > >Does any of you know where to obtain the Python-dev files? I searched all >over www.python.org but could not find anything on Python-dev. I am not >using RPMs, I just download source directly from www.python.org. > >regards, > >Hung Jung > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Building ZPyGreSQLDA on Linux
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 [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] Building ZPyGreSQLDA on Linux
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 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 ___ Zope maillist - [EMAIL PROTECTED] 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 )