I am running Mac OSX 10.13.3. I have just installed root and python using a package manager called Homebrew. I’m having some issues getting python and root to work together. Firstly, let me preface this with I am a newbie, so excuse me if the answer is obvious.
Homebrew put root in /usr/local/Cellar. I also have a “python3” in this directory. Running the python3 in this directory allows me to import root and everything runs smoothly.
However, if I’m not in this directory, python will not import root. I think I know why; I have discovered that homebrew installs python elsewhere on my computer in “usr/local/bin”.
Typing “python” into terminal the python in usr/local/bin, which cannot find root… unless I specify to run the python in usr/local/Cellar.
I think the easiest method to fix this would be to either move root, but where would I move it to?
I have made build directory called “builddir” in my home directory. Then I cd into “builddir”, and then I try to run cmake from the root source tree
cmake /Applications/root_v6.12.06
to which bash throws an error
CMake Error: The source directory “/Applications/root_v6.12.06” does not appear to contain CMakeLists.txt.
Clearly I’m not specifying the right path. After doing a search, I found that CMakeLists.txt lives in
/Applications/root_v6.12.06/tutorials
and also in
/Applications/root_v6.12.06/test
Which one do I need to specify? The online guide doesn’t say. I assume it is the /test one, but I want to be sure.
You unpacked a ready to use BINARY distribution for your system (make sure that your operating system version and the compiler exactly correspond to the version that you unpacked), and NOT the SOURCE code (which you would need to compile).