我尝试在OSX 10.10.1上使用自制软件安装petsc
:
$brew install petsc
我在安装一个依赖项时遇到一个错误:
==> Installing petsc dependency: hypre
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://ftp.mcs.anl.gov/pub/petsc/externalpackages/hypre-2.9.0b.tar.gz
Already downloaded: /Library/Caches/Homebrew/hypre-2.9.0b.tar.gz
Error: SHA1 mismatch
Expected: aaf8354437be38aa2fbcc944ab64d464a5b39207
Actual: bd7ca57e45badf322b9c9cb970403c191287da72
Archive: /Library/Caches/Homebrew/hypre-2.9.0b.tar.gz
To retry an incomplete download, remove the file above.
所以我尝试用自制软件安装hypre
$brew install hypre
我没有收到任何错误 ==>摘要 /usr/local/Cellar/hypre/2.9.0b_1:48个文件,4.5M
最后,我修改了petsc
公式并注释掉了这一行
depends_on "hypre" => ["with-mpi", :recommended]
现在我可以安装petsc
,但它不起作用
configure:12901: WARNING: No PETSC_DIR set - trying to autodetect
configure:12919: Using PETSC_DIR=/usr/local
configure:12966: mpif90 -o conftest -ffast-math -frecord-marker=4 -DHAVE_NUMPY -I/usr/local/lib/python2.7/site-packages/numpy/core/include -fno-realloc-lhs -ffree-line-length-none -ffixed-line-length-none -O3 conftest.F90 -lparmetis -lmetis -llapack -lpthread -lm -lstdc++ -L/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -u _PyMac_Error /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Python -ldl -framework CoreFoundation -L/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2 -L/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2/../../.. -lgfortran -lquadmath -lm -L/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2 -L/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2/../../.. -lgfortran -lquadmath -lm >&5
conftest.F90:3.30:
use petsc
1
Fatal Error: Can't open module file 'petsc.mod' for reading at (1): No such file or directory