Hi, it looks like your source directory is dirty (hsimple.root is a build product, it’s not part of the source, and it’s definitely not a tutorial ). Could it be that you compiled ROOT straight from the source directory? That is not supported, you have to build ROOT from a separate build directory.
First off you could try to clean up your source directory:
cd $ROOTSYS # $ROOTSYS means "wherever your ROOT sources are"
git clean -fd
git checkout -f v6-10-00
And then re-build from scratch from a separate directory:
If you actually downloaded the git repo, followed the setup instructions for an out-of-source build and compiled ROOT in under ten minutes, that is pretty impressive both for you and your laptop
If that’s the case I am not sure I can help, but as a first step please post the outputs of git status and find . | grep hsimple when launched from the ROOT source directory.
$ git status
On branch v6-10-00
Untracked files:
(use "git add <file>..." to include in what will be committed)
root-build/
nothing added to commit but untracked files present (use "git add" to track)
$ find . | grep hsimple
./root-build/CMakeFiles/hsimple.dir
./root-build/CMakeFiles/hsimple.dir/build.make
./root-build/CMakeFiles/hsimple.dir/cmake_clean.cmake
./root-build/CMakeFiles/hsimple.dir/depend.internal
./root-build/CMakeFiles/hsimple.dir/depend.make
./root-build/CMakeFiles/hsimple.dir/DependInfo.cmake
./root-build/CMakeFiles/hsimple.dir/progress.make
./root-build/test/hsimple.cxx
./root-build/test/ios/Tutorials/Pictures/hsimple_icon_n.png
./root-build/tutorials/hsimple.C
./root-build/tutorials/pyroot/hsimple.py
./root-build/tutorials/ruby/hsimple.rb
./root-build/tutorials/tree/hsimpleProxy.C
./root-build/tutorials/tree/hsimpleProxyDriver.C
./root-build/tutorials/tree/hsimpleReader.C
./test/hsimple.cxx
./test/ios/Tutorials/Pictures/hsimple_icon_n.png
./tutorials/hsimple.C
./tutorials/pyroot/hsimple.py
./tutorials/ruby/hsimple.rb
./tutorials/tree/hsimpleProxy.C
./tutorials/tree/hsimpleProxyDriver.C
./tutorials/tree/hsimpleReader.C
I think it may has to something to with how mac os x works? cause I am actually have problem running examples for tmva using root6.8 on my mac os.
I been learning how to tmva using root6.8 but have been running into problem so I though i do fresh install of a updated root to see if I can overcome it.
First things first, let’s get you a root installation up and running.
As per my first post, please remove the build-root directory from the root source directory and build ROOT again in a directory outside of the sources. Once you have successfully compiled ROOT this way (detailed instructions are available here) run source your/build/directory/bin/thisroot.sh and then root to check you have a working environment.
If it fits your needs, you can also try to download a pre-compiled binary for your platform from here. In that case you can skip compilation and directly try source-ing thisroot.sh and running root.
Glad you made it work. I’ll mark this as solved. Don’t hesitate to open a new thread in case of further problems.
As a side note, ROOT is tested extensively on macOS 10.12 and a few ROOT developers actually use it as their operating system, so I believe a clean install following all instructions step by step should definitely work, unless something is wrong with your specific environment.