【发布时间】: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。