I have root on my machine, because when I type $root, it starts, but I think I missed something in defining its PATH, because when I try to run some backage related to root, it gives me this error …
Root [FAILURE]
** ERROR: ROOT module called “root-config” is not detected.
Two explanations :n - ROOT is not installed. You can download it from root.cern.ch
ROOT binary folder must be placed in the global environment variable $PATH
Did you install ROOT on your machine? What machine is that?
The way in which the ROOT environment is set is via the “thisroot.[c]sh” script.
You can refer to one of the release pages, e.g. root.cern/content/release-60604 section “Example of setting up ROOT and the corresponding compiler on AFS”.
so if root running well when I type $root, from any directory, why when i upload this package, it can’t execute root files ?
I tried to install root again form
I propose you download root, configure it and compile it. You can follow the instructions here: root.cern/installing-root-source
Be sure you install the build prerequisites before proceeding.
Let us know how it goes.
It gives me the following error when I typed
builddir$cmake /home/safi/root
[code] Could not find a package configuration file provided by “ROOT” with any of
the following names:
ROOTConfig.cmake
root-config.cmake
Add the installation prefix of “ROOT” to CMAKE_PREFIX_PATH or set
"ROOT_DIR" to a directory containing one of the above files. If "ROOT"
provides a separate development package or SDK, be sure it has been
installed.
[/code]
Although /home/safi/root containing folder called cmake has ROOTConfig.cmake ?
ps: I downloaded: root_v6.06.04.Linux-ubuntu14-x86_64-gcc4.8.tar.gz