我正在尝试使用Homebrew安装
gcc49
(GCC 4.9)。具体而言,我正在使用以下命令进行安装:brew install homebrew/versions/gcc49
然而,通常情况下我会遇到一个错误,它说我缺少gmp4
。这就是问题所在。
如果我运行brew install homebrew/versions/gmp4
,我会再次收到提示说gmp4
是缺失的。该库无法安装。同样的事情也发生在其他几个必需的库上。现在,我并没有修复这种奇怪的行为,而是试图运行
brew install homebrew/versions/gcc48 --with homebrew/versions/gmp4 --with homebrew/versions/libmpc08 --with homebrew/versions/mpfr2 --with homebrew/versions/cloog018 --with homebrew/versions/isl011
... 这导致了
==> Installing dependencies for gcc48: gmp4, mpfr2, libmpc08, isl011, cloog018
==> Installing gcc48 dependency: gmp4
==> Downloading ftp://ftp.gmplib.org/pub/gmp/gmp-5.1.3.tar.bz2
######################################################################## 100.0%
==> Patching
patching file gmp-h.in
==> ./configure --prefix=/usr/local/Cellar/gmp/5.1.3 --enable-cxx
==> make
==> make check
==> make install
Error: Empty installation
最后一行真的让我感到困惑。我从没有见过任何安装软件返回这个信息 - 到底发生了什么,我该如何解决?
有趣的是,当我在我的桌面电脑上尝试此操作时(它与Homebrew版本相同),只需运行brew install gcc49
,甚至无需通过homebrew/versions
就可以轻松安装GCC 4.9。
brew tap homebrew/versions
,然后再执行brew install gcc49
,会发生什么? - Pouya:)
- Pouya