New version, old setup

Hi,
I installed a new version of ROOT a few days ago, it run and everything was fine.
But today I realise that when I open the terminal I get this message:

-bash: /Applications/root_v6.06.00/bin/thisroot.sh: No such file or directory

“root_v6.06.00” is the directory of the old version that I deleted.
If I do the setup for the new version I get:

-bash: /Applications/myROOT/build/bin/thisroot.sh: Permission denied

Help me, please.

Do you have the right to read /Applications/myROOT/build/bin/thisroot.sh ?

what do you get when you do:

$ ls -l /Applications/myROOT/build/bin/thisroot.sh

?

-rw-r–r-- 1 mattia staff 3987 Aug 22 10:03 /Applications/myROOT/build/bin/thisroot.sh

works and I can run ROOT.

But if I close the terminal window and I open it again I'm back at the starting point:
[code]-bash: /Applications/root_v6.06.00/bin/thisroot.sh: No such file or directory[/code]

works and I can run ROOT.

But if I close the terminal window and I open it again I’m back at the starting point:

Check your “~/.profile”, “~/.bash_profile”, “~/.bash_login”, “~/.bashrc”, …

Air-di-Mattia:~ mattia$ ~/.profile -bash: /Users/mattia/.profile: No such file or directory Air-di-Mattia:~ mattia$ ~/.bash_profile -bash: /Users/mattia/.bash_profile: Permission denied Air-di-Mattia:~ mattia$ ~/.bash_login -bash: /Users/mattia/.bash_login: No such file or directory Air-di-Mattia:~ mattia$ ~/.bashrc -bash: /Users/mattia/.bashrc: No such file or directory Air-di-Mattia:~ mattia$

:-s :open_mouth: #-o

You are supposed to check the contents of these files. :-({|=
Additionally, you may need to check “/etc/profile”, “/etc/bash.bashrc”, …

When you start a terminal window with the “bash” shell the file ~/.bashrc is executed.
In that file you can put the commands you wish.
You should put one of the command Wile suggested (sourcing thisroot.sh)

Wile would never suggest it. [-X
I can assure you. :mrgreen:

Mattia needs to find the place where “/…/root_v6.06.00/…” is referenced (in his current setup).

oops … you are friends anyway :smiley: :wink:

Done! The file name was “.bash_profile”, can I ask you what is the “~/” you wrote before it?

“~” = home directory

see for instance : ee.surrey.ac.uk/Teaching/Unix/unix1.html

Thank you, I’m going to learn something :mrgreen: