I have installed root from source on my mac m1. Now when I try to source it via
I get no output in my terminal so the script seems to run through.
But wenn I try to open root in the terminal afterwards it says command not found. What am I missing?
Hi @Jailbone ,
env print right after you run
source thisroot.sh, in that same terminal?
Also note that on Mac you can install ROOT also via conda, homebrew or macports, and it should just work, see https://root.cern/install .
Hi @eguiraud, I get:
I know it works without any problems when using homebrew. But I want to tell root to use the
python version I installed via
pyenv. I think this is not possible with homebrew so I decided to go with building it from source where I can specify the python executable.
source thisroot.sh seems to have done its job, e.g. you have
/Users/me/root6/install/bin in your
root executable in that directory?
Ok, you can use
root.exe exactly the same as you use
root, it’s just a bit weird that you don’t have
root. @bellenot @Axel any idea what might cause this?
No idea, I’ll have to investigate…
Ok yes I can use
root.exe. But when I try to import ROOT when using python it says module not found.
To give some more information: I started by building via:
sudo cmake -DCMAKE_INSTALL_PREFIX=../install -DPython3_EXECUTABLE=/Users/me/.pyenv/versions/3.9.6/bin/python ../root_src
Regarding the python issue, during the building I get:
-- Looking for Python
-- Found Python3: /Users/me/.pyenv/versions/3.9.6/bin/python (found version "3.9.6") found components: Interpreter Development NumPy Development.Module Development.Embed
-- PyROOT will be built for versions 3.9.6 (Main) and 2.7.16
-- Found PythonInterp: /Users/me/.pyenv/versions/3.9.6/bin/python (found version "3.9.6")
I guess that this is looking good. So I am wondering why I cannot import it when using python.
But when I try to install I get the following error:
**Creating directories for 'XROOTD'**
cmake -E touch: failed to update "/Users/me/root6.2/build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-mkdir".
make: *** [XROOTD-prefix/src/XROOTD-stamp/XROOTD-mkdir] Error 1
make: *** [CMakeFiles/XROOTD.dir/all] Error 2
make: *** [all] Error 2
I do not know what this means. All I can add is what I get during the building process:
-- Looking for XROOTD
-- XROOTD not found, enabling 'builtin_xrootd' option
-- Downloading and building XROOTD version
I then did some searching and found as a suggestion the build options:
With only the first one it still did not work. I added the second suggestion and it installed. And now I am where I am at.
Ok I guess this behavior has something to do with the chosen build options.
I have reinstalled root via:
cmake -DCMAKE_INSTALL_PREFIX=../install -DPython3_EXECUTABLE=/Users/me/.pyenv/versions/3.9.6/bin/python -Dxrootd=OFF -Dbuiltin_xrootd=OFF ../root_src
and now everything is working as expected!
I’m glad you managed to work around it.
That’s really weird though, if you ever need xrootd let us know and we can take another look
root to be built, only
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.