Installing error 6.15/01


_ROOT Version: 6.15/01
Platform: macOS


Hi,
I use the command ‘sudo make install’ to install the root but I got this error messages

`error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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/root/bin/rootn.exe

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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/root/bin/roots.exe

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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/root/bin/ssh2rpd

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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/root/bin/xpdtest

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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/root/bin/root.exe

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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/root/bin/proofserv.exe

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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/root/bin/hadd

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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/root/bin/rootnb.exe

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/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

-- Installing: /usr/local/root/bin/hist2workspace

error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: for: /usr/local/root/bin/hist2workspace (for architecture x86_64) option "-add_rpath @loader_path/../lib" would duplicate path, file already has LC_RPATH for: @loader_path/../lib
`

Is it going to any problem with this error?

That is strange, but we have not seen in our builds. Could you please paste here how you invoked CMake to configure ROOT? Also, please attach the output of cmake -L. The error indicates that the rpath being added is already in the library being installed, but that doesn’t mean that the installation is broken. Could you please try running ROOT with /usr/local/root/bin/root?

I’ve encountered the same error when trying to install. Afterwards, when I try to run it (regardless of the directory), i get this (and the logo just stays on the screen forever):

dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.9.dylib
  Referenced from: /usr/local/lib/libTIFF.dylib
  Reason: Incompatible library version: libTIFF.dylib requires version 13.0.0 or later, but libJPEG.dylib provides version 11.0.0

It looks like you may have environment variables set that messed up the build. Please make sure you start the build from a new where you did not source thisroot.sh or Homebrew, etc.

Actually I just found out that if I run source path/bin/thisroot.sh it works fine…

Is there any way I can solve this?

That just confirms that it is the source of the problem, since now you have to have that same environment setup to have things working. Which path did you source the file from? You’ll have to either always source that same script, or build ROOT without sourcing it and reinstall.

So I downloaded the source code to my Desktop, and then created a folder “build” into which I copied my root folder created by the source code. the I built it from the “build folder”.

When I build it again, should I before somehow uninstall the previous build? If so, how?

Thank you! :slight_smile:

Yes, uninstalling is best. Just make sure that you start a new terminal and don’t source any scripts before building ROOT. That way you’ll have a clean environment and it should work without having to source the script later.

And how can I uninstall? From the build directory just make uninstall ?

No, I think you’ll need to remove the directory where you installed it (/usr/local/root). Just make sure that there aren’t other things installed in that same directory that you don’t want to remove. Otherwise, just install over the previous installation.

1 Like

I’ve built it again, without sourcing any scripts whatsoever neither before or after building, but it stills gives me the same problem:

dyld: Library not loaded: /usr/local/opt/jpeg/lib/libjpeg.9.dylib
  Referenced from: /usr/local/lib/libTIFF.dylib
  Reason: Incompatible library version: libTIFF.dylib requires version 13.0.0 or later, but libJPEG.dylib provides version 11.0.0

/usr/local/opt has some software installed, but by what tool? That tool probably installed libraries with broken install_names. That is, the problem is not with ROOT, but with your libjpeg library.

Should I just erase the jpeg folder?

And is there a reason why executing the script thisroot.sh seems to “solve” the problem?

Thanks for your help :slight_smile:

No, that will probably make other software on your machine fail. When you source thisroot.sh, it probably adds more paths to DYLD_LIBRARY_PATH that contain a good version of libjpeg.dylib.

Is there a way to add thisroot.sh to some other file such that whenever I start root it gets executed automatically?

You can add source path/to/thisroot.sh to your $HOME/.bashrc file for that.

This is how I invoked CMake
“cmake -Dpython=ON -Droofit=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/root …”

and this is the output of cmake -L

