It might be that you are a talented groundwater modeler and very proficient with Python and Flopy that you start to realize that you don´t need to work in Windows anymore and want to migrate your favorite groundwater modeling code to other nice, soft, and warm Linux-based operating systems. Or, it might be the case that you want to configure and run MODFLOW models as a part of a webapp or in a web server. For the reasons mentioned before and other reasons that modern world could bring to us, a compiled version of MODFLOW in Linux is needed.
Solutions for this task are available with the use of the Pymake library from the USGS (https://github.com/modflowpy/pymake), however, we wanted to save your time and distress from installing libraries, testing and figuring out how to run MODFLOW in Linux. This post has a unofficial and highly enthusiastic repository of MODFLOW executables for Linux on 64 bits processors with some indications for the file installation. Executables have been tested on Ubuntu.
In order to install you should run these lines:
sudo apt-get install gcc-7 g++-7
sudo apt-get install gfortran-7
Then make the files executable in linux with this comand:
chmod +x modflowexecutable.file
Each modflow executable can now be launched by calling it as: