當我嘗試安裝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
位於哪裏。
該問題是由更新的Xcode引起的。 「$ xcode-select --install」 –
我最近更新了XCode,不必運行'xcode-select --install'。看起來你已經卸載了命令行開發者工具,或者從一個XCode版本升級了它們,而這個XCode版本捆綁了一個沒有的版本。但是,正確的方法來安裝GCC 4.9仍然是我的答案。 – IKavanagh
你是對的!我的Mac在幾個星期前壞掉了,被送到蘋果商店進行修理。他們改變了我的邏輯板,我完全忘記了這一點 –