MySQL Forums
Forum List  »  Connector/Python

problems building mysql-python-1.2.2 on Mac OS X 10.4.11
Posted by: Jan Gerner
Date: December 09, 2007 03:12PM

hi everyone,

my "python setup.py build" dies on me with the message "command 'gcc' failed with exit status 1". i have installed gcc4 through fink. i'm not very much into compiling stuff, but i thought that the gcc through fink should be the right one to do the job, so i can't tell whether the problem lies within mysql-python or gcc. i already pointed gcc towards gcc4 in /sw/bin/ as they chose to name it gcc4 for it not to conflict with gcc from the apple developer tools, which i have not installed (and i am not planning to).
Mac OS X 10.4.11 on a PPC G4 Powerbook

thanks a lot for any advice,
yanone

here's the whole output:
Tatwaffe:/Volumes/Heimat/Library/Downloads/MySQL-python-1.2.2 root# python setup.py build
running build
running build_py
creating build/lib.darwin-8.11.0-Power_Macintosh-2.3
copying _mysql_exceptions.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3
creating build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/__init__.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/converters.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/connections.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/cursors.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/release.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb
copying MySQLdb/times.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb
creating build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.darwin-8.11.0-Power_Macintosh-2.3/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.darwin-8.11.0-Power_Macintosh-2.3
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,'final',0) -D__version__=1.2.2 -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.0-Power_Macintosh-2.3/_mysql.o -Os -arch ppc -fno-common
gcc: unrecognized option '-no-cpp-precomp'
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-long-double"
error: command 'gcc' failed with exit status 1

Options: ReplyQuote


Subject
Written By
Posted
problems building mysql-python-1.2.2 on Mac OS X 10.4.11
December 09, 2007 03:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.