1

尝试安装openmpi,请阅读:

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

Ran 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
4

2 回答 2

2

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

于 2013-04-25T05:50:30.773 回答
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

于 2013-09-30T05:14:38.917 回答