root macro not found in path

Project:Linux software
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:fixed
Related pages:#11006: root
Tags:CERN root
Description

With CERN root, following a tutorial, I do:

root [0] .x mymacro.C(42)
Error in <TApplication::ExecuteFile>: macro mymacro.C not found in path .:/usr/share/root/macros:

How do I set the path?

Comments

#1

man root refers to ~/.rootrc

See also /etc/root/system.rootrc

#2

Status:active» fixed

Oh! It was a typo, an error in capitalization. root does include macros found in the current directory.