RE: ''bash :root: command not found'' ERROR

From: Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch>
Date: Tue, 29 May 2012 11:50:16 +0000


No, the order is not important :)

Now the question I should ask from the beginning: how to do install ROOT? Do you compile it from source, or do you use pre-compiled binaries?



From: f.adibpour_at_gmail.com [f.adibpour_at_gmail.com] on behalf of Farzaneh Adibpour [adibpour_at_razi.tums.ac.ir] Sent: 29 May 2012 13:35
To: Timur Pocheptsov
Cc: roottalk_at_lxroot01.cern.ch
Subject: Re: [ROOT] ''bash :root: command not found'' ERROR

I have noticed it in your previous email and I changed it. But should I also repeat the installation process again? Because in user guide setting this variable is before installation.

Thanks again

---
Farzaneh

On Tue, May 29, 2012 at 1:15 PM, Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch<mailto:Timur.Pocheptsov_at_cern.ch>> wrote:
Yes, sure I have an idea - your modification is wrong, if you still have an error.
In your previous e-mail you've mentioned

'<path>/root' and

/usr/local/planetocosmics/planetocosmics_V2/root_5.16.00h/root

why do you have this 'root' at the end?
What are the contents of your

/usr/local/planetocosmics/planetocosmics_V2/root_5.16.00h

directory?
________________________________
From: Farzaneh Adibpour [f.adibpour_at_gmail.com<mailto:f.adibpour_at_gmail.com>]
Sent: 29 May 2012 13:12

To: Timur Pocheptsov
Cc: roottalk_at_lxroot01.cern.ch<mailto:roottalk_at_lxroot01.cern.ch>
Subject: Re: [ROOT] ''bash :root: command not found'' ERROR

Thanks for your support!
As you also mentioned I have only modified the first one. But when I try to run root, I still have the same error. Do you have any other idea?
Best regards
--
Farzaneh


On Tue, May 29, 2012 at 1:01 PM, Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch<mailto:Timur.Pocheptsov_at_cern.ch>> wrote:
Well, actually in these 3 exports you have to modify only the first one, replacing '<path>' with actual path where your ROOT is. if your ROOT's installation directory is
'/usr/local/planetocosmics/planetocosmics_V2/root_5.16.00h',

you just do

export ROOTSYS=/usr/local/planetocosmics/planetocosmics_V2/root_5.16.00h

and

export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH


________________________________
From: Farzaneh Adibpour [f.adibpour_at_gmail.com<mailto:f.adibpour_at_gmail.com>]
Sent: 29 May 2012 12:40

To: Timur Pocheptsov
Cc: roottalk_at_lxroot01.cern.ch<mailto:roottalk_at_lxroot01.cern.ch>
Subject: Re: [ROOT] ''bash :root: command not found'' ERROR

Thanks for your help!
As I have checked the user guide,I should set these variables:
export ROOTSYS=<path>/root
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
But still the problem is not solved .
Instead of <path> I have added directory in which the shell look to find the command I have typed(export ROOTSYS=/usr/local/planetocosmics/planetocosmics_V2/root_5.16.00h/root). should I also add this directory instead of PATH or this must be unchanged?

thanks again
--
Farzaneh


On Fri, May 25, 2012 at 12:53 PM, Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch<mailto:Timur.Pocheptsov_at_cern.ch>> wrote:

>From http://root.cern.ch/drupal/content/installing-root-source:
"Add bin/ to PATH and lib/ to LD_LIBRARY_PATH." ________________________________ From: f.adibpour_at_gmail.com<mailto:f.adibpour_at_gmail.com> [f.adibpour_at_gmail.com<mailto:f.adibpour_at_gmail.com>] on behalf of Farzaneh Adibpour [adibpour_at_razi.tums.ac.ir<mailto:adibpour_at_razi.tums.ac.ir>] Sent: 25 May 2012 12:10 To: Timur Pocheptsov Cc: roottalk_at_lxroot01.cern.ch<mailto:roottalk_at_lxroot01.cern.ch> Subject: Re: [ROOT] ''bash :root: command not found'' ERROR Thanks for your fast answer. This is what I have done during root installation:
>cd /farzaneh/planetocosmics/planetocosmics_V2/root_5.16.00h/ >./configure
>make
>export ROOTSYS=/usr/local/planetocosmics/planetocosmics_V2/root_5.16.00h/root
>make install
Thanks again and best regards --- Farzaneh On Fri, May 25, 2012 at 11:59 AM, Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch<mailto:Timur.Pocheptsov_at_cern.ch>> wrote: I do not know, how you installed ROOT, but the very first answer - yes, you have to set environment variables. With ROOT it's easy now, in your ROOT's directory, in bin subdirectory there is a script thisroot.sh which sets environment variables. ________________________________ From: owner-roottalk_at_root.cern.ch<mailto:owner-roottalk_at_root.cern.ch> [owner-roottalk_at_root.cern.ch<mailto:owner-roottalk_at_root.cern.ch>] on behalf of Farzaneh Adibpour [adibpour_at_razi.tums.ac.ir<mailto:adibpour_at_razi.tums.ac.ir>] Sent: 25 May 2012 11:52 To: roottalk_at_lxroot01.cern.ch<mailto:roottalk_at_lxroot01.cern.ch> Subject: [ROOT] ''bash :root: command not found'' ERROR Dear Rooters, I'm a novice user and I have stupid question. I have installed root for analysing PLANTOCOSMICS outputs. I didn't get any error message during installation.But when I type the command '' root myfilename.root '' I will get the following error bash :root: command not found Do you think that I didn't set the enviroment variable correctly or is there other problem? Thanks in advance. cheers --- Farzaneh -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean.
Received on Tue May 29 2012 - 13:50:24 CEST

This archive was generated by hypermail 2.2.0 : Tue May 29 2012 - 23:50:02 CEST