REST in MacOs
Here you will find a quick recipe for a minimal REST build in MacOs.
-
Make sure your default shell is set to bash, use the instructions “From system preferences” from the following site.
-
Install XCode found at the AppStore.
-
Install
brew
command tool that can be installed following these instructions. -
Install
cmake
command tool usingbrew install cmake
. -
Clone REST repository using the command:
git clone https://github.com/rest-for-physics/framework rest-framework
. For additional details, downloading a particular release, or pulling REST-for-Physics libraries and packages, check the download documentation page. -
Install ROOT executing
brew install root
.
Alternativelly. Go inside the rest-framework installation scripts directory:
cd rest-framework/scripts/installation/
and execute./installROOT.sh
. Then, you will need to source the compiled ROOT:source $HOME/apps/root-6.24.02/install/bin/thisroot.sh
.
-
Now go to the rest-framework directory executing
cd rest-framework
, create a directorymkdir build
and execute:cmake -DCMAKE_INSTALL_PREFIX=../install ..
-
Execute
make -j install
. -
In order to use that particular REST compilation you need to load it executing:
source ../install/thisREST.sh
.
For additional details enabling REST libraries and packages check the common instructions found at the installation pages.