Hello, I'm trying to a new install of ISSM on a MacBook Pro running Ventura 13.6, but installing petsc has failed using both install-3.17-mac-intel.sh and install-3.19-mac-intel.sh. I've attached the configure.log from the most recent attempt. Thanks for any help!
Petsc failed during installation process
Hi,
Could you please try the install-3.14-mac.sh
install script? It may be that if it's an older machine then the newer internal configuration for PETSc won't work.
Ok, just tried the older version, and the install did not complete. The final line of dialogue was "sed: 1: "/Users/issm/trunk-jpl/e ...": command i expects \ followed by text"
shivani
Okay, probably because you don't have gsed
. Can you edit the two lines in the installs script that start with sed
from, for example,
sed -i'' 's|#!/usr/bin/env python|#!/usr/bin/env python3|g' ${PETSC_DIR}/config/configure.py
to,
sed -i'' -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|g' ${PETSC_DIR}/config/configure.py
Thanks! That definitely helped, but I ran into a new issue during the compilation. The final output was "Cannot use fblaslapack without Fortran, make sure you do NOT have --with-fc=0" but I have gfortran installed- version 8.2.0
Mathieu suggested that installing home brew might have caused some issues. I attached a screen shot of the end of the new configure.log
shivani Could you attach the entire configure.log
or compil.log
(whichever one is in src/
)?
Here is a link to the file, sorry I'm not being allowed to upload it directly. Not sure why...
https://drive.google.com/file/d/1RBBDebkUNDukS6V8r4bBPqX0SQLJLHhi/view?usp=sharing
shivani What do you get from which gfortran
?
/usr/local/bin/gfortran
shivani Okay, so you might try the gfortran
binaries here: https://github.com/fxcoudert/gfortran-for-macOS/releases/download/12.1-monterey/gfortran-Intel-12.1-Monterey.dmg. Note that you will have to brew uninstall gfortran
(or brew uninstall gcc
, if you installed it this way) first, then start a new shell before attempting the install again.
Alright thanks! I will give it a try.