No, cmake …/root is correct, assuming that this is the path of the source code and your build directory is /opt/root_build.
cd /opt/
git clone http://root.cern.ch/git/root.git
--> Clones the source code to /opt/root
mkdir root_build
cd root_build
--> You enter the build directory /opt/root_build
cmake ../root
--> You point at where the source code is. Alternatively:
cmake /opt/root
Note that it is recommended that source code and build directory are separated. Thus, you do not call mkdir root_build inside /opt/root/ but in /opt/
Hi everybody, I apologize for my late reply.
I absolutely needed Root from the beginning of this week, so I used MacPorts and everything went fine.
The instructions given by ferhue are correct, my problem was that I previously installed an old Root version (it was March 2016) and I probably deleted something important for the compiler while erasing this old version.
Thanks a lot for your help and I hope this discussion will be helpful.
I think this thread has been marked as solved but I would really appreciate if some can help me in fixing some problems with installing ROOT6 on Max OS Sierra 10.12. I have the following steps:
By default I am using python3.4, However if one looks at the error it complains or looks for something in python2.7. I would really appreciate if anyone can help me in this regard.