Skip navigation.
Home

MySQL Python on Snow Leopard

First of all you may try a precompiled binary egg in the attachment.

If it does not work you may need to follow these steps:

 

Keywords
error: unrecognized command line option "-Wno-long-double"
error: command 'gcc' failed with exit status 

Edit your:

/Library/Frameworks/Python.framework/Versions/5.1.1/lib/python2.5/config/Makefile

And remove "-Wno-long-double" from BASECFLAGS

e.g.: BASECFLAGS=     -fno-strict-aliasing -no-cpp-precomp -mno-fused-madd -fno-common -dynamic
 (suggested by http://osdir.com/ml/python.f2py.user/2005-10/msg00002.html)

Then as suggested by http://blog.some-abstract-type.com/2009/09/mysql-python-and-mac-os-x-106-snow.html

shell> PATH="/usr/local/mysql/bin:$PATH"
shell> tar xzf MySQL-python-1.2.3c1.tar.gz
shell> cd MySQL-python-1.2.3c1
shell> ARCHFLAGS="-arch x86_64" /usr/bin/python setup.py build
shell> /usr/bin/python setup.py install

----------------

Keywords:

Searched for mysql python snow leopard binary - 
 Viewed 1 result
 
  
spacerspacer
Not starred
Planet MySQL - mysql.com
 6:32pm 
spacer
Searched for snow leopard osx mysql python - 
 Viewed 1 result
 
  
spacerspacer
Not starred
Installing MySQL, Python, MySQLdb on Snow Leopard (Mac... - brambraakman.com
 6:31pm 
spacer
Searched for osx - 
 Viewed 1 result
 
  
spacerspacer
Not starred
Mac OS X - Wikipedia, the free encyclopedia - wikipedia.org
 6:25pm 
spacer
Searched for gcc 3 osx - 
 Viewed 1 result
 
  
spacerspacer
Not starred
The GNU Compiler Collection on Mac OS X Development - apple.com
 6:25pm 
spacer
Searched for gcc 3
 
 
 6:23pm 
spacer
Searched for unrecognized command line option "-Wno-long-double" - 
 Viewed 1 result
 
  
spacerspacer
Not starred
Re: [f2py] specifying proper command line options - msg#00002... - osdir.com
 
 6:22pm 
spacer
Searched for mysql python osx
 
 6:22pm 
spacer
Searched for mysql mysql_config osx path
 
 
 6:09pm 
spacer
Searched for xcode install - 
 Viewed 1 result
 
  
spacerspacer
Not starred
Download Xcode - Apple Developer Connection - apple.com
 
 6:03pm 
spacer
Searched for error: unrecognized command line option "-Wno-long-double" - 
 Viewed 1 result
 
  
spacerspacer
Not starred
#473935 - sqlrelay: FTBFS: cc1plus: error: unrecognized... - debian.org
 6:02pm 
spacer
Searched for mysql error: unrecognized command line option "-Wno-long-double" - 
 Viewed 2 results
 
  
spacerspacer
Not starred
MySQL :: problems building mysql-python-1.2.2 on Mac... - mysql.com
  
spacerspacer
Not starred
unrecognized command line option "-Wno-long-double" -... - bytes.com
 5:57pm 
spacer
Searched for mysql python
 
 5:54pm 
Not starred
Installing Python MySQLdb 1.2.2 on Mac OS X | MangoOrange™ - mangoorange.com
 5:54pm 
Not starred
Ken Ingle » MySQL-Python and Apple OSX 10.5 (Leopard) - keningle.com
5:54pm 
spacer
Searched for mysql python osx - 
 Viewed 2 results
 
  
spacerspacer
Not starred
http://www.keningle.com/?p=11
  
spacerspacer
Not starred
http://www.mangoorange.com/2008/08/01/installing-python-mysql...
 5:51pm 
spacer
Searched for mysql mysql_config osx path
 
 5:51pm 
spacer
Searched for mysql mysql_config osx
 
 5:39pm 
spacer
Searched for python sql
 
 5:38pm 
spacer
Searched for python mysql - 
 Viewed 4 results
 
  
spacerspacer
Not starred
MySQL-Python - blogspot.com
  
spacerspacer
Not starred
MySQL :: Using MySQL With Python - mysql.com
  
spacerspacer
Not starred
MySQL Connectivity With Python - devshed.com
  
spacerspacer
Not starred
Python Package Index : MySQL-python 1.2.2 - python.org
 5:38pm 
spacer
Searched for python DB-API - 
 Viewed 2 results
 
  
spacerspacer
Not starred
Writing MySQL Scripts with Python DB-API - kitebird.com
  
spacerspacer
Not starred
PEP 249 -- Python Database API Specification v2.0 - python.org
 5:37pm 
spacer
Searched for python db