Actually I found also this link: http://histfitter.web.cern.ch/histfitter/Software/Install/index.html and I tried in my local mac by following the commands after downloading the HisFitter folder:
tar -zxvf HistFitter-2.0.tar.gz (which generate the following directory: **HistFitter_branch46**)
cd HistFitter_branch46/
source /opt/HistFitter_branch46/setup.sh
cd src/
make
But I got so many errors after I run make (some of them):
./RooHist.h:62:26: error: unknown type name 'ostream'; did you mean 'std::ostream'?
virtual void printName(ostream& os) const ;
^~~~~~~
std::ostream
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:147:38: note: 'std::ostream' declared here
typedef basic_ostream<char> ostream;
^
In file included from RooHist.cxx:24:
./RooHist.h:63:27: error: unknown type name 'ostream'; did you mean 'std::ostream'?
virtual void printTitle(ostream& os) const ;
^~~~~~~
std::ostream
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:147:38: note: 'std::ostream' declared here
typedef basic_ostream<char> ostream;
^
In file included from RooHist.cxx:24:
./RooHist.h:64:31: error: unknown type name 'ostream'; did you mean 'std::ostream'?
virtual void printClassName(ostream& os) const ;
^~~~~~~
std::ostream
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:147:38: note: 'std::ostream' declared here
typedef basic_ostream<char> ostream;
^
In file included from RooHist.cxx:24:
./RooHist.h:65:31: error: unknown type name 'ostream'; did you mean 'std::ostream'?
virtual void printMultiline(ostream& os, Int_t content, Bool_t verbose=kFALSE, TString indent= "") const;
^~~~~~~
std::ostream
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:147:38: note: 'std::ostream' declared here
typedef basic_ostream<char> ostream;
^
RooHist.cxx:150:94: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?
coutE(InputArguments) << "RooHist::RooHist: histograms have different number of bins" << endl;
^~~~
std::endl
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ostream:999:1: note: 'std::endl' declared here
endl(basic_ostream<_CharT, _Traits>& __os)
But I don’t have setup.sh file in my /full/path/to/the/root/bin/, I uploaded the screenshot of the directory where I installed my root, I go through all the directories step by step.
ok I did this when I am in /opt/HistFitter_branch46 directory:
source /opt/root/root-6.14.06_install/bin/thisroot.sh
source ./setup.sh
cd src/
make
And I got the same errors but as you said maybe it’s because I am not using the right root version.
How to move to an old root version in local computer ? I used use this commands in lxplus: