2015-09-24 93 views
4

當我嘗試安裝gcc49,我收到一條錯誤BREW在OS X上安裝gcc49 10.10(無法找到一個可用ISL)

$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-versions/master/gcc49.rb 
######################################################################## 100.0% 
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2 
Already downloaded: /Library/Caches/Homebrew/gcc49-4.9.3.tar.bz2 
==> ../configure --build=x86_64-apple-darwin14.5.0 --prefix=/usr/local/Cellar/gcc49/4.9.3 --libdir=/usr/local/Cellar/gcc49/4.9.3/lib/gcc/4.9 --enable-languages=c,c++,objc,obj-c++ --program-suffix=-4.9 --w 
checking for version 0.10 of ISL... no 
checking for version 0.11 of ISL... no 
checking for version 0.12 of ISL... no 
checking for version 0.14 of ISL... no 
configure: error: Unable to find a usable ISL. See config.log for details. 
Warning: It appears you have MacPorts or Fink installed. 
Software installed with other package managers causes known problems for 
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again. 

READ THIS: https://git.io/brew-troubleshooting 

不過,我有ISL:

$ brew info isl 
isl: stable 0.14.1 (bottled), HEAD 
Integer Set Library for the polyhedral model 
http://freecode.com/projects/isl 
/usr/local/Cellar/isl/0.14.1 (68 files, 3.2M) * 
    Poured from bottle 
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/isl.rb 
==> Dependencies 
Build: xz ✔ 
Required: gmp ✔ 

我不知道config.log位於哪裏。

回答

3

的依賴問題是由Xcode更新造成的。需要運行:「$ xcode-select --install」

3

安裝GCC 4.9,正確的方法是使用

$ brew install homebrew/versions/gcc49 

這樣的自制程序會正確解析缺少的依賴關係,並安裝它們。你可以找到這個使用

$ brew search gcc49 
homebrew/versions/gcc49 

$ brew search gcc 
gcc        homebrew/versions/gcc47 
homebrew/dupes/apple-gcc42  homebrew/versions/gcc48 
homebrew/versions/gcc43   homebrew/versions/gcc49 
homebrew/versions/gcc44   homebrew/versions/gcc5 
homebrew/versions/gcc45   homebrew/versions/llvm-gcc28 
homebrew/versions/gcc46 

但是(或任何其他)版本的gcc,你缺少的依賴是不是islisl011。你可以用

$ brew install isl011 

安裝它我們可以看到,這是gcc49

$ brew info gcc49 
==> Dependencies 
Required: gmp4 ✔, libmpc08 ✔, mpfr2 ✔, cloog018 ✔, isl011 ✔ 
+1

該問題是由更新的Xcode引起的。 「$ xcode-select --install」 –

+1

我最近更新了XCode,不必運行'xcode-select --install'。看起來你已經卸載了命令行開發者工具,或者從一個XCode版本升級了它們,而這個XCode版本捆綁了一個沒有的版本。但是,正確的方法來安裝GCC 4.9仍然是我的答案。 – IKavanagh

+1

你是對的!我的Mac在幾個星期前壞掉了,被送到蘋果商店進行修理。他們改變了我的邏輯板,我完全忘記了這一點 –