MySQLdb installation error

Y

Yi Xing

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
 
H

hiaips

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?
 
D

Dennis Lee Bieber

-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

Are you running on an intel processor?

Could one of those -arch options need to be removed?
--
Wulfraed Dennis Lee Bieber KD6MOG
(e-mail address removed) (e-mail address removed)
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff: (e-mail address removed))
HTTP://www.bestiaria.com/
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top