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/

 

posted on 2014-04-04 17:13  Arts&Crafts  阅读(961)  评论(0编辑  收藏  举报

导航