I need to install Root on Ubuntu 16.04. I don’t need any particular version but i need to install it on this system. I read that root might have problems with the gcc version related to ubuntu 16 (which i think it’s 5.3.1).
Can someone help me by giving me a set of commands or instructions to do this?
I try using instructions given in other discussions but it doesn’t work.
I got the following output from the command cmake -D…etc :
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /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: /usr/bin/c++
-- Check for working CXX compiler: /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 unknown
-- Found GCC. Major version 5, minor version 4
-- Performing Test CXX_SUPPORTS_OLD_ABI
-- Performing Test CXX_SUPPORTS_OLD_ABI - Success
-- c++11 mode requested but superseded by request for c++14 mode
-- Performing Test HAS_CXX14
-- Performing Test HAS_CXX14 - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found a 32bit system
-- Found GNU compiler collection
-- ROOT Platform: linux
-- ROOT Architecture: linux
-- Build Type: RelWithDebInfo
-- Compiler Flags: -D_GLIBCXX_USE_CXX11_ABI=0 -pipe -m32 -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++14 -Wno-deprecated-declarations -O2 -g -DNDEBUG
-- Looking for ZLib
-- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.8")
-- Looking for Freetype
-- Found Freetype: /usr/lib/i386-linux-gnu/libfreetype.so
-- Looking for PCRE
-- PCRE not found. Switching on builtin_pcre option
-- Looking for LZMA
-- LZMA not found. Switching on builtin_lzma option
-- Building LZMA version 5.2.1 included in ROOT itself
-- Looking for X11
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- X11_INCLUDE_DIR: /usr/include
-- X11_LIBRARIES: /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- X11_Xpm_INCLUDE_PATH: /usr/include
-- X11_Xpm_LIB: /usr/lib/i386-linux-gnu/libXpm.so
-- X11_Xft_INCLUDE_PATH: /usr/include
-- X11_Xft_LIB: /usr/lib/i386-linux-gnu/libXft.so
-- X11_Xext_INCLUDE_PATH:
-- X11_Xext_LIB: /usr/lib/i386-linux-gnu/libXext.so
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Found PNG: /usr/lib/i386-linux-gnu/libpng.so (found version "1.2.54")
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- 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/bin/python (found version "2.7.12")
-- Found Python interpreter version 2.7
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
-- Python not found. Switching off python option
-- Looking for OpenGL
-- Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
-- OpenGL (with GLU) not found. Switching off opengl 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 Qt4
qmake: could not exec '/usr/lib/i386-linux-gnu/qt4/bin/qmake': No such file or directory
-- Found unsuitable Qt version "" from NOTFOUND
-- Qt4 not found. Switching off qt/qtgsi option
-- Looking for Bonjour
-- Checking whether Bonjour/Avahi is supported
-- Bonjour not found. Switching off bonjour option
-- Looking for Kerberos 5
-- Could NOT find KRB5 (missing: KRB5_LIBRARY KRB5_INCLUDE_DIR)
-- Kerberos 5 not found. Switching off krb5 option
-- Looking for LibXml2
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- LibXml2 not found. Switching off xml option
-- 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_LIBRARIES 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/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_LIBRARY)
-- ODBC not found. Switching off odbc option
-- Looking for PostgreSQL
-- Could NOT find PostgreSQL (missing: POSTGRESQL_INCLUDE_DIR POSTGRESQL_LIBRARY)
-- PostgreSQL not found. Switching off pgsql option
-- Looking for SQLite
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Could NOT find Sqlite (missing: SQLITE_INCLUDE_DIR SQLITE_LIBRARIES)
-- SQLite not found. Switching off sqlite option
-- Looking for Pythia6
-- Pythia6 not found. Switching off pythia6 option
-- Looking for FFTW3
-- FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation
-- Alternatively, you can also enable the option 'builtin_fftw3' to build FFTW3 internally'
-- For the time being switching OFF 'fftw3' option
-- 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
-- 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
-- Could NOT find LDAP (missing: LDAP_INCLUDE_DIR LDAP_LIBRARY)
-- ldap library not found. Set variable LDAP_DIR to point to your ldap installation
-- For the time being switching OFF 'ldap' option
-- Could NOT find FTGL (missing: FTGL_INCLUDE_DIR FTGL_LIBRARY)
-- ftgl library not found. Set variable FTGL_ROOT_DIR to point to your installation
-- For the time being switching ON 'builtin_ftgl' option
-- 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
-- Could NOT find OCC (missing: OCC_INCLUDE_DIR OCC_TKPrim_LIBRARY OCC_TKBRep_LIBRARY OCC_TKOffset_LIBRARY OCC_TKGeomBase_LIBRARY OCC_TKShHealing_LIBRARY OCC_TKTopAlgo_LIBRARY OCC_TKSTEP_LIBRARY OCC_TKG2d_LIBRARY OCC_TKBool_LIBRARY OCC_TKBO_LIBRARY OCC_TKXCAF_LIBRARY OCC_TKXDESTEP_LIBRARY OCC_TKLCAF_LIBRARY OCC_TKernel_LIBRARY OCC_TKXSBase_LIBRARY OCC_TKG3d_LIBRARY OCC_TKMath_LIBRARY)
-- OpenCascade libraries not found. Set variable CASROOT to point to your OpenCascade installation
-- For the time being switching OFF 'geocad' option
-- >>> 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 builtin_afterimage builtin_ftgl builtin_pcre builtin_lzma builtin_llvm cxx14 cling exceptions explicitlink fortran gdml genvector http memstat minuit2 pch roofit root7 shadowpw shared soversion table thread tmva unuran vc vdt xft x11
-- Target triple: i686-pc-linux-gnu
-- 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
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- Clang version: 3.7.0
-- Performing Test CXX_HAS_fno_rtti
-- Performing Test CXX_HAS_fno_rtti - Success
-- Detected Compiler: GCC 5.4.0
-- Performing Test check_c_compiler_flag__Wundef
-- Performing Test check_c_compiler_flag__Wundef - Success
-- Performing Test check_cxx_compiler_flag__Wundef
-- Performing Test check_cxx_compiler_flag__Wundef - Success
-- Performing Test check_c_compiler_flag__Wold_style_cast
-- Performing Test check_c_compiler_flag__Wold_style_cast - Failed
-- Performing Test check_cxx_compiler_flag__Wold_style_cast
-- Performing Test check_cxx_compiler_flag__Wold_style_cast - Success
-- Performing Test check_c_compiler_flag__Wno_variadic_macros
-- Performing Test check_c_compiler_flag__Wno_variadic_macros - Success
-- Performing Test check_cxx_compiler_flag__Wno_variadic_macros
-- Performing Test check_cxx_compiler_flag__Wno_variadic_macros - Success
-- Performing Test check_cxx_compiler_flag__Wabi
-- Performing Test check_cxx_compiler_flag__Wabi - Success
-- Performing Test check_cxx_compiler_flag__fabi_version_0
-- Performing Test check_cxx_compiler_flag__fabi_version_0 - Success
-- Performing Test Vc_VOID_PTR_IS_64BIT
-- Performing Test Vc_VOID_PTR_IS_64BIT - Failed
-- Performing Test check_cxx_compiler_flag__mfpmath_sse
-- Performing Test check_cxx_compiler_flag__mfpmath_sse - Success
-- Performing Test check_cxx_compiler_flag__ffp_contract_fast
-- Performing Test check_cxx_compiler_flag__ffp_contract_fast - Success
-- target changed from "" to "auto"
-- Detected CPU: generic
-- Performing Test check_cxx_compiler_flag__march_generic
-- Performing Test check_cxx_compiler_flag__march_generic - Failed
-- Performing Test check_cxx_compiler_flag__msse2
-- Performing Test check_cxx_compiler_flag__msse2 - Success
-- Performing Test check_cxx_compiler_flag__msse3
-- Performing Test check_cxx_compiler_flag__msse3 - Success
-- Looking for pmmintrin.h
-- Looking for pmmintrin.h - found
-- Performing Test check_cxx_compiler_flag__mno_ssse3
-- Performing Test check_cxx_compiler_flag__mno_ssse3 - Success
-- Performing Test check_cxx_compiler_flag__mno_sse4_1
-- Performing Test check_cxx_compiler_flag__mno_sse4_1 - Success
-- Performing Test check_cxx_compiler_flag__mno_sse4_2
-- Performing Test check_cxx_compiler_flag__mno_sse4_2 - Success
-- Performing Test check_cxx_compiler_flag__mno_sse4a
-- Performing Test check_cxx_compiler_flag__mno_sse4a - Success
-- Performing Test check_cxx_compiler_flag__mno_avx
-- Performing Test check_cxx_compiler_flag__mno_avx - Success
-- Performing Test check_cxx_compiler_flag__mno_xop
-- Performing Test check_cxx_compiler_flag__mno_xop - Success
-- Performing Test check_cxx_compiler_flag__mno_fma4
-- Performing Test check_cxx_compiler_flag__mno_fma4 - Success
-- Performing Test check_cxx_compiler_flag__mssse3
-- Performing Test check_cxx_compiler_flag__mssse3 - Success
-- Performing Test check_cxx_compiler_flag__msse4_1
-- Performing Test check_cxx_compiler_flag__msse4_1 - Success
-- Performing Test check_cxx_compiler_flag__mavx
-- Performing Test check_cxx_compiler_flag__mavx - Success
-- Performing Test check_cxx_compiler_flag__mxop
-- Performing Test check_cxx_compiler_flag__mxop - Success
-- Performing Test check_cxx_compiler_flag__mfma4
-- Performing Test check_cxx_compiler_flag__mfma4 - Success
-- Performing Test check_cxx_compiler_flag__xAVX
-- Performing Test check_cxx_compiler_flag__xAVX - 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
Running /home/francesco/root-6.06.08/build/unix/compiledata.sh
Making include/compiledata.h
-- Configuring done
-- Generating done
-- Build files have been written to: /home/francesco/root-build
I see that something failed…
What’s wrong?
Looking at the line “-- Enabled support for:”, I can see that it’s fine but I guess you really want some more “features” (e.g. “fftw3” and “mathmore”).
I think you should run:
sudo apt-get build-dep root-system
and then configure your new ROOT from scratch again.