Menu

MySQL-python-1.2.2 compile on solaris 10

Help
JonC
2009-03-10
2012-09-19
  • JonC

    JonC - 2009-03-10

    I'm currently trying to compile MySQL-python-1.2.2 on solaris 10/08, but am getting the following error:

    bash-3.00# python setup.py build
    running build
    running build_py
    copying MySQLdb/release.py -> build/lib.solaris-2.10-i86pc-2.4/MySQLdb
    running build_ext
    building '_mysql' extension
    /usr/lib/python2.4/pycc -DNDEBUG -Dversion_info=(1,2,2,'final',0) -Dversion=1.2.2 -I/usr/local/mysql/include -I/usr/include/python2.4 -c _mysql.c -o build/temp.solaris-2.10-i86pc-2.4/_mysql.o -g -mt -fsimple=1 -ftrap=%%none -nofstore -xbuiltin=%%all -xlibmil -xlibmopt -xtarget=generic -DHAVE_RWLOCK_T -DUNIV_SOLARIS
    cc: illegal option -ftrap=%%none
    error: command '/usr/lib/python2.4/pycc' failed with exit status 1

    This is using Sun Studio 12 cc.

    Has anybody else experienced this issue, or have any ideas on the cause?

    Thanks

    Jon

     
    • JonC

      JonC - 2009-03-13

      This is now working. I compiled mysql from source, and the module then installed. I was previously using the sun compiled binaries for mysql.

      Thanks

      Jon

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.