title: mountain lion os X python mysql install
body: <p>downloaded tar file from here</p>
  
  <p><a href="http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/" rel="nofollow">http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.3/</a></p>
  
  <p>and followed the guide at <a href="http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/" rel="nofollow">http://decoding.wordpress.com/2012/01/23/how-to-setup-django-and-mysql-python-on-mac-os-x-lion/</a>.  </p>
  
  <p>Got Django installed successfully.
  Changed the site.cfg config in mysql_config = /usr/local/mysql-5.6.10-osx10.7-x86_64/mysql_config</p>
  
  <p>Then ran sudo python setup.py build</p>
  
  <p>Got this output</p>
  
  <pre><code>dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo)    is setuid or setgid
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.6-intel-2.7
  copying _mysql_exceptions.py -&gt; build/lib.macosx-10.6-intel-2.7
  creating build/lib.macosx-10.6-intel-2.7/MySQLdb
  copying MySQLdb/__init__.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb
  copying MySQLdb/converters.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb
  copying MySQLdb/connections.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb
  copying MySQLdb/cursors.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb
  copying MySQLdb/release.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb
  copying MySQLdb/times.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb
  creating build/lib.macosx-10.6-intel-2.7/MySQLdb/constants
  copying MySQLdb/constants/__init__.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb/constants
  copying MySQLdb/constants/CR.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb/constants
  copying MySQLdb/constants/FIELD_TYPE.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb/constants
  copying MySQLdb/constants/ER.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb/constants
  copying MySQLdb/constants/FLAG.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb/constants
  copying MySQLdb/constants/REFRESH.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb/constants
  copying MySQLdb/constants/CLIENT.py -&gt; build/lib.macosx-10.6-intel-2.7/MySQLdb/constants
  running build_ext
  building '_mysql' extension
  creating build/temp.macosx-10.6-intel-2.7
  gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -Dversion_info=    (1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql-5.6.10-osx10.7-x86_64/include -    I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o     build/temp.macosx-10.6-intel-2.7/_mysql.o -Os -g -fno-strict-aliasing -arch x86_64
  unable to execute gcc-4.2: No such file or directory
  error: command 'gcc-4.2' failed with exit status 1
  </code></pre>
  
  <p>Where are these errors coming from?  Found solutions for Snow Leopard but not Mountain Lion.  Thanks.  </p>