473,388 Members | 1,557 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

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 3343

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Nikolaidis | last post by:
Greetings, I am attempting to get MySQLdb 0.9.2 installed on Mac OS 10.2 with a Fink distribution of Python 2.2.2. I have seen only a few posts on the subject, some of them relate to...
0
by: Stephen Roderick | last post by:
Getting weird error, and I was wondering if anyone had any suggestions. My system appears to satisfy all MySQLdb prerequisities in terms of python, mysql, etc. Also, phpMyAdmin works fine with...
0
by: praba kar | last post by:
Dear All After installation of Mysql-Python Interface. I try to import MySQLdb but I got below error How to correct this error. regards Praba >>> import MySQLdb Traceback (most recent call...
1
by: Steve | last post by:
Darwin steve.local 8.3.0 Darwin Kernel Version 8.3.0: Mon Oct 3 20:04:04 PDT 2005; root:xnu-792.6.22.obj~2/RELEASE_PPC Power Macintosh powerpc MacOSX 10.4.3 mysql Ver 14.7 Distrib 4.1.14, for...
11
by: Fred | last post by:
I hope someone can help me with the below problem... Thanks, Fred My enviroment: -------------------------- Slackware Linux 10.2 Python 2.4.2 MySql version 4.1.14
1
by: Yi Xing | last post by:
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...
4
by: antonyliu2002 | last post by:
I downloaded MySQL-python-1.2.1 from SourceForge and installed it on a Mandrake system (Mandrake Linux 9.2 3.3.1-2mdk on linux2). The installation was successful. The gcc version is 3.3. My...
1
by: Gerard M | last post by:
Hi guys I have a big problem with this wrapper im using Ubuntu 7.04 and I want to install python-MySQLdb, I used synaptics and it is installed, but when I try to do and I get this error: ...
8
by: martinnorth | last post by:
Hi, I am running Python and MySQL on Ubuntu and have installed MySQLdb. If I try to import MySQLdb I get the following error: ActivePython 2.5.2.2 (ActiveState Software Inc.) based on Python...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.