Menu

Import MySQLdb on True64Unix fails

Help
Andy
2007-01-25
2012-09-19
  • Andy

    Andy - 2007-01-25

    Platform: True64Unix V5.1
    Python: Python 2.4.4
    MySQLdb MySQL-python-1.2.1-p2

    I have compiled and installed both Python & MySQLdb apparently without errors.

    When issuing the command in python
    >>> import MySQLdb

    I get the message

    ImportError: dlopen: /usr/local/lib/python2.4/site-packages/_mysql.so: "compress" unresolved

    Could anybody help with the meaning of this message and how to fix it please.

    Many thanks

     
    • Andy

      Andy - 2007-01-26

      mysql_config --libs

      -L /usr/local/mysql/lib -lmysqlcient -iz -im

      ldd _mysql.so

      Main => _mysql.so
      libpthread.so => /usr/shlib/libpthread.so
      libmach.so => /usr/shlib/libmach.so
      libexe.so => /usr/shlib/libexe.so
      libc.so => /usr/shlib/libc.so
      libm.so => /usr/shlib/libm.so

      ldd libmysqlclient.so

      I do not have this file. In /usr/local/mysql/lib i have libmysqlclient.a

      Thanks
      Andrew

       
    • Andy Dustman

      Andy Dustman - 2007-01-25

      What output does this produce:

      mysql_config --libs

      In short, you need libz (most likely), because your MySQL client libraries need it. Also look at:

      ldd _mysql.so

      and

      ldd libmysqlclient.so # probably in /usr/local/lib/mysql

      If it breaks on libz, that's your problem. libz is probably not on your default loader path.

       

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.