First of all I am very new to all of this.
I recently upgraded to Snow Leopard and installed Xcode + iPhone Dev Package, 3.1.2 I went to install the Django framework + MYSQLDB handler during the build phase, the terminal shows me the GCC exit status 1 error But I have already installed the encoded?
Where am I going?
Besides, while trying to fix things, I had installed the exode that came with Snow Leopard DVD. Still the same error
Now I think that I should completely remove Xcode and should install a fresh one?
What ver.3.1.2 is for specific 32-bit? Please help me
Here's the full error:
Amit-Verma-MacBook: mysql-python-1.2.2 amitverma $ gcc-4.0 i686-apple- Darwin10-gcc-4.0 1: An Input Files Amit-Vermas-MacBook: mysql-python-1.2.2 Amphitheat $ python setup.py build running build_py MySQLdb / release.py - & gt; Build / Libkmacosx-L0k3-I386-2k5 / MySQLdb running build_ext building '_mysql' extension GCC -sisraot / developer / SDK / Maksaks 10.4 Yuesdike -fno-strict-aliasing -vino-long double-non-Seepeepi- Precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info = (1,2,2, 'last', 0) -D__version__ = 1.2.2-I / usr / local / mysql / included - I / Library / Frameworks / Pythonkframework / versions / 2.5 / include / python2.5 -c _mysql.c -o Build / temp.macosx-10.3-i386-2.5 / _mysql.o -g -Os -arch x86_64 - fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL cc1: error: unrecognized command line option "-Wno-long-do Uble "error: failed with order 'gcc' failure status 1
I'm not sure That is, if you have solved your problem, after upgrading from Mac OS 10.4 to 10.6, I have got the exact same issues.
After some blog posts, on a hip, I was pointing setup.py to an old GCC version (GCC-2.0).
CC = '/ usr / bin / gcc-4.0' Python setup.py build
There were some alerts in the build.
Running build build_p MySQLdb / release.py - & gt; Copy Build / lib.macosx-running 10.3-i386-2.5 / MySQLdb build_ext building '_mysql' extension /usr/bin/gcc-4.0-isysroot/developer/sdks/macosx10.4u.sdk -fno- strict-aliasing - not-long -double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -divron_info = (1,2,3, 'gamma', 1) -D__version ___ = 1.2. 3c1-I / Usr / local / mysql / include -i / library / frameworks / Python.framework / version / 2.5 / included / python2.5 -c _mysql.c -o build / temp.macosx-10.3-i386-2.5 / _mysql.o -g -Os -arch i386 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL file from _mysql.c included: 36: /usr/local/mysql/include/my_config.h:1050:12 : Warning: "HAVE_WCSCOLL" rescheduled Included in L / Library / Framework / Python. Framework / Version-2.5 / Includes / Python2.5 / Python.h: 8, from pymemcompat.h: 10, _mysql.c to :: Library / Framework / Python. Framework / Version / 2.5 / / Python 2/5 / pyconfig.h: 724: 1: Warning: This is the location of the previous definition GCC -arc i386 -You PPC -sisrot / developer / SDK / Maksaks 10.4 U SDK -ji- Bundle-embedded dynamic_club build / temp.macosx-10.3-i386-2.5 / _mysql.o - L / USR / local / ISSLL / Lib-LMIISL-client_r-lz -lm -lmygcc -o build / lib.macosx-10.3-i386 -2.5 / _mysql.so LD: Warning: build / temp.macosx-10.3-i386-2.5 /_mysql.o, File is not required architecture: Warning: / usr / local / mysq In l / lib / libmysqlclient_r.dylib, the file does not belong to the required architecture: Warning: in / usr / local / mysql / lib / libmygcc A, the file does not belong to the required architecture
ran again at the same command.
Now everything works magically now and it also goes through the set. The module works as the candidate.
No comments:
Post a Comment