howtos:how_to_compile_modflow_6_on_slackware
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| howtos:how_to_compile_modflow_6_on_slackware [2024-08-20 07:31 am] – created hcho | howtos:how_to_compile_modflow_6_on_slackware [2025-04-10 01:06 pm] (current) – hcho | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to compile MODFLOW 6 on Slackware ====== | ====== How to compile MODFLOW 6 on Slackware ====== | ||
| + | |||
| + | [[https:// | ||
| <code bash> | <code bash> | ||
| - | sbopkg -i openmpi # install | + | # switch to root |
| + | su - | ||
| + | |||
| + | # install openmpi and python3-numpy; | ||
| + | # build queuefiles, not packages, to automatically build any other dependencies | ||
| + | sbopkg | ||
| + | |||
| + | # download and unzip a petsc build script | ||
| + | cd /tmp | ||
| + | wget https:// | ||
| + | unzip petsc.zip | ||
| + | cd petsc | ||
| + | |||
| + | # build petsc | ||
| + | ./ | ||
| + | |||
| + | # install | ||
| + | cd .. | ||
| + | rm -rf petsc | ||
| + | installpkg petsc-*.tgz | ||
| + | |||
| + | # switch to non-root | ||
| + | exit | ||
| + | |||
| + | # clone github repositories | ||
| + | mkdir -p ~/ | ||
| + | cd ~/ | ||
| + | git clone https:// | ||
| + | git clone https:// | ||
| + | |||
| + | # build test-drive | ||
| + | cd test-drive | ||
| + | meson setup builddir --prefix=$PWD --libdir=lib | ||
| + | meson install -C builddir | ||
| + | mkdir -p ~/ | ||
| + | cp -a builddir/ | ||
| + | if ! echo $PKG_CONFIG_PATH | grep -q $HOME/ | ||
| + | echo ' | ||
| + | . ~/ | ||
| + | fi | ||
| + | cd .. | ||
| + | |||
| + | # build modflow6 | ||
| + | cd modflow6 | ||
| + | meson setup builddir -Ddebug=false -Dparallel=true --prefix=$(pwd) --libdir=bin | ||
| + | meson install -C builddir | ||
| + | meson test --verbose --no-rebuild -C builddir | ||
| + | |||
| + | # install modflow6 | ||
| + | mkdir ~/ | ||
| + | cp -a bin/mf6 ~/ | ||
| + | if ! echo $PATH | grep -q $HOME/ | ||
| + | echo ' | ||
| + | . ~/ | ||
| + | fi | ||
| </ | </ | ||
howtos/how_to_compile_modflow_6_on_slackware.1724160676.txt.gz · Last modified: by hcho
