setup.py build fails because no --include MySQL option
MySQL database connector for Python programming
Brought to you by:
adustman
mysql-python 1.2.0 from *.tar.gz
installing on Linux Red Hat FC3:
problem with
python setup.py build
The script is calling via pipe:
mysql_config --include
but the MySQL version 3.* installed with the OS
has ho such option!
mysql_config in FC3 default MySQL installation
supports only:
--cflags
--libs
--socket
--port
--version
Logged In: NO
Known problem, try the latest snapshot.
Logged In: YES
user_id=1363795
Possible workaround for fedora (2,3) and MySQL 3.23.58 (
MySQL-python-1.2.1c3)
i.e
library_dirs = [`usr/lib/mysql'] (first from mysql --libs)
libraries = ['mysqlclient','z','crypt','nsl','m'] (rest
from --libs)
extra_compile_args = ['-I/usr/include/mysql'] (mysql
--cflags)