ROOT Installation set PATH [SOLVED]

Hi everyone,
I’m new and this question may seems a stupid question but I’ve a problem installing ROOT version 6.08/06 on Ubuntu 16.04.2 .
The root/README/README file says that i must add “. /root/bin/” to my .profile file and what I have after I added the line is:

if [-f "$HOME/.bashrc]; then
. “$HOME/.bashrc”
. "~/root/bin/"

but when I run a new bash I must execute manually to run Root.
Where have I made a mistake on the code?
Thanks for helping.

in my bashrc I use this line,
source ~/root/bin/

Moreover I add

export ROOTSYS=~/root_v6.08.06
export PATH=$ROOTSYS/bin:$PATH


1 Like

Why do you have this in the .bashrc if? I would expect that . "~/root/bin/" outside an if should do.

Note that .profile is run once, when logging in, while .bashrc is run whenever bash is executed (e.g. when a new terminal is started). So you could add it to .bashrc, or you’ll need to log off and on again to test this.

Thank you I just solved in this way:

I added . “absolute-path” at the end of .bashrc and it works.
I can’t understand why it doesn’t work with “~/root/bin/” or “$HOME/root/bin/” but it does work with the absolute path and that’s enough.

Thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.