今天在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/

 

相关文章:

  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-07-04
  • 2022-02-08
  • 2021-11-12
猜你喜欢
  • 2021-09-19
  • 2021-12-02
  • 2021-05-15
  • 2021-09-28
  • 2021-10-24
  • 2021-05-19
  • 2021-07-19
相关资源
相似解决方案