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/thisroot.sh” to my .profile file and what I have after I added the line is:
…
if [-f "$HOME/.bashrc]; then
. “$HOME/.bashrc”
. "~/root/bin/thisroot.sh"
fi
…
but when I run a new bash I must execute manually thisroot.sh to run Root.
Where have I made a mistake on the code?
Thanks for helping.
Hi,
in my bashrc I use this line,
source ~/root/bin/thisroot.sh.
Moreover I add
export ROOTSYS=~/root_v6.08.06
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH
Cheers,
Stefano
Why do you have this in the .bashrc
if
? I would expect that . "~/root/bin/thisroot.sh"
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/thisroot.sh” or “$HOME/root/bin/thisroot.sh” 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.