CMake Error: The source directory "/usr/local/root/compile" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
-- Cache values
CHROME_EXECUTABLE:FILEPATH=/Applications/Google Chrome.app/Contents/MacOS/Google%20Chrome
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr/local/root
CMAKE_INSTALL_PREFIX-CACHED:STRING=/usr/local/root
CMAKE_INVOKE:STRING=/usr/local/Cellar/cmake/3.12.2/bin/cmake  -DCMAKE_INSTALL_PREFIX:PATH="/usr/local/root" -Dpython="ON" -Droofit="ON" /usr/local/root
CMAKE_LIBTOOL:PATH=/Library/Developer/CommandLineTools/usr/bin/libtool
CMAKE_OSX_ARCHITECTURES:STRING=
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
CMAKE_OSX_SYSROOT:PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
CMAKE_XCRUN:FILEPATH=/usr/bin/xcrun
DAVIX_FOUND:BOOL=TRUE
DL_LIBRARY_PATH:FILEPATH=/usr/lib/libdl.dylib
ENABLE_LINKER_BUILD_ID:BOOL=OFF
ENABLE_X86_RELAX_RELOCATIONS:BOOL=OFF
FIREFOX_EXECUTABLE:FILEPATH=FIREFOX_EXECUTABLE-NOTFOUND
GOLD_EXECUTABLE:FILEPATH=/usr/bin/ld
GO_EXECUTABLE:FILEPATH=GO_EXECUTABLE-NOTFOUND
LD64_EXECUTABLE:PATH=/Library/Developer/CommandLineTools/usr/bin/ld
LZ4_FOUND:BOOL=TRUE
PERL_EXECUTABLE:FILEPATH=/usr/bin/perl
PYTHIA6_pythia6_dummy_LIBRARY:FILEPATH=PYTHIA6_pythia6_dummy_LIBRARY-NOTFOUND
PYTHIA8_DATA:PATH=PYTHIA8_DATA-NOTFOUND
ROOT_CLASSIC:BOOL=OFF
ROOT_LLVM_FLAGS:STRING= -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
RT_LIBRARY:FILEPATH=RT_LIBRARY-NOTFOUND
TBB_ROOT_DIR:PATH=TBB_ROOT_DIR-NOTFOUND
VDT_INCLUDE_DIR:PATH=VDT_INCLUDE_DIR-NOTFOUND
VDT_LIBRARY:FILEPATH=VDT_LIBRARY-NOTFOUND
afdsmgrd:BOOL=OFF
alien:BOOL=OFF
all:BOOL=OFF
arrow:BOOL=OFF
asimage:BOOL=ON
astiff:BOOL=ON
bonjour:BOOL=OFF
builtin_afterimage:BOOL=ON
builtin_cfitsio:BOOL=OFF
builtin_clang:BOOL=ON
builtin_davix:BOOL=ON
builtin_fftw3:BOOL=OFF
builtin_freetype:BOOL=ON
builtin_ftgl:BOOL=ON
builtin_gl2ps:BOOL=ON
builtin_glew:BOOL=ON
builtin_gsl:BOOL=OFF
builtin_llvm:BOOL=ON
builtin_lz4:BOOL=ON
builtin_lzma:BOOL=OFF
builtin_openssl:BOOL=ON
builtin_pcre:BOOL=ON
builtin_tbb:BOOL=ON
builtin_unuran:BOOL=OFF
builtin_vc:BOOL=OFF
builtin_vdt:BOOL=ON
builtin_veccore:BOOL=OFF
builtin_xrootd:BOOL=OFF
builtin_xxhash:BOOL=ON
builtin_zlib:BOOL=OFF
castor:BOOL=OFF
ccache:BOOL=OFF
cefweb:BOOL=OFF
clad:BOOL=ON
cling:BOOL=ON
clingtest:BOOL=OFF
cocoa:BOOL=ON
compression_default:STRING=lz4
coverage:BOOL=OFF
cuda:BOOL=OFF
cxx11:BOOL=ON
cxx14:BOOL=OFF
cxx17:BOOL=OFF
cxxmodules:BOOL=OFF
davix:BOOL=ON
dcache:BOOL=OFF
exceptions:BOOL=ON
explicitlink:BOOL=ON
fail-on-missing:BOOL=OFF
fftw3:BOOL=OFF
fitsio:BOOL=OFF
fortran:BOOL=OFF
gcctoolchain:PATH=
gdml:BOOL=ON
geocad:BOOL=OFF
gfal:BOOL=OFF
git_executable:FILEPATH=/usr/bin/git
globus:BOOL=OFF
gminimal:BOOL=OFF
gnuinstall:BOOL=OFF
gsl_shared:BOOL=OFF
gviz:BOOL=OFF
hdfs:BOOL=OFF
http:BOOL=ON
imt:BOOL=ON
jemalloc:BOOL=OFF
krb5:BOOL=OFF
ldap:BOOL=OFF
libcxx:BOOL=ON
macos_native:BOOL=OFF
mathmore:BOOL=OFF
memory_termination:BOOL=OFF
memstat:BOOL=OFF
minimal:BOOL=OFF
minuit2:BOOL=OFF
monalisa:BOOL=OFF
mysql:BOOL=OFF
odbc:BOOL=OFF
opengl:BOOL=ON
oracle:BOOL=OFF
pch:BOOL=ON
pgsql:BOOL=OFF
pkgcfg_lib_PC_LIBXML_xml2:FILEPATH=/usr/lib/libxml2.dylib
pkgcfg_lib_PC_SQLITE_sqlite3:FILEPATH=/usr/lib/libsqlite3.dylib
pyroot_experimental:BOOL=OFF
pythia6:BOOL=OFF
pythia6_nolink:BOOL=OFF
pythia8:BOOL=OFF
python:BOOL=ON
python-CACHED:STRING=ON
qt:BOOL=OFF
qt5web:BOOL=OFF
qtgsi:BOOL=OFF
r:BOOL=OFF
rfio:BOOL=OFF
roofit:BOOL=ON
roofit-CACHED:STRING=ON
root7:BOOL=OFF
rootbench:BOOL=OFF
roottest:BOOL=OFF
rpath:BOOL=OFF
runtime_cxxmodules:BOOL=OFF
shadowpw:BOOL=OFF
shared:BOOL=ON
soversion:BOOL=OFF
sqlite:BOOL=ON
ssl:BOOL=ON
table:BOOL=OFF
tcmalloc:BOOL=OFF
testing:BOOL=OFF
thread:BOOL=ON
tmva:BOOL=ON
tmva-cpu:BOOL=ON
tmva-gpu:BOOL=OFF
unuran:BOOL=OFF
vc:BOOL=OFF
vdt:BOOL=ON
veccore:BOOL=OFF
vecgeom:BOOL=OFF
winrtdebug:BOOL=OFF
x11:BOOL=OFF
xft:BOOL=ON
xml:BOOL=ON
xrootd:BOOL=OFF
xxHash_FOUND:BOOL=TRUE

