brew install open-mpi fails

别来无恙 提交于 2021-02-10 23:14:54

问题


Trying to install openmpi, read that:

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

Ran brew doctor, and it's giving me:

Your system is raring to brew

full output

% 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

回答1:


There were some issues with recent gfortran builds in Homebrew. Try reinstalling it with brew rm gfortran; brew install --fresh gfortran. If the error persists, head over to the Homebrew GitHub page and report it as a bug: https://github.com/mxcl/homebrew/wiki/Troubleshooting.




回答2:


There seems to be an issue with the gmp and mpfr bottles, which are dependencies of gfortran and thus open-mpi. Try doing brew rm gmp mpfr; brew install --build-from-source gmp mpfr open-mpi

ref: https://github.com/mxcl/homebrew/issues/19046



来源:https://stackoverflow.com/questions/15950836/brew-install-open-mpi-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!