I' using Ubuntu 14.0. I want to install root. So I followed the instructions:
I'm stuck in the fourth step. I downloaded and unpacked ROOT in the directory
I decided that I want to install it in the directory
so I created the folder and entered it. Now I want to execute cmake:
But I got the following error:
CMake Error at CMakeLists.txt:9 (find_package): By not providing "FindROOT.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ROOT", but CMake did not find one. 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. -- Configuring incomplete, errors occurred! See also "/home/john/Root/CMakeFiles/CMakeOutput.log".
It basically tells me what to do. So I added the following line at the end of the CMakeLists file:
However, it didn't help at all.
I tried googling the error, but everyone else says I should set the CMAKE_INSTALL_PREFIX to the path to the source. I already did it and it doesn't work. Why?