Menu

gcc problem during install on mac osx 10.4.11

Help
mjs
2008-08-18
2012-09-19
  • mjs

    mjs - 2008-08-18

    (os x version 10.4.11)

    After doing the install command:

    python setup.py install

    it runs for a while and then ends with the following:

    gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Dversion_info=(1,2,2,'gamma',1) -Dversion=1.2.2c1 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -c _mysql.c -o build/temp.darwin-8.11.1-i386-2.3/_mysql.o -Os -arch i386 -fno-common
    gcc -Wl,-F. -Wl,-F. -bundle -undefined dynamic_lookup build/temp.darwin-8.11.1-i386-2.3/_mysql.o -L/usr/local/mysql/lib -lmysqlclient_r -lz -lm -o build/lib.darwin-8.11.1-i386-2.3/_mysql.so
    /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: /usr/local/mysql/lib/libmysqlclient_r.dylib load command 7 unknown cmd field
    collect2: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1

    I double checked and I have the following gcc installed (I definitely was using it just yesterday for compiling)...

    :~/MySQL-python-1.2.2c1 root# gcc
    i686-apple-darwin8-gcc-4.0.1: no input files

    :~/MySQL-python-1.2.2c1 root# gcc --version
    i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370)
    Copyright (C) 2005 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    I'm a little out of my depth here... has anyone else had this problem or know how I might fix it?

     
    • b Berg

      b Berg - 2008-09-07

      same problem here
      mac osx 10.4.11 mysql 5 python 2.3.5 gcc 4.0.1

       
    • b Berg

      b Berg - 2008-09-07

      i was using the mysql provided by mamp
      installed the mysql.com community release and it worked

       

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.