Error compiling ZMySQLDA with Zope 2.0
Hi. I know the ZMySQLDA doesn't fully support parts of Zope 2.0, but I haven't seen anything claiming that I can't compile it with the new version. Below is what I get after unpacking the DA to the Zope lib directory and following the directions for the first make instruction. Any ideas what I need to change on the commandline or in the script to make this work? ionix:/usr/local/dc/Zope-2.0.0/lib/python/Products/ZMySQLDA/src# make -f Makefile.pre.in boot PYTHON=/usr/bin/python1.5 rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`/usr/bin/python1.5 -c "import sys; print sys.version[:3]"`; \ installdir=`/usr/bin/python1.5 -c "import sys; print sys.prefix"`; \ exec_installdir=`/usr/bin/python1.5 -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 `/usr/local/dc/Zope-2.0.0/lib/python/Products/ZMySQLDA/src' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/usr/local/dc/Zope-2.0.0/lib/python/Products/ZMySQLDA/src' make: *** [boot] Error 2 Thanks, -->ben
hi ben, have you checked to see if the file /usr/lib/python1.5/config/Makefile exists? it seems the compiler cannot find it. did you follow the steps outlined in the README.txt in <zope-dir>/lib/python/Products/ZMySQLDA, like running " make -f Makefile.pre.in boot" and then make? the ZMySQLDA adapter works fine with Zope 2.0 (i used it under pretty much every alpha/beta since 2.0.0a3 and now under the final 2.0.0, running on redhat 6), the only gotcha is that you should start Zope with the switch "-t 1" to have it run with one thread. this is because the database adapter is not fully thread-safe. jens Jens Vagelpohl Systems Administrator Washtenaw Development Council
-----Original Message----- From: io@mail-gw5.pacbell.net [mailto:io@mail-gw5.pacbell.net]On Behalf Of ben andrew fulton Sent: Monday, September 13, 1999 20:39 To: zope@zope.org Subject: [Zope] Error compiling ZMySQLDA with Zope 2.0
Hi. I know the ZMySQLDA doesn't fully support parts of Zope 2.0, but I haven't seen anything claiming that I can't compile it with the new version. Below is what I get after unpacking the DA to the Zope lib directory and following the directions for the first make instruction. Any ideas what I need to change on the commandline or in the script to make this work?
ionix:/usr/local/dc/Zope-2.0.0/lib/python/Products/ZMySQLDA/src# make -f Makefile.pre.in boot PYTHON=/usr/bin/python1.5 rm -f *.o *~ rm -f *.a tags TAGS config.c Makefile.pre python sedscript rm -f *.so *.sl so_locations VERSION=`/usr/bin/python1.5 -c "import sys; print sys.version[:3]"`; \ installdir=`/usr/bin/python1.5 -c "import sys; print sys.prefix"`; \ exec_installdir=`/usr/bin/python1.5 -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 `/usr/local/dc/Zope-2.0.0/lib/python/Products/ZMySQLDA/src' make[1]: *** No rule to make target `/usr/lib/python1.5/config/Makefile', needed by `sedscript'. Stop. make[1]: Leaving directory `/usr/local/dc/Zope-2.0.0/lib/python/Products/ZMySQLDA/src' make: *** [boot] Error 2
Thanks,
-->ben
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
At 9:04 pm -0400 13/9/99, Jens Vagelpohl wrote:
[snip]
the ZMySQLDA adapter works fine with Zope 2.0 (i used it under pretty much every alpha/beta since 2.0.0a3 and now under the final 2.0.0, running on redhat 6), the only gotcha is that you should start Zope with the switch "-t 1" to have it run with one thread. this is because the database adapter is not fully thread-safe.
jens
Does this mean that the MySQL database could be corrupted if I *don't* set '-t 1' when starting Zope? tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
hi tony, i think in certain circumstances this could happen... when chris petrilli discussed database adapter status we had a thread about thread safety. you might want to search the list archives for stuff on it. jens Jens Vagelpohl Systems Administrator Washtenaw Development Council
-----Original Message----- From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk] Sent: Tuesday, September 14, 1999 03:49 To: Jens Vagelpohl; ben andrew fulton; zope@zope.org Subject: RE: [Zope] Error compiling ZMySQLDA with Zope 2.0
At 9:04 pm -0400 13/9/99, Jens Vagelpohl wrote:
[snip]
the ZMySQLDA adapter works fine with Zope 2.0 (i used it under pretty much every alpha/beta since 2.0.0a3 and now under the final 2.0.0, running on redhat 6), the only gotcha is that you should start Zope with the switch "-t 1" to have it run with one thread. this is because the database adapter is not fully thread-safe.
jens
Does this mean that the MySQL database could be corrupted if I *don't* set '-t 1' when starting Zope? tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
At 7:27 am -0400 14/9/99, Jens Vagelpohl wrote:
hi tony,
i think in certain circumstances this could happen... when chris petrilli discussed database adapter status we had a thread about thread safety. you might want to search the list archives for stuff on it.
jens
thanks Jens, I'll look through the list archives. It's a bit of a worry for me... OTOH, most of my MySQL work in Zope is read-only, perhaps *that's* ok? hmmm... tone ------ Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
At 12:39 AM 9/14/99 +0000, ben andrew fulton wrote:
Hi. I know the ZMySQLDA doesn't fully support parts of Zope 2.0, but I haven't seen anything claiming that I can't compile it with the new version. Below is what I get after unpacking the DA to the Zope lib directory and following the directions for the first make instruction. Any ideas what I need to change on the commandline or in the script to make this work?
Just for the record : compiling ZMySQLDA was such a pain in the arse for me that I simply rebuilt my Python1.5.2 with the MySQL module. If all else fails, you may wish to try that - it was much quicker and easier. You still need to place the ZMySQLDA product in the products directory but no need for recompile. You can test if MySQL module is compiled ok within python1.5.2 by importing it at the interpreter :
import MySQL
hth, chas
participants (4)
-
ben andrew fulton -
chas -
Jens Vagelpohl -
Tony McDonald