The install relies on brew. please see https://brew.sh, also we will be using default apps by default using apple clang compiler. Alternatively we can use gnu, but this requires additional steps as we will need to build boost ourselves.
first install brew. Paste that in a macOS Terminal or Linux shell prompt.
Code Block language bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
next install ecflow dependencies
Code Block language bash brew install boost brew install boost-python3 brew install openssl brew install qt
Download and place in $HOME/git
Code Block language bash git clone ssh://git@git.ecmwf.int/ecflow/ecflow.git git clone ssh://git@git.ecmwf.int/ecsdk/ecbuild.git
build ecflow, and will install to ${HOME}/install/ecflow/${version}
Code Block language bash cd $HOME/git/ecflow git checkout develop sh -x build_scripts/mac.sh make -j8 install # if you make a mistake use: sh -x build_scripts/mac.sh clean make -j8 install # clean will blast build directory
Add the following to your .bash_profile
Code Block language bash ecflow_version=$(awk '/^project/ && /ecflow/ && /VERSION/ {for (I=1;I<=NF;I++) if ($I == "VERSION") {print $(I+1)};}' $HOME/git/ecflow/CMakeLists.txt) python_dot_version=$(python3 -c 'import sys;print(sys.version_info[0],".",sys.version_info[1],sep="")') export PATH="$PATH:$HOME/install/ecflow/$ecflow_version/bin" export PYTHONPATH="$HOME/install/ecflow/$ecflow_version/lib/python${python_dot_version}/site-packages"