After I run ROOT with /usr/local/root/bin/root it can normaly run, so that mean the installation is succeeded?

The important stuff is in the ... above.

You pointed CMake to the wrong directory, you need to give a ROOT source directory to configure.

Sorry for the wrong one.
This time I ‘cmake -L’ at /usr/local/root.

-- The C compiler identification is AppleClang 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ROOT default compression algorithm is lz4
-- Performing Test HAS_CXX11
-- Performing Test HAS_CXX11 - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found a Mac OS X System 10.14
-- Found a 64bit system
-- Found LLVM compiler collection
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Failed
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wshadow -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -std=c++11 -stdlib=libc++ 
-- Could NOT find ccache
CMake Error at cmake/modules/RootNewMacros.cmake:1073 (message):
  ROOT should be built as an out of source build, to keep the source
  directory clean.  Please create a extra build directory and run the command
  'cmake <path_to_source_dir>' in this newly created directory.  You have
  also to delete the directory CMakeFiles and the file CMakeCache.txt in the
  source directory.  Otherwise cmake will complain even if you run it from an
  out-of-source directory.
Call Stack (most recent call first):
  CMakeLists.txt:104 (ROOT_CHECK_OUT_OF_SOURCE_BUILD)


-- Configuring incomplete, errors occurred!
See also "/usr/local/root/CMakeFiles/CMakeOutput.log".
See also "/usr/local/root/CMakeFiles/CMakeError.log".
-- Cache values
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr/local
CMAKE_INVOKE:STRING=/usr/local/Cellar/cmake/3.12.2/bin/cmake  /usr/local/root
CMAKE_OSX_ARCHITECTURES:STRING=
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
CMAKE_OSX_SYSROOT:PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
afdsmgrd:BOOL=OFF
alien:BOOL=OFF
all:BOOL=OFF
arrow:BOOL=OFF
asimage:BOOL=ON
astiff:BOOL=ON
bonjour:BOOL=OFF
builtin_afterimage:BOOL=ON
builtin_cfitsio:BOOL=OFF
builtin_clang:BOOL=ON
builtin_davix:BOOL=OFF
builtin_fftw3:BOOL=OFF
builtin_freetype:BOOL=OFF
builtin_ftgl:BOOL=ON
builtin_gl2ps:BOOL=OFF
builtin_glew:BOOL=ON
builtin_gsl:BOOL=OFF
builtin_llvm:BOOL=ON
builtin_lz4:BOOL=OFF
builtin_lzma:BOOL=OFF
builtin_openssl:BOOL=OFF
builtin_pcre:BOOL=OFF
builtin_tbb:BOOL=OFF
builtin_unuran:BOOL=OFF
builtin_vc:BOOL=OFF
builtin_vdt:BOOL=OFF
builtin_veccore:BOOL=OFF
builtin_xrootd:BOOL=OFF
builtin_xxhash:BOOL=OFF
builtin_zlib:BOOL=OFF
castor:BOOL=ON
ccache:BOOL=OFF
cefweb:BOOL=OFF
clad:BOOL=ON
cling:BOOL=ON
clingtest:BOOL=OFF
cocoa:BOOL=ON
compression_default:STRING=lz4
coverage:BOOL=OFF
cuda:BOOL=OFF
cxx11:BOOL=ON
cxx14:BOOL=OFF
cxx17:BOOL=OFF
cxxmodules:BOOL=OFF
davix:BOOL=ON
dcache:BOOL=OFF
exceptions:BOOL=ON
explicitlink:BOOL=ON
fail-on-missing:BOOL=OFF
fftw3:BOOL=ON
fitsio:BOOL=ON
fortran:BOOL=OFF
gcctoolchain:PATH=
gdml:BOOL=ON
geocad:BOOL=OFF
gfal:BOOL=ON
globus:BOOL=OFF
gminimal:BOOL=OFF
gnuinstall:BOOL=OFF
gsl_shared:BOOL=OFF
gviz:BOOL=OFF
hdfs:BOOL=OFF
http:BOOL=ON
imt:BOOL=ON
jemalloc:BOOL=OFF
krb5:BOOL=OFF
ldap:BOOL=OFF
libcxx:BOOL=ON
macos_native:BOOL=OFF
mathmore:BOOL=ON
memory_termination:BOOL=OFF
memstat:BOOL=OFF
minimal:BOOL=OFF
minuit2:BOOL=OFF
monalisa:BOOL=OFF
mysql:BOOL=ON
odbc:BOOL=OFF
opengl:BOOL=ON
oracle:BOOL=ON
pch:BOOL=ON
pgsql:BOOL=ON
pyroot_experimental:BOOL=OFF
pythia6:BOOL=ON
pythia6_nolink:BOOL=OFF
pythia8:BOOL=ON
python:BOOL=ON
qt:BOOL=OFF
qt5web:BOOL=OFF
qtgsi:BOOL=OFF
r:BOOL=OFF
rfio:BOOL=OFF
roofit:BOOL=ON
root7:BOOL=OFF
rootbench:BOOL=OFF
roottest:BOOL=OFF
rpath:BOOL=OFF
runtime_cxxmodules:BOOL=OFF
shadowpw:BOOL=OFF
shared:BOOL=ON
soversion:BOOL=OFF
sqlite:BOOL=ON
ssl:BOOL=ON
table:BOOL=OFF
tcmalloc:BOOL=OFF
testing:BOOL=OFF
thread:BOOL=ON
tmva:BOOL=ON
tmva-cpu:BOOL=ON
tmva-gpu:BOOL=ON
unuran:BOOL=OFF
vc:BOOL=OFF
vdt:BOOL=ON
veccore:BOOL=OFF
vecgeom:BOOL=OFF
winrtdebug:BOOL=OFF
x11:BOOL=OFF
xft:BOOL=ON
xml:BOOL=ON
xrootd:BOOL=ON