RE: Cannot find macro on windows, was: Re: TChain

From: Bloom, Elliott <elliott_at_slac.stanford.edu>
Date: Thu, 17 Dec 2009 17:36:33 -0800


Hi Bertrand,
Indeed it was weird. Turns out that Windows 7 has the extension of the files turned off by default. What I thought was HelloWorld.C, was actually saved as HelloWorld.C.txt. I changed the Windows default to show all file extensions and now things are not weird anymore (at least until the next issue comes up).
Thanks for your inputs.
Best,
Elliott

-----Original Message-----
From: Bertrand Bellenot [mailto:Bertrand.Bellenot_at_cern.ch] Sent: Wednesday, December 16, 2009 11:48 PM To: Bloom, Elliott; Axel Naumann; Nick van Eijndhoven Cc: roottalk_at_lxbuild091.cern.ch
Subject: RE: Cannot find macro on windows, was: Re: [ROOT] TChain

Hi Elliott,

This is weird.. You said " I was able to run the benchmark OK " Does this mean that $ROOTSYS/tutorials/benchmarks.C is working? Is Root working with macros in $ROOTSYS/tutorials/* ? If it is the case, could you provide the macro which is not working, and the way you execute it (the exact command you type)?

Cheers, Bertrand.

-----Original Message-----
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Bloom, Elliott
Sent: Thursday, December 17, 2009 02:22
To: Axel Naumann; Nick van Eijndhoven
Cc: roottalk_at_lxbuild091.cern.ch
Subject: RE: Cannot find macro on windows, was: Re: [ROOT] TChain

Hi Alex and Nick,
Sorry, but the suggestions you made were based on my sloppy email typing. It really is c:\root\macros, and there are no spaces in my environmental variables. Any other suggestions? Thanks,
Elliott

-----Original Message-----
From: Axel Naumann [mailto:Axel.Naumann_at_cern.ch] Sent: Wednesday, December 16, 2009 2:01 PM To: Nick van Eijndhoven
Cc: Bloom, Elliott; roottalk_at_lxbuild091.cern.ch Subject: Cannot find macro on windows, was: Re: [ROOT] TChain

Hi,

are your TEMP / TMP variables' values really starting with a space? They shouldn't! :-)

Can you actually read the file? Does a simple .x HelloWorld.C
work, with HelloWorld.C wherever you started ROOT? If it doesn't, does .! type HelloWorld.C
show the content of the file?

Cheers, Axel.

On 2009-12-16 22:05, Nick van Eijndhoven wrote:
> Hi Elliott,
> Maybe you have to update your .rootrc file in your home directory
> to specify the paths where to look for the macros.
>
> When you tried to circumvent the problem by putting your macro in
> another directory, you tried c:\root\macro whereas the error message
> seems to indicate it should be c:\root\macros
> So, trying it out with c:\root\macros should work to my opinion,
otherwise
> there is something else which goes wrong.
>
> Just my 2 (euro) cents,
> Nick.
>
> On Wed, Dec 16, 2009 at 9:33 PM, Bloom, Elliott
> <elliott_at_slac.stanford.edu <mailto:elliott_at_slac.stanford.edu>> wrote:
>
> Dear Root Talkers,
> I am trying to get Root V5.24 running on Windows 7 Ultimate.
> ROOT installed OK and I was able to run the benchmark OK. My
machine
> performed well. However, when trying to execute a script, called
> HelloWorld.C, I get the message:
> " Error in <TApplication::ExecuteFile>: macro HelloWorld.C not
found in
> path .;C:\root/macros;"
>
> I have set up the Windows 7 environmental variables with this
template:
>
> ROOTSYS=c:\root
> HOME=c:\
> PATH=%ROOTSYS%\bin;%ROOTSYS%\lib;%PATH%;%HOME%
> TEMP= c:\Temp
> TMPDIR= c:\Temp
>
> I have tried putting the HelloWorld.C file in c:\root\macro, and
in
> c:\root. I get the same error.
> Any ideas?
>
> Thanks,
> Elliott Bloom
>
>
>
>
>
> --
> Nick van Eijndhoven
> Professor of Physics
> Vrije Universiteit Brussel (VUB-ELEM)
> Inter-university Institute for High Energies (IIHE)
> Pleinlaan 2, B-1050 Brussel, Belgium
> --
> Office : 0G-122 tel: +32.(0)2.629.3212 gsm: +32.(0)488.074166
> Secr. : 1G-006 tel: +32.(0)2.629.3203 fax : +32.(0)2.629.3816
> Email : nickve.nl <http://nickve.nl>@gmail.com <http://gmail.com>
> Skype: nickve.nl <http://nickve.nl> Gsm-NL: +31.(0)6.40181589
> Web : http://w3.iihe.ac.be http://sites.google.com/site/nickveweb
>
> "In the beginning there was nothing, which exploded".
Received on Fri Dec 18 2009 - 02:36:52 CET

This archive was generated by hypermail 2.2.0 : Fri Dec 18 2009 - 11:50:03 CET