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.
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?
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.
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.
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.
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.
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