Mandrake 7.1 on AMDk6, and a recents sql rpms, and Zope 2.4.0 binary:
README indicates the following:
TIP: If you are using a binary package of Zope, you need run setup.py
with Zope's python executable. Otherwise, Zope (ZMySQLDA) will not
be able to find _mysql.
------
If I use the zope's python binary I got this error: (So zope source is required???)
[julian@julian MySQL-python-0.9.1c2]$ /home/julian/Zope/bin/python setup.py build
running build
running build_py
creating build
creating build/lib.linux-i586-2.1
copying CompatMysqldb.py -> build/lib.linux-i586-2.1
copying _mysql_exceptions.py -> build/lib.linux-i586-2.1
creating build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/__init__.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/converters.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/connections.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/cursors.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/sets.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/times.py -> build/lib.linux-i586-2.1/MySQLdb
creating build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.linux-i586-2.1/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.linux-i586-2.1
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/mysql -I/home/julian/Zope/include/python2.1 -c _mysql.c -o build/temp.linux-i586-2.1/_mysql.o
_mysql.c:31: Python.h: No existe el fichero o el directorio
_mysql.c:40: structmember.h: No existe el fichero o el directorio
error: command 'gcc' failed with exit status 1
I guess your binary Zope package doesn't include the files necessary to compile Python C extension modules.
Alternative approach: Get and install Python 2.1.1 on your system, and run:
$ python2.1 setup.py build $ /home/julian/Zope/bin/python setup.py install or else:
$ python2.1 setup.py install --install-dir=/home/julian/Zope/lib/python
Log in to post a comment.
Mandrake 7.1 on AMDk6, and a recents sql rpms, and Zope 2.4.0 binary:
README indicates the following:
TIP: If you are using a binary package of Zope, you need run setup.py
with Zope's python executable. Otherwise, Zope (ZMySQLDA) will not
be able to find _mysql.
------
If I use the zope's python binary I got this error: (So zope source is required???)
[julian@julian MySQL-python-0.9.1c2]$ /home/julian/Zope/bin/python setup.py build
running build
running build_py
creating build
creating build/lib.linux-i586-2.1
copying CompatMysqldb.py -> build/lib.linux-i586-2.1
copying _mysql_exceptions.py -> build/lib.linux-i586-2.1
creating build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/__init__.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/converters.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/connections.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/cursors.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/sets.py -> build/lib.linux-i586-2.1/MySQLdb
copying MySQLdb/times.py -> build/lib.linux-i586-2.1/MySQLdb
creating build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.linux-i586-2.1/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.linux-i586-2.1/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.linux-i586-2.1
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/mysql -I/home/julian/Zope/include/python2.1 -c _mysql.c -o build/temp.linux-i586-2.1/_mysql.o
_mysql.c:31: Python.h: No existe el fichero o el directorio
_mysql.c:40: structmember.h: No existe el fichero o el directorio
error: command 'gcc' failed with exit status 1
I guess your binary Zope package doesn't include the files necessary to compile Python C extension modules.
Alternative approach: Get and install Python 2.1.1 on your system, and run:
$ python2.1 setup.py build
$ /home/julian/Zope/bin/python setup.py install
or else:
$ python2.1 setup.py install --install-dir=/home/julian/Zope/lib/python