Mac os下安装pycurl

  今天在Mac OS 10.9.2下安装pycurl时候失败,出现以下问题

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 将无法识别的选项当做是错误。修正的方法是:

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/

上一篇:浅谈IAT加密原理及过程


下一篇:黄聪:使用WORDPRESS自带AJAX方法