468,292 Members | 1,504 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,292 developers. It's quick & easy.

MySQLdb installation error

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 Xing wrote:
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?

Aug 17 '06 #1
1 2996

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.

Aug 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Peter Nikolaidis | last post: by
reply views Thread by Stephen Roderick | last post: by
reply views Thread by praba kar | last post: by
1 post views Thread by Steve | last post: by
11 posts views Thread by Fred | last post: by
1 post views Thread by Yi Xing | last post: by
4 posts views Thread by antonyliu2002 | last post: by
1 post views Thread by Gerard M | last post: by
8 posts views Thread by martinnorth | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.