Mac os下安裝pycurl

  今天在Mac OS 10.9.2下安裝pycurl時候失敗,出現如下問題git

Using curl-config (libcurl 7.30.0)
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: Setup script exited with error: command 'cc' failed with exit status 1

  這事因爲Xcode 5.1 將沒法識別的選項當作是錯誤。修正的方法是:github

sudo env ARCHFLAGS='-Wno-error=unused-command-line-argument-hard-error-in-future' easy_install pycurl

  參看 http://kaspermunck.github.io/2014/03/fixing-clang-error/curl

相關文章
相關標籤/搜索