title: Can't install python mysql library on Mac Mavericks
body: <p>It was working like a charm before the update from Mountain Lion.</p>
  
  <p>After the update it is broken and I cannot get the environment up again.</p>
  
  <p>Does anybody know how to fix this?</p>
  
  <p>The error is bolded, below.</p>
  
  <pre><code>fedorius@this:~$ pip install mysql-python
  Downloading/unpacking mysql-python
    Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
    Running setup.py (path:/private/var/folders/21/zjvwzn891jnf4rnp526y13200000gn/T/pip_build_fedorius/mysql-python/setup.py) egg_info for package mysql-python
  
  Installing collected packages: mysql-python
    Running setup.py install for mysql-python
      building '_mysql' extension
      cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.9-intel-2.7/_mysql.o -Os -g -fno-strict-aliasing -arch x86_64
      clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
      clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
      error: command 'cc' failed with exit status 1
      Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/21/zjvwzn891jnf4rnp526y13200000gn/T/pip_build_fedorius/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/21/zjvwzn891jnf4rnp526y13200000gn/T/pip-_yi6sy-record/install-record.txt --single-version-externally-managed --compile:
      running install
  
  running build
  
  running build_py
  
  creating build
  
  creating build/lib.macosx-10.9-intel-2.7
  
  copying _mysql_exceptions.py -&gt; build/lib.macosx-10.9-intel-2.7
  
  creating build/lib.macosx-10.9-intel-2.7/MySQLdb
  
  copying MySQLdb/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb
  
  copying MySQLdb/converters.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb
  
  copying MySQLdb/connections.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb
  
  copying MySQLdb/cursors.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb
  
  copying MySQLdb/release.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb
  
  copying MySQLdb/times.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb
  
  creating build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
  
  copying MySQLdb/constants/__init__.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
  
  copying MySQLdb/constants/CR.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
  
  copying MySQLdb/constants/FIELD_TYPE.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
  
  copying MySQLdb/constants/ER.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
  
  copying MySQLdb/constants/FLAG.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
  
  copying MySQLdb/constants/REFRESH.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
  
  copying MySQLdb/constants/CLIENT.py -&gt; build/lib.macosx-10.9-intel-2.7/MySQLdb/constants
  
  running build_ext
  
  building '_mysql' extension
  
  creating build/temp.macosx-10.9-intel-2.7
  
  cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -pipe -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/mysql/include -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.9-intel-2.7/_mysql.o -Os -g -fno-strict-aliasing -arch x86_64
  
  **clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
  clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
  error: command 'cc' failed with exit status 1**
  
  ----------------------------------------
  Cleaning up...
  Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/21/zjvwzn891jnf4rnp526y13200000gn/T/pip_build_fedorius/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/21/zjvwzn891jnf4rnp526y13200000gn/T/pip-_yi6sy-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/21/zjvwzn891jnf4rnp526y13200000gn/T/pip_build_fedorius/mysql-python
  Storing debug log for failure in /var/folders/21/zjvwzn891jnf4rnp526y13200000gn/T/tmp5QBn55
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>As suggested, I've added</p>
  
  <p>export CFLAGS=-Qunused-arguments
  export CPPFLAGS=-Qunused-arguments</p>
  
  <p>But it changed the error to</p>
  
  <pre><code>error: /Library/Python/2.7/site-packages/_mysql.so: Permission denied
  </code></pre>
  
  <p>I just chmoded this directory to allow writing and it worked :)
  This is due to mixing macports, easy_install and pip... shame on me.</p>