您的位置:首页 > 编程语言 > Ruby

pip 在MAC上安装库错误clang: error: unknown argument

2014-06-10 15:20 507 查看
pip安装程序错误

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: command 'cc' failed with exit status 1

Projects using invalid compiler options will need to be changed to remove those options. 

To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warning: 

-Wno-error=unused-command-line-argument-hard-error-in-future

To workaround this issue, set the ARCHFLAGS environment variable to downgrade the error to a warning. 

For example, you can install a Python native extension with: 

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future easy_install ExtensionName
Similarly, you can install a Ruby Gem with: 

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install GemName (16214764)


Note: This option will not be supported in the future.

参照:
https://developer.apple.com/library/ios/releasenotes/developertools/rn-xcode/xc5_release_notes/xc5_release_notes.html http://www.bkjia.com/Pythonjc/779173.html http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa http://stackoverflow.com/questions/22413050/cant-install-python-mysql-library-on-mac-mavericks http://stackoverflow.com/questions/22079173/installing-py-ldap-on-mac-os-x-mavericks-missing-sasl-h http://stackoverflow.com/questions/22413050/cant-install-python-mysql-library-on-mac-mavericks
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mac xcode gem ruby python
相关文章推荐