Install on MacOS

Deployment of packages for MacOS is made increasingly difficult by signing and notarizing requirements from Apple Inc. We have no capacity to go through these processes, nor are we willing to pay for such highway robbery.

Therefore users need to compile from source on their target machines.

As a prerequisite, Python must be installed, see Python on Mac.

Then compilation can be done manually, giving the user full control: see build from source.

Or it can be done automatically, steered by a brew recipee:

Install BornAgain GUI application

To install BornAgain on MacOS, use the official MLZ Homebrew Tap hosted at https://jugit.fz-juelich.de/mlz/homebrew/.

First, add the tap to the local Homebrew taps via

$ brew tap mlz/homebrew https://jugit.fz-juelich.de/mlz/homebrew/

After that, Homebrew will be able to work with formulae in mlz/homebrew as if they were in homebrew-core canonical repository.

To install BornAgain v24.0 from the tap, use

$ brew install mlz/homebrew/bornagain@24.0

To install another version, say v24, use

$ brew install mlz/homebrew/bornagain@24

After a successfull installation, in order to obtain detailed information about the BornAgain installation, use

$ bornagain_info

This will display the paths to the BornAgain libraries, the examples, the Python wheel and the build log.

Uninstalling BornAgain

To purge BornAgain from the local Homebrew repository, use

$ brew rm bornagain@24.0 && brew cleanup

To remove the MLZ Homebrew Tap, use

$ brew untap mlz/homebrew