Dear Enric
Thanks for replying.
Here is for instance the list of directories I have in /opt/root:
root-6.08.06 root-6.08.06_build root-6.08.06_install root_v6.08.06.source.tar
And the last commands I did are:
sudo cmake -DCMAKE_INSTALL_PREFIX=/opt/root/root-6.08.06_install/ /opt/root/root-6.08.06
sudo make
In root-6.08.06_build directory.
After that following your link in your message I did this:
source ./bin/thisroot.sh
in root-6.08.06_build directory, and when I run root it works.
I do also this:
cmake --build . --target install
still in the building directory.
But when I closed the terminal and open another one I got still “command root not found” when I run root.
Cheers
whenever I open a new terminal to be able to run root. I thought putting this line in the .bashrc file would resolve that but it’s not the case.
Could someone tell me please how to resolve this.
Cheers
Dear Enric,
if I add “source /opt/root/root-6.08.06_build/bin/thisroot.sh” on my .bashrc file, I can still see it if I do vi ~/.bashrc so I deduced that’s kept.
Cheers
What I tried to suggest is, what happens if you export a environment variable in your .bashrc, save the file and then open a new terminal? Do you see the variable? If yes, the same thing should happen when you source thisroot.sh from your .bashrc.
If you still have the issue, please paste here your .bashrc.
is the .bashrc actually sourced properly when you open a new terminal?
I remember it is not done automatically on Mac, one needs to add the line “source ~./bashrc” specifically in the terminal settings.
Dear all,
thanks for replying.
I am not sure to understand how to know that the .bashrc is sourced properly so I prefer to put here what I got if I open a new terminal, this is what I got:
Last login: Tue Apr 25 12:23:35 on ttys000
boyemacpro:~ dialloboye$
And if I do vi ~/.bashrc, this is what I can see inside the bashrc file:
Dear ksmith,
I moved the source command line to this profile file .
But I still need to do: source /opt/root/root-6.08.06_install/bin/thisroot.sh
before running root if I open a new terminal
Cheers