Starting ROOT

Hello

I am running ROOT on Mac OSX 10.6.6 and it runs fine.
BUT in order to start ROOT i have to go to the ROOT folder, then do . bin/thisroot.sh and then return to the directory I want to work in and then I can start ROOT by entering root. Otherwise it just says -bash: root: command not found.
It is not a big deal, it is just annoying.

I suppose it has something to do with the PATH and LD_LIBRARY_PATH environment variables, but I don’t know how to fix it.

Can anyone help?

Thank you

Mathias

[quote=“Bjerre”]Hello

I am running ROOT on Mac OSX 10.6.6 and it runs fine.
BUT in order to start ROOT i have to go to the ROOT folder, then do . bin/thisroot.sh and then return to the directory I want to work in and then I can start ROOT by entering root. Otherwise it just says -bash: root: command not found.
It is not a big deal, it is just annoying.

I suppose it has something to do with the PATH and LD_LIBRARY_PATH environment variables, but I don’t know how to fix it.

Can anyone help?

Thank you

Mathias[/quote]

On *nixes you have to set PATH, LD_LIBRARY_PATH (and, probably, DYLD_LIBRARY_PATH on mac) environment variables. ROOT’s README file describes this pretty well.

Hi,

Also you can try to simply run:[code]# bash
. where_root_is/bin/thisroot.sh

csh

source where_root_is/bin/thisroot.csh[/code

Cheers,
Philippe.