#147 setup.py build fails because no --include MySQL option

MySQLdb-1.2
closed
nobody
None
5
2012-09-19
2005-07-22
No

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

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Known problem, try the latest snapshot.

     
  • Mach75

    Mach75 - 2005-10-18

    Logged In: YES
    user_id=1363795

    Possible workaround for fedora (2,3) and MySQL 3.23.58 (
    MySQL-python-1.2.1c3)

    1. Run manually mysql_config
    2. Take the values for cflags, libs
    3. Replace variable values in setup.py
      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)
    4. run python setup.py build again and it should work
     

Log in to post a comment.