howtos:how_to_compile_modflow_6_on_slackware
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:how_to_compile_modflow_6_on_slackware [2024-08-20 07:47 am] – hcho | howtos:how_to_compile_modflow_6_on_slackware [2025-04-10 01:06 pm] (current) – hcho | ||
---|---|---|---|
Line 4: | Line 4: | ||
<code bash> | <code bash> | ||
- | su - | + | # switch to root |
- | sbopkg | + | su - |
- | </ | + | |
- | Download {{ :howtos:petsc.zip |}}. | + | # install openmpi and python3-numpy; |
+ | # build queuefiles, not packages, to automatically build any other dependencies | ||
+ | sbopkg -k -i " | ||
+ | |||
+ | # download and unzip a petsc build script | ||
+ | cd /tmp | ||
+ | wget https:// | ||
+ | unzip petsc.zip | ||
+ | cd petsc | ||
+ | |||
+ | # build petsc | ||
+ | ./ | ||
+ | |||
+ | # install petsc | ||
+ | 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 | ||
+ | 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 ' | ||
+ | . ~/.bash_profile | ||
+ | fi | ||
+ | </ |
howtos/how_to_compile_modflow_6_on_slackware.1724161620.txt.gz · Last modified: by hcho