MySQLdb installation error

Y

Yi Xing

I log into the machine remotely. How do I check the Mac OSX version
number under command line? Thanks.


hiaips rosedb0 at gmail.com
Wed Aug 16 01:23:10 CEST 2006

* Previous message: MySQLdb installation error
* Next message: What would be the best way to run python client in
the background
* Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Yi said:
> Hi,
>
> I met the following error when I tried to install MySQLdb. I had no
> problem installing numarray, Numeric, Rpy, etc. Does anyone know
> what's the problem? Thanks!
>
> running install
> running build
> running build_py
> creating build
> creating build/lib.darwin-7.9.0-Power_Macintosh-2.4
> copying _mysql_exceptions.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4
> creating build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/__init__.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/converters.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/connections.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/cursors.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/release.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> copying MySQLdb/times.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
> creating build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/__init__.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/CR.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/FIELD_TYPE.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/ER.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/FLAG.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/REFRESH.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> copying MySQLdb/constants/CLIENT.py ->
> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
> running build_ext
> building '_mysql' extension
> creating build/temp.darwin-7.9.0-Power_Macintosh-2.4
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes -I/usr/include/mysql
> -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
> -c _mysql.c -o build/temp.darwin-7.9.0-Power_Macintosh-2.4/_mysql.o
> -fno-omit-frame-pointer -arch i386 -arch ppc -pipe
> -Dversion_info="(1,2,1,'final',2)" -D__version__="1.2.1_p2"
> gcc: cannot read specs file for arch `i386'
> error: command 'gcc' failed with exit status 1

What version of OSX are you running?
 
H

hiaips

What I'm getting at is that it looks like one of these arch flags needs
to be removed, as a previous poster said. I remember having a similar
issue with an arch flag when installing some Python module (don't
remember whether it was MySQLdb or not), and I fixed it by installing
the Universal SDK that comes with XCode on OS 10.4. If this is not an
option for you (and it sounds as though it may not be), you might also
try editing the Makefile to remove the flag corresponding to the
architecture that does not match your system.

"uname -a" should tell you which architecture you're on as well as what
version of the OS you're running.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top