CLAWRIM Wiki

The Computational Lab for Advanced Water Resources Informatics and Modeling

User Tools

Site Tools


howtos:how_to_compile_modflow_6_on_slackware

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:how_to_compile_modflow_6_on_slackware [2024-08-20 08:44 am] hchohowtos:how_to_compile_modflow_6_on_slackware [2026-04-09 12:34 am] (current) hcho
Line 7: Line 7:
 su - su -
  
-# install openmpi and python3-numpy; petsc requires python3-numpy and blas;+# install openmpi and python3-numpy; petsc requires python3-numpy and OpenBLAS;
 # build queuefiles, not packages, to automatically build any other dependencies # build queuefiles, not packages, to automatically build any other dependencies
-sbopkg -k -i "openmpi python3-numpy blas lapack"+sbopkg -k -i "openmpi python3-numpy OpenBLAS"
  
 # download and unzip a petsc build script # download and unzip a petsc build script
Line 29: Line 29:
  
 # clone github repositories # clone github repositories
-mkdir -p ~/usr/local/src +mkdir -p ~/src 
-cd ~/usr/local/src+cd ~/src
 git clone https://github.com/MODFLOW-USGS/modflow6.git git clone https://github.com/MODFLOW-USGS/modflow6.git
 git clone https://github.com/fortran-lang/test-drive.git git clone https://github.com/fortran-lang/test-drive.git
Line 38: Line 38:
 meson setup builddir --prefix=$PWD --libdir=lib meson setup builddir --prefix=$PWD --libdir=lib
 meson install -C builddir meson install -C builddir
-mkdir -p ~/usr/local/share/pkgconfig +mkdir -p ~/local/share/pkgconfig 
-cp -a builddir/meson-private/test-drive.pc ~/usr/local/share/pkgconfig +cp -a builddir/meson-private/test-drive.pc ~/local/share/pkgconfig 
-if ! echo $PKG_CONFIG_PATH | grep -q $HOME/usr/local/share/pkgconfig; then +if ! echo $PKG_CONFIG_PATH | grep -q $HOME/local/share/pkgconfig; then 
-  echo 'export PKG_CONFIG_PATH="$HOME/usr/local/share/pkgconfig:$PKG_CONFIG_PATH"' > ~/.bash_profile+  echo 'export PKG_CONFIG_PATH="$HOME/local/share/pkgconfig:$PKG_CONFIG_PATH"' > ~/.bash_profile
   . ~/.bash_profile   . ~/.bash_profile
 fi fi
 +cd ..
  
 # build modflow6 # build modflow6
Line 52: Line 53:
  
 # install modflow6 # install modflow6
-mkdir ~/usr/local/bin +mkdir ~/local/bin 
-cp -a bin/mf6 ~/usr/local/bin +cp -a bin/mf6 ~/local/bin 
-if ! echo $PATH | grep -q $HOME/usr/local/bin; then +if ! echo $PATH | grep -q $HOME/local/bin; then 
-  echo 'export PATH="$HOME/usr/local/bin:$PATH"' > ~/.bash_profile+  echo 'export PATH="$HOME/local/bin:$PATH"' > ~/.bash_profile
   . ~/.bash_profile   . ~/.bash_profile
 fi fi
 </code> </code>
howtos/how_to_compile_modflow_6_on_slackware.1724165067.txt.gz · Last modified: by hcho

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki