第一步:建议应用商店安装xcode, 并终端安装
xcode-select --install
第二步: 开启终端代理
第三步:配置git和ssh 密钥
第四步: 安装homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
sudo xcodebuild -license accept
brew update
brew upgrade
安装firedrake:
PETSC_CONFIGURE_OPTIONS=--download-exodusii python3 firedrake-install --install thetis
安装petsc。 brew install openblas ,sh install.sh
python3 ./configure PETSC_DIR=$(pwd) PETSC_ARCH=default \
--download-netcdf --download-ml --with-zlib --download-scalapack --download-pnetcdf \
--download-hwloc-configure-arguments=--disable-opencl --LDFLAGS=-Wl,-rpath,/opt/homebrew/opt/openblas/lib -L/opt/homebrew/opt/openblas/lib -L/opt/homebrew/opt/gcc/lib/gcc/13 --download-bison --download-mpich \
--with-blaslapack-dir=/opt/homebrew/opt/openblas --CFLAGS=-I/opt/homebrew/opt/openblas/include -Wno-implicit-function-declaration \
--download-chaco --download-mpich-configure-arguments=--disable-opencl --download-pastix \
--download-hypre --download-ptscotch --with-debugging=0 \
--download-hdf5 --with-shared-libraries=1 --download-mumps --download-superlu_dist \
--download-hwloc --with-x=0 --download-metis \
--download-suitesparse --with-fortran-bindings=0 --with-c2html=0