Error installing Root 6 on Mac OS Sierra with Xcode 8.33

Hi everybody.
I’m trying to install Root 6.08/06 on Mac OS Sierra.
When I do install Root 6 following the instructions, I got error messages.
I’m using with OS: MAC Sierra 10.12.5
Xcode: 8.3.3
I’ve installed: xcode-select --install using homebrew
I’m configuring root with the following command:
After ‘make’ command was completely done, I did make install and then I got error messages.

cmake ../ -Dgminimal=ON -Dasimage=ON -Dmathmore=On -Dminuit2=ON -Dxml=ON -DCMAKE_INSTALL_PREFIX=../root_exec
make
make install

Error messages I’ve got.

– Installing: /usr/local/Cellar/root/root_exec/include/TGeoPainter.h
– Installing: /usr/local/Cellar/root/root_exec/include/TGeoTrack.h
– Installing: /usr/local/Cellar/root/root_exec/bin/root
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/root (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib
– Installing: /usr/local/Cellar/root/root_exec/bin/rootn.exe
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/rootn.exe (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib
– Installing: /usr/local/Cellar/root/root_exec/bin/roots.exe
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/roots.exe (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib
– Installing: /usr/local/Cellar/root/root_exec/bin/ssh2rpd
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/ssh2rpd (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib
– Installing: /usr/local/Cellar/root/root_exec/bin/xpdtest
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/xpdtest (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib
– Installing: /usr/local/Cellar/root/root_exec/bin/root.exe
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/root.exe (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib
– Installing: /usr/local/Cellar/root/root_exec/bin/proofserv.exe
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/proofserv.exe (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib
– Installing: /usr/local/Cellar/root/root_exec/bin/hadd
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/hadd (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib
– Installing: /usr/local/Cellar/root/root_exec/bin/rootnb.exe
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool: for: /usr/local/Cellar/root/root_exec/bin/rootnb.exe (for architecture x86_64) option “-add_rpath @loader_path/…/lib” would duplicate path, file already has LC_RPATH for: @loader_path/…/lib

Does someone know how to solve this?

Thanks.

@mato perhaps you know what this is about? Thanks!

Are you sure is an error? The problem is that when we build the executables we add RPATH to @loader_path/../lib in order to locate the libraries when these executables are used to run tests in the binary directory. Then, the installation in CMake tries to add it again notifying a duplication. For me this was more a warning than a fatal error.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.