“‘cc’ failed with exit status 1” error when install python library

Run these two lines in your shell before you build:

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

Those exports tell the compiler to ignore unused arguments rather than complaining about them.


The reason seems to be that Python is compiling modules using the options that it was built with, except one of those options no longer works in mavericks:

the clang 3.4 Apple is shipping defaults to erroring on unknown flags, but CPython builds modules using the same set of flags it was compiled with originally.

(from: https://stackoverflow.com/a/22315129/65295)

Lots of people are running into this:

  • Ansible Installation -clang: error: unknown argument: ‘-mno-fused-madd’
  • Can’t install python mysql library on Mac Mavericks
  • clang error: unknown argument: ‘-mno-fused-madd’ (python package installation failure)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)