Install Homebrew according to its installation instructions.
- Check your system for any brewing problems
- Tap into the science repository
brew tap homebrew/science
- Install additional packages
brew install $thePackage
- Installation of PETSc correctly resolves all but the two below-mentioned package dependencies automatically.
brew install --build-from-source $thePackage