[Zope] ZMySQLDA installation

John Eikenberry jae@kavi.com
Tue, 2 Mar 1999 11:50:50 -0800 (PST)


On Mon, 1 Mar 1999, Timothy Grant wrote:

> Hi all,
> 
> This is probably more of a newbie Linux question than a newbie Zope
> question, but I'm going to ask it here anyway:

Which distribution are you using?
 
> I would like to connect Zope to a database, so I have setup both
> PostgreSQL and MySQL. My reading tells me that MySQL is probably the
> better choice as a web backend (Any comments from those of you more
> knowledgable than I would be appreciated!) So I downloaded the MySQL
> source, compiled, installed and tested it. It looks like I did it right.
> I then downloaded the ZMySQLDA from the Zope site.

You might want to consider switching to one of the official binary kits
available from MySQL's homepage. MySQL is notoriously picky about how it
is compiled.
 
> I have followed the directions--I think, but get the following error
> when trying to do the initial make:
> 
> [tjg@puddleglum 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
> `/usr/local/zope/Zope-1.10.0pr1-linux2-x86/lib/pytho
> n/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/zope/Zope-1.10.0pr1-linux2-x86/lib/python
> /Products/ZMySQLDA/src'
> make: *** [boot] Error 2

Looks like you didn't install the development libraries for python
(python-devel or python-dev). 

---

John Eikenberry
[jae@kavi.com - http://taos.kavi.com/~jae/] 
______________________________________________________________
"A society that will trade a little liberty for a little order
 will deserve neither and lose both."
                                         --B. Franklin