Menu

Installation Problem

Help
DDDSh
2005-06-24
2012-09-19
  • DDDSh

    DDDSh - 2005-06-24

    Hello,
    I was trying to install MySQLDB with MySQL-python-0.9.2.tar.gz file.
    My Python ver is 2.1 and MySql ver is 4.1.9.
    I am installing it on Sun OS.

    I was trying to run python setup.py build as given in the Readme file. But I get the following error:

    running build
    running build_py
    not copying CompatMysqldb.py (output up-to-date)
    not copying _mysql_exceptions.py (output up-to-date)
    not copying MySQLdb/init.py (output up-to-date)
    not copying MySQLdb/converters.py (output up-to-date)
    not copying MySQLdb/connections.py (output up-to-date)
    not copying MySQLdb/cursors.py (output up-to-date)
    not copying MySQLdb/sets.py (output up-to-date)
    not copying MySQLdb/times.py (output up-to-date)
    not copying MySQLdb/constants/init.py (output up-to-date)
    not copying MySQLdb/constants/CR.py (output up-to-date)
    not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
    not copying MySQLdb/constants/ER.py (output up-to-date)
    not copying MySQLdb/constants/FLAG.py (output up-to-date)
    not copying MySQLdb/constants/REFRESH.py (output up-to-date)
    not copying MySQLdb/constants/CLIENT.py (output up-to-date)
    running build_ext
    building '_mysql' extension
    gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/mysql -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/local/include/python2.1 -c _mysql.c -o build/temp.solaris-2.8-sun4u-2.1/_mysql.o -fPIC
    _mysql.c: In function _mysql_ConnectionObject_info': _mysql.c:1150: warning: assignment discards qualifiers from pointer target type _mysql.c: In function_mysql_ConnectionObject_shutdown':
    _mysql.c:1356: too few arguments to function mysql_shutdown' _mysql.c: In function_mysql_ConnectionObject_stat':
    _mysql.c:1379: warning: assignment discards qualifiers from pointer target type
    error: command 'gcc' failed with exit status 1

    Any help on this will be appreciated.

    Thanks
    Deval

     
    • Andy Dustman

      Andy Dustman - 2005-06-28

      This combination won't work.

      MySQL-4.1 requires MySQL-python-1.2.0.

      MySQL-python-1.2.0 requires Python-2.2 (2.3 preferred).

       
    • mcolchanski

      mcolchanski - 2005-08-12

      I have that type of configuration :
      My SQL 4.0.15, MySQL_python-1.2.0, Python2.3, ZOPE 2.7.6-final.
      And as I install in Products ZmySQLDA 2. 0.8, I can run Zope in console...
      Any idea ????

       
      • Andy Dustman

        Andy Dustman - 2005-08-16

        ZMySQLDA-2.0.8 will not work with MySQL-python-1.2.0. Use ZMySQLDA-2.0.9b3.

        MySQL-4.0.15 is a little old (for the 4.0 series), but should not be the issue.

         
    • DDDSh

      DDDSh - 2005-06-28

      Thank you for the help. It does work now

       
      • mcolchanski

        mcolchanski - 2005-08-16

        Sorry !
        In my last Message i Forgot the 'not' !
        I cannot reload Zope !

         

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.