brew在OS X 10.10上安装gcc49(找不到可用的ISL)

brew在OS X 10.10上安装gcc49(找不到可用的ISL),gcc,homebrew,gcc4.9,isl,Gcc,Homebrew,Gcc4.9,Isl,当我尝试安装gcc49时,收到一个错误 $ brew install https://raw.githubusercontent.com/Homebrew/homebrew-versions/master/gcc49.rb ######################################################################## 100.0% ==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.9.

当我尝试安装
gcc49
时,收到一个错误

 $  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
在哪里。

安装GCC4.9的正确方法是使用

$ brew install homebrew/versions/gcc49
这样,Homebrew将正确解决缺少的依赖项,并为您安装它们。您可以使用找到此版本的
gcc
(或任何其他版本)

但是,缺少的依赖项不是
isl
,而是
isl011
。您可以使用安装

$ brew install isl011
我们可以看到,这是一个
gcc49

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

问题是由更新的Xcode引起的。需要运行:“$xcode select--install”

问题是由更新的xcode引起的。“$xcode select--install”我最近更新了xcode,不必运行
xcode select--install
。看起来您卸载了命令行开发人员工具,或者从捆绑了这些工具的XCode版本升级到了没有捆绑的XCode版本。然而,安装GCC4.9的正确方法仍然是我的答案。你是对的!!!我的mac电脑几周前坏了,被送到苹果商店修理。他们换了我的逻辑板,我完全忘了
$ brew install isl011
$ brew info gcc49
==> Dependencies
Required: gmp4 ✔, libmpc08 ✔, mpfr2 ✔, cloog018 ✔, isl011 ✔