All HEP software will installed under /usr/local/. Therefore please make sure you have Read&Write permission to the directory, by checking info of the folder.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
This will create homebrew in /usr/local/. After this installation, install
brew install pcre # Regular Expressions library
brew install fftw # Fast Fourier Transform
brew install openssl # openSSL security cyber-communication library
brew install cmake # Cross-platform make
Openssl is not nessary and has already been included in the
MacOS EL Captain. However, when installing root,
libssl.1.0.0.dylib (a higher version than system inbuilt) is required by root 6. Therefore I have to copy the usr/local/Cellar/openssl/lib/libssl.1.0.0.dylib to $ROOTSYS/lib
After download hepMC, a pythia 8 outputing format writer.
/configure --prefix=/usr/local/hepmc --with-momentum=GEV --with-length=MM
make
make install
anaconda 2
This install anaconda python. Please do anaconda 2, because rootpy so far only support python 2.
root
$ export INSTALL_DIR=/usr/local/root
$ mkdir $INSTALL_DIR
$ cd $INSTALL_DIR
$ cmake ~/Desktop/root -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -Droofit=ON -Dcocoa=ON -Dpython=ON
$ make -j 4
$ make install