그냥 내가 최근 GCC를 증명하기 위해기본 gcc는 어떻게 선택합니까?
brew upgrade gcc
Error: gcc-4.8.2_1 already installed
내가 최근 GCC가 설치되어 있지만 어떤 이유로 내가 웹킷 - GTK2를 컴파일하려고이 오류가
configure: error: Compiler GCC >= 4.7 or Clang >= 3.3
is required for C compilation
내 기본 4.2.1하지만 연타입니다 5.1입니다!
gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix
2 개 질문 :
- 어떻게 내 기본 GCC를 설정합니까?
- Clang이 3.3보다 큰 경우 컴파일이 실패하는 이유는 무엇입니까?
"gcc"를 실행하여 자작 기계를 실행 중인지 확인하십시오. –
@Mark 그냥 다음과 같이 말합니다 :'/ usr/bin/gcc' ... – fyz
Homebrew가/usr/local/bin에 있다고 믿기 때문에 PATH가 잘못되었다고 생각합니다. –