I can not seem to install root on macOS 10.12.2 at all. I attempted to install via homebrew with
brew install root6
I then added
pushd $(brew --prefix root6) >/dev/null; . libexec/thisroot.sh; popd >/dev/null
to my .zshrc file for configuration. I can successfully run the root command; however, I am primarily trying to use the root libraries (specifically TMVA).
I tried compiling a new c file with make.
The following, for example, failed:
so I instead tried
However, upon using
g++ -std=c++11 to compile said import, I get:
In file included from test.cpp:3:
In file included from /usr/local/Cellar/root6/6.08.02/include/root/TTree.h:30:
In file included from /usr/local/Cellar/root6/6.08.02/include/root/TBranch.h:28:
In file included from /usr/local/Cellar/root6/6.08.02/include/root/TNamed.h:29:
/usr/local/Cellar/root6/6.08.02/include/root/TString.h:41:10: error: 'RStringView.h' file not found with <angled> include; use "quotes" instead
I then tried pulling from the root git repository,
cd root, and then running make. This failed because I didn’t have something called lxml.
Note that I can also not import ROOT using python, as I get a no module named root error. Can someone please help me properly install this library from the beginning? I am unable to find any decent resources that work at all and need to use root for a tight deadline.