Local Machine Guide¶
These steps should be performed before installing PROTEUS on your computer. They do not apply when running PROTEUS on a server or HPC cluster. For instructions on configuring PROTEUS on a remote machine, see the cluster guide pages.
What this guide covers
System packages, a Python package manager (conda), and Homebrew (macOS). Julia and PROTEUS itself are covered in the main installation guide, which you should follow after completing these steps.
macOS¶
-
Open the terminal and install the Xcode developer tools:
xcode-select --install -
Install Homebrew if you do not have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install the required system libraries:
brew install netcdf netcdf-fortran wget gcc open-mpi cmakeApple Silicon (M1/M2/M3/Ultra)
The
gccandopen-mpipackages are required for compiling PETSc on Apple Silicon Macs. If you skip these, you may encounter compilation errors during the PETSc installation step. See the Troubleshooting page for details. -
Install miniforge (recommended for Apple Silicon):
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" bash Miniforge3-$(uname)-$(uname -m).shFollow the prompts, then restart your terminal or run
source ~/.zshrc. -
macOS Catalina (10.15) and later uses
zshas the default shell. Replace.bashrcwith.zshrcthroughout the installation instructions if you are using the default shell.
Debian / Ubuntu Linux¶
-
Install the required system libraries:
sudo apt install libnetcdff-dev gfortran build-essential cmake unzip curl wget git -
Install miniconda:
mkdir -p ~/miniconda3 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh bash ~/miniconda3/miniconda.sh rm ~/miniconda3/miniconda.shChoose an install folder where you have plenty of disk space. Follow the prompts, then restart your terminal or run
source ~/.bashrc.
Fedora / RedHat Linux¶
-
Install the required system libraries:
sudo dnf install gcc gcc-gfortran gcc-c++ netcdf netcdf-fortran netcdf-fortran-devel \ lapack lapack-devel lapack-static cmake unzip curl wget git -
Install miniconda:
mkdir -p ~/miniconda3 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh bash ~/miniconda3/miniconda.sh rm ~/miniconda3/miniconda.sh
Microsoft Windows¶
PROTEUS is not natively supported on Windows. To run PROTEUS on a Windows machine, use WSL2 (Windows Subsystem for Linux) and follow the Debian / Ubuntu Linux instructions above.
wsl --install -d Ubuntu
After installing WSL2 and launching an Ubuntu terminal, proceed with the main installation guide as on Linux.
For remote development on a cluster instead, see the VS Code Instructions for Kapteyn Cluster.