Trying to Install ROOT and getting errors

Hi,

I’m trying to install root on Ubuntu and I get this error when using $ cmake --build:
Makefile:151: recipe for target 'all' failed.

Before that:

CMake Error at /home/cauchy/Documents/Physics Project/ROOT/LZMA-prefix/src/LZMA-stamp/LZMA-build-RelWithDebInfo.cmake:16 (message):
  Command failed: 2

   '/usr/bin/make'

  See also

    /home/cauchy/Documents/Physics Project/ROOT/LZMA-prefix/src/LZMA-stamp/LZMA-build-*.log


CMakeFiles/LZMA.dir/build.make:111: recipe for target 'LZMA-prefix/src/LZMA-stamp/LZMA-build' failed
make[2]: *** [LZMA-prefix/src/LZMA-stamp/LZMA-build] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/LZMA.dir/all' failed
make[1]: *** [CMakeFiles/LZMA.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Before, when using $ cmake path/to/source, I get this output:

-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.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
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - /usr/bin/f95
-- The Fortran compiler identification is GNU 7.2.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran  -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 -- yes
-- Found GCC. Major version 7, minor version 7
-- 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 - 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 64bit system
-- Found GNU compiler collection
-- Performing Test GLIBCXX_USE_CXX11_ABI
-- Performing Test GLIBCXX_USE_CXX11_ABI - Success
-- ROOT Platform: linux
-- ROOT Architecture: linuxx8664gcc
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -m64  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -fPIC -pthread -std=c++11 -O2 -g -DNDEBUG
-- Looking for ZLib
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Looking for Unuran
-- Could NOT find UNURAN (missing: UNURAN_LIBRARY UNURAN_INCLUDE_DIR) 
-- Unuran not found. Switching on builtin_unuran option
-- Looking for Freetype
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.8.0") 
-- Looking for PCRE
-- Found PCRE: /usr/include  
-- Looking for LZMA
-- LZMA not found. Switching on builtin_lzma option
-- Building LZMA version 5.2.1 included in ROOT itself
-- Looking for LZ4
-- LZ4 not found. Switching on builtin_lz4 option
-- Building LZ4 version v1.7.5 included in ROOT itself
-- Looking for X11
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-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/x86_64-linux-gnu/libX11.so
-- X11_INCLUDE_DIR: /usr/include
-- X11_LIBRARIES: /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- X11_Xpm_INCLUDE_PATH: /usr/include
-- X11_Xpm_LIB: /usr/lib/x86_64-linux-gnu/libXpm.so
-- X11_Xft_INCLUDE_PATH: /usr/include
-- X11_Xft_LIB: /usr/lib/x86_64-linux-gnu/libXft.so
-- X11_Xext_INCLUDE_PATH: 
-- X11_Xext_LIB: /usr/lib/x86_64-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/x86_64-linux-gnu/libpng.so (found version "1.6.34") 
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) 
-- Building AfterImage library included in ROOT itself
-- Looking for GSL
-- Found GSL: /usr/include (found suitable version "2.4", minimum required is "1.10") 
-- Looking for Python
-- Found PythonInterp: /usr/bin/python (found version "2.7.14") 
-- Found Python interpreter version 2.7
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.14") 
-- Looking for OpenGL
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Looking for gl2ps
-- Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR) 
-- gl2ps not found. Switching on builtin_gl2ps option
-- Looking for Graphviz
-- Found GRAPHVIZ: /usr/include  
-- Looking for Bonjour
-- Checking whether Bonjour/Avahi is supported
-- Looking for Kerberos 5
-- Found KRB5: /usr/lib/x86_64-linux-gnu/libkrb5.so  
-- Looking for LibXml2
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.4") 
-- Looking for OpenSSL
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g") 
-- 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
-- Found MYSQL: /usr/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 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 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/include
-- Found fftw3 library at /usr/lib/x86_64-linux-gnu/libfftw3.so
-- Looking for CFITSIO
-- Found CFITSIO: /usr/include  
-- Found CFITSIO version: 3.41
-- 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: /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 DAVIX
-- Could NOT find DAVIX (missing: DAVIX_INCLUDE_DIR DAVIX_LIBRARY) 
-- Davix not found. You can enable the option 'builtin_davix' to build the library internally'
--                  For the time being switching off 'davix' option
-- Looking for TBB
-- Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR TBB_LIBRARY) 
-- TBB not found. Switching on builtin_tbb option
-- Performing Test CXX_HAS_mno_rtm
-- Performing Test CXX_HAS_mno_rtm - Success
-- Looking for BLAS for optional parts of TMVA
-- A library with BLAS API not found. Please specify library location.
-- >>> 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_gl2ps builtin_glew builtin_llvm builtin_lzma builtin_lz4 builtin_tbb builtin_unuran cling cxx11 exceptions explicitlink fftw3 fitsio fortran genvector gviz imt krb5 ldap mathmore memstat mysql opengl pch python shadowpw shared ssl thread tmva x11 xft xml
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include  
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen 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.
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Could NOT find Z3 (missing: Z3_LIBRARIES Z3_INCLUDE_DIR) (Required is at least version "4.5")
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.5~dev
-- Cling will look for C++ headers in '/usr/include/c++/7:/usr/include/x86_64-linux-gnu/c++/7:/usr/include/c++/7/backward' at runtime.
-- And if not found, will invoke: 'x86_64-linux-gnu-g++-7' for them.
-- Performing Test CXX_HAS_Wno_maybe_uninitialized
-- Performing Test CXX_HAS_Wno_maybe_uninitialized - 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 - Success
-- Performing Test C_HAS_Wno_parentheses_equality
-- Performing Test C_HAS_Wno_parentheses_equality - Success
-- Performing Test CXX_HAS_Wno_deprecated_declarations
-- Performing Test CXX_HAS_Wno_deprecated_declarations - Success
-- 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
-- TMVA: Deactivate PyMVA because numpy is not found
-- Performing Test found_setresuid
-- Performing Test found_setresuid - Success
-- Performing Test found_stdstringview
-- Performing Test found_stdstringview - Failed
-- Performing Test found_stdexpstringview
-- Performing Test found_stdexpstringview - Failed
-- Performing Test found_stdapply
-- Performing Test found_stdapply - Failed
-- Performing Test found_stdinvoke
-- Performing Test found_stdinvoke - Failed
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 114: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 115: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 116: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 117: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 118: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 119: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 121: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 126: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 130: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 131: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 132: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 133: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 134: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 135: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 136: ${COMPILEDATA}.tmp: ambiguous redirect
/home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh: line 139: [: /home/cauchy/Documents/Physics: binary operator expected
Running /home/cauchy/Documents/Physics Project/root-6.11.02/build/unix/compiledata.sh
Making /home/cauchy/Documents/Physics Project/ROOT/include/compiledata.h
mv: target 'Project/ROOT/include/compiledata.h' is not a directory
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cauchy/Documents/Physics Project/ROOT

I am not sure what the failures means and what to do with this information in order to install ROOT. Will be thankful for any help.

What shell are you using? Which version of Ubuntu?

Hi,

Probably, you should try to install ROOT in directory without space in the name.
In your case it is “Physics Project”

Regards,
Sergey

1 Like

I use terminal. Ubuntu 17.10, but when I updated from 16.04 to 17.04 with ROOT already installed, I had no problems. Due to other problems, I had to reinstall Ubuntu and decided to try 17.10 and now I get these errors.

linev - seems like implementing your advice solved the issue. Much appreciated!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.