【问题标题】:brew install open-mpi failsbrew install open-mpi 失败
【发布时间】:2013-04-03 18:27:51
【问题描述】:

尝试安装openmpi,请阅读:

Could not determine if REAL*16 bit-matches C type

运行 brew doctor,它给了我:

Your system is raring to brew

全输出

% brew install open-mpi

==> Downloading http://www.open-mpi.org/software/ompi/v1.6/downloads/openmpi-1.6.
Already downloaded: /Library/Caches/Homebrew/open-mpi-1.6.4.tar.bz2
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> ./configure --prefix=/usr/local/Cellar/open-mpi/1.6.4 --enable-ipv6
checking alignment of Fortran REAL*16... 16
checking for C type matching bit representation of REAL*16... pending
checking if long double == REAL*16... ./configure: line 40736: 15744 Abort trap: 6 
$F77 $FFLAGS conftest_f.f conftest_c.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
Error!
configure: error: Could not determine if REAL*16 bit-matches C type

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting


brew doctor 
Your system is raring to brew

【问题讨论】:

  • 安装了哪些 C 和 Fortran 编译器?
  • 对我来说,这看起来像是在尝试使用 Fortran 编译器,然后抱怨它看不到结果是否与 C 兼容。也许尝试安装 GCC 作为 Homebrew 的编译器,然后再试一次?
  • 如果在同一应用程序中使用 Fortran 和 C 对象文件,则可能会出现此行为。但我也建议安装 gcc 和 gfortran 然后再试一次。
  • 等待您的回答,我尝试使用旧版本的 open-mpi,它可以正常工作。我已经在 Open-mpi 之前安装了 gcc 和 gfortran。

标签: homebrew openmpi ctype


【解决方案1】:

gmp 和 mpfr 瓶似乎存在问题,它们是 gfortran 的依赖项,因此是 open-mpi。试试brew rm gmp mpfr; brew install --build-from-source gmp mpfr open-mpi

参考:https://github.com/mxcl/homebrew/issues/19046

【讨论】:

    【解决方案2】:

    Homebrew 中最近的 gfortran 版本存在一些问题。尝试使用brew rm gfortran; brew install --fresh gfortran 重新安装它。如果错误仍然存​​在,请转到 Homebrew GitHub 页面并将其报告为错误:https://github.com/mxcl/homebrew/wiki/Troubleshooting。

    【讨论】:

      猜你喜欢
      • 2012-01-29
      • 1970-01-01
      • 1970-01-01
      • 2023-03-14
      • 2016-07-31
      • 1970-01-01
      • 1970-01-01
      • 2019-05-08
      • 1970-01-01
      相关资源
      最近更新 更多