Menu

building on Mac osx

Help
Don
2002-08-23
2012-09-19
  • Don

    Don - 2002-08-23

    Greetings,
    I am trying to build on Mac OS X, but am getting the following error:

    cc -flat_namespace -bundle -undefined suppress build/temp.darwin-5.5-Power Macintosh-2.1/_mysql.o -L/usr/lib/mysql -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/usr/local/mysql-3.23.51/lib -L/sw/lib -lmysqlclient_r -lz -o build/lib.darwin-5.5-Power Macintosh-2.1/_mysql.so -flat_namespace
    /usr/bin/ld: warning -L: directory name (/usr/lib/mysql) does not exist
    /usr/bin/ld: warning -L: directory name (/usr/local/lib/mysql) does not exist
    /usr/bin/ld: warning -L: directory name (/usr/local/mysql/lib/mysql) does not exist
    /usr/bin/ld: warning -L: directory name (/sw/lib) does not exist
    /usr/bin/ld: can't locate file for: -lmysqlclient_r
    error: command 'cc' failed with exit status 1

    I have altered the setup.py script to point to my MySQL lib and include directories, and am unable to find the file lmysqlclient_r.

    My MySQL is a pkg from Mark Liyanage, from http://www.entropy.ch/software/macosx/

    Do I need to have fink installed?

    Any help appreciated.

    Don

     
    • Andy Dustman

      Andy Dustman - 2002-08-23

      Modify setup.py such that:

      thread_safe_libarary = NO

       
    • Don

      Don - 2002-08-24

      Thanks for the help. All working now.

      Now that you mention it, I did see the thread safe bit in the docs. Just forgot it.

      And for anyone else with the marc Liyanage build of MySQL, you also need     '/usr/local/mysql-3.23.51/include' and     '/usr/local/mysql-3.23.51/lib' in the include_dirs and lib_dirs

      Don

       
    • Shay Telfer

      Shay Telfer - 2002-11-13

      Hi...

      I'm getting a similar problem, but have turned the threadsafe library off:

      running build_ext
      building '_mysql' extension
      skipping _mysql.c (build/temp.darwin-6.2-PowerMacintosh-2.2/_mysql.o up-to-date)
      gcc -L/sw/lib -bundle -bundle_loader /sw/bin/python build/temp.darwin-6.2-PowerMacintosh-2.2/_mysql.o -L/usr/lib/mysql -L/usr/local/lib/mysql -L/usr/local/mysql/lib/mysql -L/sw/lib/mysql -L/sw/lib -L/sw/lib -lmysqlclient -lz -o build/lib.darwin-6.2-PowerMacintosh-2.2/_mysql.so -flat_namespace
      ld: warning -L: directory name (/usr/lib/mysql) does not exist
      ld: warning -L: directory name (/usr/local/lib/mysql) does not exist
      ld: warning -L: directory name (/usr/local/mysql/lib/mysql) does not exist
      ld: can't locate file for: -lmysqlclient
      error: command 'gcc' failed with exit status 1

      Any suggestions?

      Thanks,
      Shay

       

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.