gpt4 book ai didi

gcc - 在 OS X 10.10 上brew install gcc49(无法找到可用的 ISL)

转载 作者:行者123 更新时间:2023-12-02 03:26:29 30 4
gpt4 key购买 nike

当我尝试安装 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位于哪里。

最佳答案

安装GCC 4.9的正确方法是使用

$ brew install homebrew/versions/gcc49

这样 Homebrew 将正确解决缺少的依赖项并为您安装它们。您可以使用

找到此版本的 gcc(或任何其他版本)
$ 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

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

$ brew install isl011

我们可以看到这是gcc49的依赖

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

关于gcc - 在 OS X 10.10 上brew install gcc49(无法找到可用的 ISL),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32771728/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com