Macros are not showing up when I run root

Hello, I am trying to run a simple macro I created but whenever I save it on my text editor the file does not show up on root!

The version of root that I have is 6.10/02
the error I keep getting is the following:
Error in TApplication::ExecuteFile: macro hello.C not found in path .:/home/diego/build/macros.

Additionally, I can only run macros if I open up the ROOT Object Browser and save the macro through there.
Is there a way to change this?

I am fairly new to ROOT so any help would be great!
is there any way to change the path source?
Thanks again!

How are you evoking your macro? Have you read this? Here are some examples:

$ cd ~
$ vi test.C
$ root test.C
$ cd ~
$ vi test.C
$ root
root [0] .x test.C
$ cd ~
$ mkdir adir
$ vi adir/test.C
$ root adir/test.C
$ cd ~
$ mkdir adir
$ vi adir/test.C
$ root
root [0] .x adir/test.C

I am typing .x hello.C and it cant seem to find the file.
I am using Ubuntu to run it since I have a windows pc.

The only way I am able to run a macro I have written in a text editor is to copy and paste it onto the
ROOT Object Browser and save it through there. Is there a way around this?

is there any more information I can give to help?

Can you explain more your system? Are you using windows or Ubuntu? Are you launching ROOT from the terminal in the same folder as your script?
A listing of the files in the directory will tell you if the file is available.

I figured it out. I had to install gedit and save my files from there.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.