论文课程网站 建设背景,网站建设的不足,wordpress多站点site id,网站如何做参考文献本文记录在Windows下使用MinGW-w64编译安装PETSc的流程。
0、环境
操作系统Windows 11MSYS2msys2-x86_64-20240507
1、开发环境
首先#xff0c;下载并安装MSYS2#xff0c;然后编辑PATH环境变量#xff0c;添加mingw64相关路径#xff1a;C:\msys64\mingw64\bin。
然…本文记录在Windows下使用MinGW-w64编译安装PETSc的流程。
0、环境
操作系统Windows 11MSYS2msys2-x86_64-20240507
1、开发环境
首先下载并安装MSYS2然后编辑PATH环境变量添加mingw64相关路径C:\msys64\mingw64\bin。
然后下载并安装 msmpisetup.exe msmpisdk.msi 。
2、依赖
打开MSYS2 MINGW64控制台运行以下命令安装依赖包
pacman -S autoconf automake-wrapper bison bsdcpio make git \
mingw-w64-x86_64-toolchain patch python flex \
pkg-config pkgfile tar unzip mingw-w64-x86_64-cmake \
mingw-w64-x86_64-msmpi mingw-w64-x86_64-openblas mingw-w64-x86_64-jq
3. 下载PETSc源码
git clone -b release https://gitlab.com/petsc/petsc.git petsc
cd ./petsc/
git checkout v3.21.4
4、编译配置
/usr/bin/python ./configure --prefix/opt/petsc --with-debugging0 --with-ccmpicc --with-cxxmpicxx --with-fcmpif90 --with-openmp1 --with-mpiexec/C/Program\ Files/Microsoft\ MPI/Bin/mpiexec
5、编译与安装
make PETSC_DIR/mingw64/src/petsc PETSC_ARCHarch-mswin-c-debug all
make PETSC_DIR/mingw64/src/petsc PETSC_ARCHarch-mswin-c-debug install 网络资料
PETSchttps://petsc.org/release/
MSYS2https://www.msys2.org/
PETSCc安装与常见问题https://blog.csdn.net/qq_36130886/article/details/121731836