[Zope] ZMySQLDA Help
Todd Loomis, DMSO (SAIC)
tloomis@dmso.mil
Wed, 10 Jul 2002 13:21:36 -0400
Hey:
This is the full output:
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/__init__.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/__init__.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
building '_mysql' extension
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/mysql -I/usr/local
/include/python2.1 -c _mysql.c -o build/temp.linux-i686-2.1/_mysql.o
_mysql.c:41:19: mysql.h: No such file or directory
_mysql.c:42:26: mysqld_error.h: No such file or directory
_mysql.c:43:20: errmsg.h: No such file or directory
error: command 'gcc' failed with exit status 1
Thanks,
Todd
-----Original Message-----
From: Kevin Carlson [mailto:khcarlso@bellsouth.net]
Sent: Wednesday, July 10, 2002 11:17 AM
To: Todd Loomis, DMSO {SAIC}
Cc: zope@zope.org
Subject: RE: [Zope] ZMySQLDA Help
On second thought, it looks as though the setup.py is finding gcc. Could
you please post the entire error message?
-----Original Message-----
From: Todd Loomis, DMSO {SAIC} [mailto:tloomis@dmso.mil]
Sent: Wednesday, July 10, 2002 10:26 AM
To: Kevin Carlson
Cc: zope@zope.org
Subject: RE: [Zope] ZMySQLDA Help
All:
I have gcc-2.96-110 installed do I need anything else?
Thanks,
Todd
Quoting Kevin Carlson <khcarlso@bellsouth.net>:
> Todd,
>
> I had a similar problem when I tried installing ZMySQLDA. You need to
> install the development tools packages from your Linux install CD (which
> includes gcc). That should do the trick.
>
> Kevin
>
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Todd
> Loomis, DMSO (SAIC)
> Sent: Wednesday, July 10, 2002 8:31 AM
> To: Dennis Allison
> Cc: zope@zope.org
> Subject: RE: [Zope] ZMySQLDA Help
>
>
> All:
>
> I get the following error when I try this /var/www/zope/bin/python
setup.py
> build.
>
> error: command 'gcc' failed with exit status 1
>
> What's wrong
>
> Thanks,
> Todd
>
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Dennis Allison
> Sent: Tuesday, July 09, 2002 6:17 PM
> To: allison@sumeru.stanford.EDU; tloomis@dmso.mil
> Cc: zope@zope.org
> Subject: RE: [Zope] ZMySQLDA Help
>
>
> OK, which zope and which python are you using? Zope requires python
> 2.1.3. RH7.3 ships with Python 1.5 and Python 2.2. The Linux binary
> distribution of Zope includes python 2.1.3--it's what I use.
>
> You'll need the source tarballs or the SRPMs for MySQL-python-0.9.1-1py2.
> Both MySQL-python and ZMySQLDA use distutils. In the directory for each
> product execute
>
> /var/www/zope/bin/python setup.py build
> /var/www/zope/bin/python setup.py install
>
> Note that you *must* use the python used with zope as that's the way all
> the proper libraries and path are identified. After a bit of fuss, some
> C compiles, and the like, you should be in business.
>
> Good luck.
>
> -d
>
> -----
>
> > I've just rebuilt my system RedHat 7.3 with zope I used the following to
> > still get the below errors anything to help?
> >
> > files used:
> > - MySQL-python-0.9.1-1py1.i386.rpm
> > - MySQL-python-0.9.1-1py2.i386.rpm
> > - ZMySQLDA-2.0.8.tar.gz
> >
> > error:
> > 2002-07-09T20:27:15 ERROR(200) Zope Could not import Products.ZMySQLDA
> > Traceback (innermost last):
> > File /var/www/zope/lib/python/OFS/Application.py, line 531, in
> > import_product
> > File /var/www/zope/lib/python/Products/ZMySQLDA/__init__.py, line 91,
> in
> ?
> > File /var/www/zope/lib/python/Products/ZMySQLDA/DA.py, line 92, in ?
> > File /var/www/zope/lib/python/Products/ZMySQLDA/db.py, line 89, in ?
> > ImportError: No module named _mysql
> >
> > Thanks,
> > Todd
> >
> > From: Dennis Allison [mailto:allison@sumeru.stanford.EDU]
> >
> > Install gcc?
> >
> > What system are you running on? You need to install two things -- the
> > python adaptor for MySQL and the zope adaptor. In a linux environment
> > I just followed the instructions at Zope.org and everything came up
> > neatly. With other environments, YMMV.
> >
> > I use MySQL-python-0.9.1. and ZMySQLDA-2.0.8 both distributed as
> tarballs.
> > You do have to compile some C code--hence the need for gcc. Look at the
> > setup.py
> > programs to set configuration stuff.
> >
> > >I just tried and I still can't seem to get it to work it gives me the
> > following
> > >message when I run python2.1 setup.py build:
> > >
> > >error: command 'gcc' failed with exit status 1
> > >
> > >Anything else I need to do?
> > >
> > >Quoting Dennis Allison <allison@sumeru.stanford.EDU>:
> > >
> > >> You need to install it in the Zope version of python. Run setup in
> the
> > >> ZMySQLDA
> > >> directory with the version of python you are using for Zope.
> > >>
>
>
> _______________________________________________
> 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 )
>
>
>
> _______________________________________________
> 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 )
>