#5 setup.py diff for alpha linux

MySQLdb
closed
Andy Dustman
MySQLdb (53)
5
2012-09-19
2002-01-30
Rob Steele
No

Adding two lines to setup.py allows MySQLdb to load
under Alpha Linux.

Requires libots and libcmpl, which are available from

http://www.compaq.com/fortran

and

http://www.compaq.com/math.

Compiled using Python 2.2, MySQL 3.23.47 and MySQLdb
0.9.2a2.

Discussion

  • Rob Steele
    Rob Steele
    2002-01-30

     
    Attachments
  • Andy Dustman
    Andy Dustman
    2002-01-30

    Logged In: YES
    user_id=71372

    In the future, please use a unified diff or context diff.

    Why are these libraries necessary?

     
  • Rob Steele
    Rob Steele
    2002-01-31

    Logged In: YES
    user_id=259527

    I'm not familiar with unified or context diffs. The
    libraries are necessary because gcc for some reason calls
    them in the code it emits for _mysql.c. The libraries
    contain utility and math routines optimized by DEC (Compaq)
    for the Alpha. I would not be surprised if RedHat built
    gcc wrong and that's where the problem comes from.

    I had the same problem under RedHat 6.2.

    Another solution is to use ccc, the Compaq compiler that
    comes free with RedHat. If you build Python with it,
    MySQLdb will use it too. But then the compiler chokes on
    the mx stuff and I haven't bothered to hunt for what it
    would take to fix that.