I am installing root and when I tried cmake it, it gives me this error message. It’s not clear to me what went wrong. It would be much appreciated if someone could help me out.
Hi @kz200,
and welcome to the ROOT forum!
What git commit are you trying to build ROOT from? I.e. what does git log -1 print? You might want to checkout a more recent commit.
Hi @eguiraud
Thank you! I checked that and I think I used the latest one? Here is the returned message:
commit c7ca01fdfa28a006e1dff6921caed6f535544732 ( HEAD ->master , origin/master , origin/HEAD )
That’s a pretty old commit (from April 4th) and you were so unlucky to actually find yourself in one of the very rare commits in master that happen to be broken.
If you want to compile ROOT master, pull a more recent version with git pull. Otherwise, I would suggest you check out one of the patch releases, which are not in active development and are more stable, e.g. git checkout v6-20-00-patches.
I am not a mac user, but I hear good things about brew install root, i.e. a ROOT installation via homebrew (see here).
May I ask another question about compilation of a package? I actually need to use a thermal model package called THERMUS for ROOT. I just tried to compile it with cmake, but I got an error which made me a little lost:
CMake Error at CMakeLists.txt:21 (include):
include could not find load file:
RootInstallDirs
– Customised the linking flags depending on the platform: -single_module -undefined dynamic_lookup -lm
– Source folder: /Users/kevinzheng/thermus
– which should correspond to $THERMUS
– CMake platform: Darwin-19.5.0
– Build folder: /Users/kevinzheng/thermus/build
– Shared Object Library folder: /Users/kevinzheng/thermus/build/lib
CMake Error at /usr/local/share/root/cmake/RootMacros.cmake:571 (install):
install FILES given no DESTINATION!
Call Stack (most recent call first):
main/CMakeLists.txt:6 (ROOT_GENERATE_DICTIONARY)
– Configuring incomplete, errors occurred!
See also “/Users/kevinzheng/thermus/build/CMakeFiles/CMakeOutput.log”.
make: *** No targets specified and no makefile found. Stop.
Hey Kevin! I was installing THERMUS and I think I might’ve built it(not sure). Where is ROOTSYS pointing to in your system ? I think that might be the reason we were experiencing problems.