Install root 5.34 in ubuntu12.04 but terminal cann't display

Hello

I install root 5.34 in ubuntu12.04, then I add
export ROOTSYS=PATH_TO_YOUR_UNPACK_DIRECTORY
export PATH=$PATH:$ROOTSYS:$ROOTSYS/bin
in .bashrc.
But when I enter root --version in termianl, display the following error:


No command ‘root’ found, did you mean:
Command ‘rootv’ from package ‘xawtv’ (universe)
Command ‘rott’ from package ‘rott’ (multiverse)
Command ‘rbot’ from package ‘rbot’ (universe)
root: command not found


Best wishes
violin

[quote=“violin”]Hello

I install root 5.34 in ubuntu12.04, then I add
export ROOTSYS=PATH_TO_YOUR_UNPACK_DIRECTORY
export PATH=$PATH:$ROOTSYS:$ROOTSYS/bin
in .bashrc.
But when I enter root --version in termianl, display the following error:


No command ‘root’ found, did you mean:
Command ‘rootv’ from package ‘xawtv’ (universe)
Command ‘rott’ from package ‘rott’ (multiverse)
Command ‘rbot’ from package ‘rbot’ (universe)
root: command not found


Best wishes
violin[/quote]

Hi

I have solved the problem. But when I entered root, the following error exist:
rootx xpm error: XpmOpenFailed
/home/…/root/bin/root.exe: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory
What can I do?

Cheers
violin

Hi,

You also need to set LD_LIBRARY_PATH. The easiest way is to set all the variables needed using the provided script:. PATH_TO_YOUR_UNPACK_DIRECTORY/bin/thisroot.sh

Cheers,
Philippe.

Hello,

I reply to this item since I’ve recently moved to Ubuntu 12.04 and installed ROOT. After installation, I typed root on terminal and a ROOT session normally opened. But when I exit ROOT, close the terminal and open it at a later time, this is what I get.

No command ‘root’ found, did you mean:
Command ‘rootv’ from package ‘xawtv’ (universe)
Command ‘rott’ from package ‘rott’ (multiverse)
Command ‘rbot’ from package ‘rbot’ (universe)
root: command not found

Then I run . MY_ROOT_DIRECTORY/bin/thisroot.sh and typing root on terminal works again. I have to do this everytime I open a new terminal session.
This is very strange, it never happened to me before.

Manuel

This behaviour is normal.
Assuming that your default shell is “bash”, you may want to add into your “.bashrc” file:
source MY_ROOT_DIRECTORY/bin/thisroot.sh

Thank you. It works.
I had assumed that doing . bin/thisroot.sh at the end of installation automatically told the system where ROOT is installed, without having to do anything else.