Problem with installation

Please, can anybody help me with my problem?


Please attach the files mentioned in the error ( LZMA-configure.*.log )

As I understand it, this is a file that error message describe.


Something wrong with the C compiler or its flags. I would need more information (but please do not use images to attach text). What platform you are? and version of ROOT? In a clean build area can you configure again with cmake and attach the output of the command. Thanks.

Hi,

I’ve got the same problem on my OSX 10.12.4 with Xcode 8.3.2.
Here’s the output of the configure step:

cmake_build $ cmake -DCMAKE_INSTALL_PREFIX=../install -D roofit:BOOL=ON -D unuran:BOOL=ON -D minuit2:BOOL=ON -D CMAKE_CXX_FLAGS=-I/usr/local/opt/openssl/include -D CMAKE_LD_FLAGS=-L/usr/local/opt/openssl/lib ../
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- 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
-- The Fortran compiler identification is GNU 6.2.0
-- Checking whether Fortran compiler has -isysroot
-- Checking whether Fortran compiler has -isysroot - yes
-- Checking whether Fortran compiler supports OSX deployment target flag
-- Checking whether Fortran compiler supports OSX deployment target flag - yes
-- Check for working Fortran compiler: /usr/local/bin/gfortran
-- Check for working Fortran compiler: /usr/local/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/local/bin/gfortran supports Fortran 90
-- Checking whether /usr/local/bin/gfortran supports Fortran 90 -- yes
-- 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.12
-- Found a 64bit system
-- Found LLVM compiler collection
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags: -I/usr/local/opt/openssl/include -m64 -pipe -W -Wshadow -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -std=c++11 -O2 -g -DNDEBUG
-- Looking for ZLib
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.8") 
-- Looking for Unuran
-- Could NOT find UNURAN (missing:  UNURAN_LIBRARY UNURAN_INCLUDE_DIR) 
-- Unuran not found. Switching on builtin_unuran option
-- Building freetype version 2.6.1 included in ROOT itself
-- Looking for PCRE
-- Found PCRE: /usr/local/include  
-- Looking for LZMA
-- LZMA not found. Switching on builtin_lzma option
-- Building LZMA version 5.2.1 included in ROOT itself
-- Could NOT find GIF (missing:  GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing:  TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Found PNG: /usr/local/lib/libpng.dylib (found version "1.6.25") 
-- Could NOT find JPEG (missing:  JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- FindGSL: gsl-config not found.
-- GSL not found. Set variable GSL_DIR to point to your GSL installation
--                Alternatively, you can also enable the option 'builtin_gsl' to build the GSL libraries internally'
--                For the time being switching OFF 'mathmore' option
-- Looking for Python
-- Found PythonInterp: /usr/local/bin/python (found version "2.7.12") 
-- Found Python interpreter version 2.7
-- Found PythonLibs: /usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib (found version "2.7.12") 
-- Found NUMPY: /usr/local/lib/python2.7/site-packages/numpy/core/include (found version "1.12.1") 
-- Looking for OpenGL
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.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 Graphviz
-- Could NOT find GRAPHVIZ (missing:  GRAPHVIZ_INCLUDE_DIR GRAPHVIZ_cdt_LIBRARY GRAPHVIZ_gvc_LIBRARY GRAPHVIZ_graph_LIBRARY GRAPHVIZ_pathplan_LIBRARY) 
-- Graphviz not found. Switching off gviz option
-- Looking for Bonjour
-- Checking whether Bonjour/Avahi is supported
-- Looking for Kerberos 5
-- Found KRB5: /usr/lib/libkrb5.dylib  
-- Looking for LibXml2
-- Found LibXml2: /usr/lib/libxml2.dylib (found version "2.9.4") 
-- Looking for OpenSSL
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing:  OPENSSL_INCLUDE_DIR) 
-- OpenSSL not found. Switching off ssl option
-- Looking for Castor
-- Could NOT find CASTOR (missing:  CASTOR_shift_LIBRARY CASTOR_INCLUDE_DIR) 
-- Castor not found. Switching off castor option
-- Looking for RFIO
-- Could NOT find CASTOR (missing:  CASTOR_shift_LIBRARY CASTOR_INCLUDE_DIR) 
-- Castor or DPM not found. Switching off rfio option
-- Looking for MySQL
-- Could NOT find MYSQL (missing:  MYSQL_INCLUDE_DIR MYSQL_LIBRARIES) 
-- MySQL not found. Switching off mysql option
-- 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 ODBC
-- Could NOT find ODBC (missing:  ODBC_INCLUDE_DIR) 
-- ODBC not found. Switching off odbc option
-- Looking for PostgreSQL
-- Could NOT find PostgreSQL (missing:  POSTGRESQL_INCLUDE_DIR) 
-- PostgreSQL not found. Switching off pgsql option
-- Looking for SQLite
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.1") 
-- Found Sqlite: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.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
-- Support Shadow password not found. Switching off shadowpw option
-- Alien API not found. Set variable ALIEN_DIR to point to your Alien installation
-- For the time being switching OFF 'alien' option
-- Monalisa not found. Set variable MONALISA_DIR to point to your Monalisa installation
-- For the time being switching OFF 'monalisa' option
-- Looking for XROOTD
-- XROOTD not found. Set environment variable XRDSYS to point to your XROOTD installation
--                   Alternatively, you can also enable the option 'builtin_xrootd' to build XROOTD internally
--                   For the time being switching OFF 'xrootd' option
-- 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
-- Could NOT find DCAP (missing:  DCAP_INCLUDE_DIR DCAP_LIBRARY) 
-- dCap library not found. Set variable DCAP_DIR to point to your dCache installation
-- For the time being switching OFF 'dcache' option
-- Found LDAP: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include  
-- Could NOT find CHIRP (missing:  CHIRP_INCLUDE_DIR CHIRP_LIBRARY) 
-- chirp library not found. Set variable CHIRP_DIR to point to your chirp installation
-- For the time being switching OFF 'chirp' option
-- Could NOT find HDFS (missing:  HDFS_INCLUDE_DIR HDFS_LIBRARY) 
-- hdfs library not found. Set variable HDFS_DIR to point to your hdfs installation
-- For the time being switching OFF 'hdfs' option
-- Looking for BLAS for optional parts of TMVA
-- Looking for Fortran dgemm
-- Looking for Fortran dgemm - found
-- >>> Option 'glite' not implemented yet! Signal your urgency to pere.mato@cern.ch
-- >>> Option 'sapdb' not implemented yet! Signal your urgency to pere.mato@cern.ch
-- >>> Option 'srp' not implemented yet! Signal your urgency to pere.mato@cern.ch
-- Enabled support for:  asimage astiff bonjour builtin_afterimage builtin_ftgl builtin_freetype builtin_gl2ps builtin_glew builtin_unuran builtin_lzma builtin_llvm cxx11 cling cocoa exceptions explicitlink fftw3 fortran genvector krb5 ldap memstat minuit2 opengl pch python roofit shared sqlite thread tmva unuran vdt xml
-- The ASM compiler identification is AppleClang
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Found libtool - /usr/bin/libtool
-- Target triple: x86_64-apple-darwin16.5.0
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Sphinx disabled.
-- Go bindings disabled.
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing:  OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Clang version: 3.9.0
-- Cling version (from VERSION file): ROOT_0.4~dev
-- Cling will look for C++ headers in '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../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 CXX_HAS_Wno_shadow
-- Performing Test CXX_HAS_Wno_shadow - Success
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Success
-- 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 CXX_HAS_fno_strict_aliasing
-- Performing Test CXX_HAS_fno_strict_aliasing - Success
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Failed
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Failed
-- Performing Test found_stdexpstringview
-- Performing Test found_stdexpstringview - 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
Running /cern/root/v6-08-06/build/unix/compiledata.sh
Making include/compiledata.h
-- Configuring done
-- Generating done
-- Build files have been written to: /cern/root/v6-08-06/cmake_build

This is /cern/root/v6-08-06/cmake_build/LZMA-prefix/src/LZMA-stamp/LZMA-configure-out.log

XZ Utils 5.2.1

System type:

Configure options:


Initializing Automake:

and /cern/root/v6-08-06/cmake_build/LZMA-prefix/src/LZMA-stamp/LZMA-configure-err.log

configure: error: in `/cern/root/v6-08-06/cmake_build/LZMA-prefix/src/LZMA':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Thanks!

Maurizio

Was this ever resolved? I have this problem as well. Thanks!

Well, in case anyone finds this and needs help - what worked for me was updating command line tools in xcode. My xcode version had been updated without command line tools being updated. As a further difficulty, the command xcode-select --install, which usually works to install command line tools, gave me a server error. To circumvent this, you can go directly to developer.apple.com/downloads and find the appropriate version of command line tools, download the .dmg file, and install it manually. After I did this, I reconfigured and rebuilt and it worked.

Excellent! I had the same problem on a MacOS 10.13.3 and root6, beautifully solved by updating the command line tools

Thanks!