I’m trying to build root. I downloaded it from the github repo and I tried compiling it. I create a “compile” folder inside the project and run cmake from there. However I get the following error:
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libRMySQL.so] Error 1
make[1]: *** [sql/mysql/CMakeFiles/RMySQL.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Following Failing to build ROOT I did: openssl
and it does open a openssl shell.
If I write: otool -L /usr/bin/openssl
I get:
/usr/lib/libssl.44.dylib (compatibility version 45.0.0, current version 45.1.0)
/usr/lib/libcrypto.42.dylib (compatibility version 43.0.0, current version 43.0.0)
/System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent (compatibility version 1.0.0, current version 31.200.1)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
I tried deleting CMakeCache.txt and CMakeFiles and did cmake again and do the make command but still same error.
On the cmake command I get this message:
-- Found OpenSSL: /usr/local/Cellar/openssl/1.0.2q/lib/libcrypto.dylib (found version "1.0.2q")
-- Looking for MySQL
-- Found MYSQL: /usr/local/Cellar/mysql/5.7.21/include/mysql
ROOT Version: GitHub repo 15/01/2019
Platform: Mac
Compiler: Not Provided
Full Cmake message:
cmake -Dpython=ON -Dminuit2=ON -Droofit=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/root -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python ..
-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/local/bin/git (found version "2.18.0")
-- ROOT default compression algorithm: zlib
-- 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: -std=c++11 -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 -Wall
-Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments
-pthread -stdlib=libc++
-- Looking for ZLib
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11")
-- Building freetype version 2.6.1 included in ROOT itself
-- Looking for PCRE
-- Found PCRE: /usr/local/include
-- Looking for LZMA
-- Found LZMA includes at /usr/local/include
-- Found LZMA library at /usr/local/lib/liblzma.dylib
-- Looking for xxHash
-- Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR)
-- xxHash not found. Switching on builtin_xxhash option
-- Looking for LZ4
-- Found LZ4: /usr/local/lib/liblz4.dylib (found version "1.8.3")
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
-- Found TIFF: /usr/local/lib/libTIFF.dylib (found version "4.0.10")
-- Found PNG: /usr/local/lib/libPng.dylib (found version "1.6.36")
-- Found JPEG: /usr/local/lib/libJPEG.dylib (found version "90")
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Found GSL: /usr/local/include (found suitable version "2.5", minimum
required is "1.10")
-- Looking for python
-- Found PythonInterp: /usr/bin/python (found version "2.7.10")
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.10")
-- Looking for numpy (python package)
-- Found NUMPY:
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include
(found version "1.8.0rc1")
-- Looking for OpenGL
-- Found OpenGL:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework
-- Looking for gl2ps
-- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR)
-- gl2ps not found. Switching on builtin_gl2ps option
-- Looking for LibXml2
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.0")
-- Found OpenSSL: /usr/local/Cellar/openssl/1.0.2q/lib/libcrypto.dylib
(found version "1.0.2q")
-- Looking for MySQL
-- Found MYSQL: /usr/local/Cellar/mysql/5.7.21/include/mysql
-- Looking for Oracle
-- Oracle not found.
-- Oracle: You can specify includes:
-DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
-- currently found includes:
-- Oracle: You can specify libs:
-DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
-- currently found libs:
ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
-- Oracle not found. Switching off oracle option
-- Looking for PostgreSQL
-- Found PostgreSQL: /usr/local/include
-- Looking for SQLite
-- Found Sqlite:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
-- Looking for Pythia6
-- Pythia6 not found. Switching off pythia6 option
-- Looking for Pythia8
-- Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY)
-- Pythia8 not found. Switching off pythia8 option
-- Looking for FFTW3
-- Found fftw3 includes at /usr/local/include
-- Found fftw3 library at /usr/local/lib/libfftw3.dylib
-- Looking for CFITSIO
-- Could NOT find CFITSIO (missing: CFITSIO_INCLUDE_DIR CFITSIO_LIBRARY)
-- CFITSIO not found. You can enable the option 'builtin_cfitsio' to
build the library internally'
-- For the time being switching off 'fitsio' option
-- Looking for XROOTD
-- Found Xrootd version num: 4.8.3 (setting -DROOTXRDVERS=400080003)
-- libXrdMain not found: xproofd will be a wrapper around
xrootd
-- include_dirs:
/usr/local/include/xrootd;/usr/local/include/xrootd/private
-- libraries:
/usr/local/lib/libXrdUtils.dylib;/usr/local/lib/libXrdClient.dylib;/usr/local/lib/libXrdCl.dylib
-- Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR
GFAL_LIBRARY)
-- GFAL library not found. Set variable GFAL_DIR to point to your gfal
installation
and the variable SRM_IFCE_DIR to the srm_ifce
installation
-- For the time being switching OFF 'gfal' option
-- Checking for module 'davix>=0.6.4'
-- Found davix, version 0.7.1
-- Looking for TBB
-- Found TBB: /usr/local (found version "2019.0")
-- Looking for VDT
-- Could NOT find VDT (missing: VDT_INCLUDE_DIR VDT_LIBRARY)
-- VDT not found. Ensure that the installation of VDT is in the
CMAKE_PREFIX_PATH
-- Switching ON 'builtin_vdt' option
-- Looking for BLAS for optional parts of TMVA
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for dgemm_
-- Looking for dgemm_ - found
-- Found BLAS:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Accelerate.framework
-- Enabled support for: asimage astiff builtin_afterimage builtin_clang
builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm
builtin_vdt builtin_xxhash clad cling cocoa davix exceptions
explicitlink fftw3 gdml http imt libcxx mathmore minuit2 mysql opengl
pch pgsql python roofit shared sqlite ssl thread tmva tmva-cpu
tmva-pymva vdt xml xrootd
-- The ASM compiler identification is AppleClang
-- Found assembler:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Found libtool -
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 -
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- LLVM host triple: x86_64-apple-darwin18.2.0
-- LLVM default target triple: x86_64-apple-darwin18.2.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- SysLibs: curses;/usr/lib/libz.dylib
-- Targeting X86
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.6~dev
-- Cling will look for C++ headers in
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1'
at runtime.
-- And if not found, will invoke:
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
' for them.
-- Performing Test __result
-- Performing Test __result - Failed
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Success
-- Performing Test CXX_HAS_Wno_conditional_uninitialized
-- Performing Test CXX_HAS_Wno_conditional_uninitialized - Success
Recording the git revision now
-- Performing Test C_HAS_Wno_strict_overflow
-- Performing Test C_HAS_Wno_strict_overflow - Success
-- Performing Test C_HAS_Wno_maybe_uninitialized
-- Performing Test C_HAS_Wno_maybe_uninitialized - Failed
-- Performing Test C_HAS_Wno_parentheses_equality
-- Performing Test C_HAS_Wno_parentheses_equality - Success
-- Looking for m
-- Looking for m - not found
-- Performing Test CXX_HAS_Wno_nonnull_compare
-- Performing Test CXX_HAS_Wno_nonnull_compare - Failed
-- Performing Test CXX_HAS_fno_strict_aliasing
-- Performing Test CXX_HAS_fno_strict_aliasing - Success
-- Performing Test CXX_HAS_Wno_parentheses_equality
-- Performing Test CXX_HAS_Wno_parentheses_equality - Success
-- Performing Test CXX_HAS_Wno_cast_function_type
-- Performing Test CXX_HAS_Wno_cast_function_type - Failed
-- Performing Test CXX_HAS_Wno_deprecated_register
-- Performing Test CXX_HAS_Wno_deprecated_register - Success
-- Performing Test CXX_HAS_Wno_register
-- Performing Test CXX_HAS_Wno_register - Success
-- Using TMVA-DNN with BLAS installation:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Accelerate.framework
-- Found GSL: /usr/local/include (found version "2.5")
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Failed
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Success
-- Performing Test found_stod_stringview
-- Performing Test found_stod_stringview - Failed
-- Performing Test found_stdapply
-- Performing Test found_stdapply - Failed
-- Performing Test found_stdinvoke
-- Performing Test found_stdinvoke - Failed
-- Performing Test found_stdindexsequence
-- Performing Test found_stdindexsequence - Failed
-- Performing Test found_attribute_always_inline
-- Performing Test found_attribute_always_inline - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/root/compile