Skip to content

Help for Mac users

m-giraud edited this page Apr 23, 2026 · 1 revision

CPlantBox can be installed on Mac using the instructions written in the README page.
If your clang is not within the ascepted range (>=15, <=18), you can install another version with homebrew: brew install llvm@18 Then, if you want to install dumux-rosi, go to the file "dumux-rosi/cmake.opts" and replace these lines:

SPECIFIC_COMPILER=""
# if you want to specify a specific compiler, do it by setting (comment the above line)
#SPECIFIC_COMPILER="
# -DCMAKE_CXX_COMPILER=/usr/bin/clang++
#"
# -DCMAKE_C_COMPILER=/usr/bin/gcc-8

with

SPECIFIC_COMPILER="
  -DCMAKE_C_COMPILER=/opt/homebrew/opt/llvm@18/bin/clang \
  -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm@18/bin/clang++
"

If you have tried to compile dumux-rosi once before, run

./dune-common/bin/dunecontrol bexec rm -r CMakeFiles CMakeCache.txt

You can then re-run the Python file "installDumuxRosi_Mac.py"

Clone this wiki locally