Menu

Problems with python setup.py build

Help
domynus79
2006-03-08
2012-09-19
  • domynus79

    domynus79 - 2006-03-08

    Mysql 5.0 and Python 2.4.2 installed from sources
    and tested

    When executing that command the program cannot find mysqlclient. I'm a newbye of linux... how can I set the right library?

     
    • Andy Dustman

      Andy Dustman - 2006-03-08

      http://sourceforge.net/docman/display_doc.php?docid=32070&group_id=22307

      Also, hard to diagnose without an error message or command output.

       
      • domynus79

        domynus79 - 2006-03-09

        I added to PATH /usr/local/mysql/bin and now the only error message is

        /usr/bin/ld: cannot find -lz
        collect2: ld returned 1 exit status
        error: command 'gcc' failed with exit status 1

        so the only problem is the 'ld' command that doesn't support '-lz' option!!

        Can you help again ? :-) Sorry

         
        • Andy Dustman

          Andy Dustman - 2006-03-09

          You need zlib-devel, which is listed in README.

          When it raises ImportError, be sure to re-read the FAQ, and then consider rebuilding MySQL with configure --prefix=/usr/local

           
          • domynus79

            domynus79 - 2006-03-09

            All-done... but now that I'm able to compile from source I must restart.
            I need to solve a system of disequation for version number between Mysql-Apache-Python with mod_python and MySQLdb-python.

            Really boring.

            Thanks again

             
      • domynus79

        domynus79 - 2006-03-09

        First error is:
        mysql_config: command not found

        Naturally I think it's a problem of PATH but how can I add /usr/local/mysql/bin to my path at boot time? (I've got a debian).

        Second thing is:
        I think that I should add mysqlclient or mysqlclient_r or mysqld libraries to lib directly
        foundable by bash script beacuse I didn't specified anything during Mysql compile/install.
        Is it correct or it was done automatically for me?

        Thanks in advance

         

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.