Menu

error in build MySQL-python-0.9.2

Help
Anonymous
2003-04-10
2012-09-19
  • Anonymous

    Anonymous - 2003-04-10

    I read the included docs and still have a problem installing MySQL-python-0.9.2.

    This is the error message

    import thread # builtin
    /usr/bin/ld: cannot find -lmysqlclient_r
    collect2: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1

    I am working on a RedHat 7.2 system:
    Apache-1.3.27-1.7.2
    Python-1.5.2-43.72
    Zope-2.6.1
    ZMySQLDA-2.0.8
    MySQL-3.23.54a-3.72
    I did use the export ZOPEBIN statement to run the install properly.
    I also tried the ZMySQLDA-2.0.9b2, although not the 2.0.9b1 version.
    Any ideas?

     
    • Anonymous

      Anonymous - 2003-04-10

      Used MySQL-python-0.9.1 and was able to finally build this product.

       
    • Andy Dustman

      Andy Dustman - 2003-04-27

      Read setup.py for the answer

       
    • Flemming Bjerke

      Flemming Bjerke - 2003-05-01

      You have to have som subset of the following libraries:

      /usr/lib/libmysqlclient.a
      /usr/lib/libmysqlclient.la
      /usr/lib/libmysqlclient.so
      /usr/lib/libmysqlclient.so.10
      /usr/lib/libmysqlclient.so.10.0.0
      /usr/lib/libmysqlclient_r.so
      /usr/lib/libmysqlclient_r.so.10
      /usr/lib/libmysqlclient_r.so.10.0.0

      Perhaps you have to run
      /sbin/ldconfig
      after having acquired the libraries (I snatched them from a Mandrake 9.0 dist).

      Flemming

       

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.