pip install ansible 실행시 다음의 에러가 발생했다.
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
나는 xcode 5.1.1 을 사용하고 있다.
확인해보니. xcode 5.1부터 unknown argument는 c 컴파일에서 에러가 나도록 바뀌었다.
Xcode 5.1 Release Notes
Compiler
The Apple LLVM compiler in Xcode 5.1 treats unrecognized command-line options as errors. This issue has been seen when building both Python native extensions and Ruby Gems, where some invalid compiler options are currently specified.
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)
문서에 있는 대로 하니 설치가 된다. (directory, file permission 이슈는 알아서 해결해야 할 듯..)
$ ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install ansible
'c or linux' 카테고리의 다른 글
스크랩 - 리눅스 부팅 순서 (0) | 2015.02.24 |
---|---|
ssh-copy-id : ssh pub 공개키 복사 쉽게 하는 명령어 (0) | 2014.05.27 |
인증서(certificate) curl을 이용해서 다운받기 (0) | 2014.03.11 |
[bashscript] Regex 적용하기 (regular expression) (0) | 2014.02.14 |
[bash] variables in sed (sed 안에서 변수 사용하기) (0) | 2014.02.14 |