Cern root install error for ubuntu


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Hello dear all!
I have a problem - i would like to install CERN ROOT for Linux Mint 18.04 and after run command: “./configure --prefix=/path/to/rootsys --etcdir=/path/to/etc/root && make && make install”
i have this error:
“I. -o cint/cint/src/dict/libstrm.o -c cint/cint/src/dict/libstrm.cxx
In file included from cint/cint/src/dict/libstrm.h:37:0,
from cint/cint/src/dict/libstrm.cxx:14:
cint/cint/lib/stream/iostrm.h:24:10: fatal error: iostream.h: no such file or directory
#include <iostream.h>
^~~~~~~~~~~~
compilation terminated.
Makefile:631: recipe for target ‘cint/cint/src/dict/libstrm.o’ failed
make: *** [cint/cint/src/dict/libstrm.o] Error 1”.
What i must do with this mistake?

Hi,

Which version of ROOT are you trying to build?
Recent versions of ROOT require to use CMake for configuration. Here is an instruction how to build ROOT: https://root.cern.ch/building-root

My version is root_v5.34.34.source

ROOT doesn’t support 5.34 for some years, we recomend you to use latest release 6.18.04 or any other latest ROOT6 version.

Try the head of the v5-34-00-patches branch (you may need to add “--enable-gsl-shared --disable-fitsio” when configuring it) for ROOT 5 or the newest ROOT 6 release.

thank you, i will try.

i took this version - root-6.09.02 and i tried biuilding on my machin.
But i have failed bilding with this mistake:
"
==> lib/libHist.so done
g++ -O2 -DNDEBUG -pipe -m64 -std=c++11 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -MMD -MP -o hist/unfold/src/TUnfoldDensity.o -c /home/andy/root-6.09.02/hist/unfold/src/TUnfoldDensity.cxx
g++ -O2 -DNDEBUG -pipe -m64 -std=c++11 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -pthread -MMD -MP -o hist/unfold/src/TUnfoldBinningXML.o -c /home/andy/root-6.09.02/hist/unfold/src/TUnfoldBinningXML.cxx
In file included from /home/andy/root-6.09.02/hist/unfold/src/TUnfoldBinningXML.cxx:123:0:
include/TUnfoldBinningXML.h:47:10: fatal error: TXMLNode.h: Нет такого файла или каталога
#include <TXMLNode.h>
^~~~~~~~~~~~
compilation terminated.
Makefile:723: recipe for target ‘hist/unfold/src/TUnfoldBinningXML.o’ failed
make: *** [hist/unfold/src/TUnfoldBinningXML.o] Error 1
"
What must i do now?
P.s. i build my root with /configure and this command(no cmake)^
./configure --prefix=/usr/local
make
make install

Hi,
To build ROOT you need to do next:

mkdir build_dir && cd build_dir
cmake /path/to/root/source/code
cmake --build . -- -j4

thank you, i will try now!

my mistake was repeated:
Root$ cmake /home/andy/root
/Root$ cmake --build . – -j4

Syntax Error: 0> /usr/include/c++/7/type_traits:93:
Error: Template class template not defined /usr/include/c++/7/type_traits:792:
Error: Template class template not defined /usr/include/c++/7/type_traits:840:
Error: Template class template not defined /usr/include/c++/7/type_traits:883:
Error: class,struct,union or type … not defined /usr/include/c++/7/type_traits:943:
Internal error: global function template arg type /usr/include/c++/7/type_traits:943:
Error: class,struct,union or type … not defined /usr/include/c++/7/type_traits:977:
Internal error: global function template arg type /usr/include/c++/7/type_traits:977:
Error: class,struct,union or type … not defined /usr/include/c++/7/type_traits:1094:
Internal error: global function template arg type /usr/include/c++/7/type_traits:1094:
Internal error: global function template arg type /usr/include/c++/7/type_traits:1381:
Error: class,struct,union or type __int128 not defined /usr/include/c++/7/type_traits:1871:
Error: class,struct,union or type … not defined /usr/include/c++/7/type_traits:2187:
Internal error: global function template arg type /usr/include/c++/7/type_traits:2187:
Error: Template class template not defined /usr/include/c++/7/type_traits:2204:
Error: Template class template not defined /usr/include/c++/7/type_traits:2290:
Error: Template class template not defined /usr/include/c++/7/type_traits:2309:
Error: class,struct,union or type … not defined /usr/include/c++/7/type_traits:2327:
Internal error: global function template arg type /usr/include/c++/7/type_traits:2327:
Error: class,struct,union or type … not defined /usr/include/c++/7/type_traits:2346:
Internal error: global function template arg type /usr/include/c++/7/type_traits:2346:
Error: Template class template not defined /usr/include/c++/7/type_traits:2433:
Error: Template class template not defined /usr/include/c++/7/type_traits:3109:
Error: Symbol bool is not defined in current scope /usr/include/c++/7/bits/atomic_base.h:244:
Error: Function alignof(bool) is not defined in current scope /usr/include/c++/7/bits/atomic_base.h:244:
Error: Invalid type ‘constexpr’ in declaration of ‘int _S_alignment’ /usr/include/c++/7/bits/atomic_base.h:244:
Syntax error /usr/include/c++/7/bits/atomic_base.h:246:
Error: unrecognized language construct /usr/include/c++/7/bits/atomic_base.h:246:
Error: unrecognized language construct /usr/include/c++/7/bits/atomic_base.h:249:
Error: Symbol default is not defined in current scope /usr/include/c++/7/bits/atomic_base.h:249:
Error: unrecognized language construct /usr/include/c++/7/bits/atomic_base.h:250:
Error: Symbol default is not defined in current scope /usr/include/c++/7/bits/atomic_base.h:250:
Error: Symbol delete is not defined in current scope /usr/include/c++/7/bits/atomic_base.h:251:
Error: Symbol delete is not defined in current scope /usr/include/c++/7/bits/atomic_base.h:252:
Error: unrecognized language construct /usr/include/c++/7/bits/atomic_base.h:253:
Error: Symbol delete is not defined in current scope /usr/include/c++/7/bits/atomic_base.h:253:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:380:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:401:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:420:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:462:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:506:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:519:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:529:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:539:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:549:
Error: Redefinition of default argument /usr/include/c++/7/bits/atomic_base.h:559:
Error: abstract class object ‘__atomic_base _M_base’ declared /usr/include/c++/7/atomic:66:
Error: unrecognized language construct /usr/include/c++/7/atomic:69:
Error: Symbol default is not defined in current scope /usr/include/c++/7/atomic:69:
Error: unrecognized language construct /usr/include/c++/7/atomic:70:
Error: Symbol default is not defined in current scope /usr/include/c++/7/atomic:70:
Error: Symbol delete is not defined in current scope /usr/include/c++/7/atomic:71:
Error: Symbol delete is not defined in current scope /usr/include/c++/7/atomic:72:
Error: unrecognized language construct /usr/include/c++/7/atomic:73:
Error: Symbol delete is not defined in current scope /usr/include/c++/7/atomic:73:
Error: Redefinition of default argument /usr/include/c++/7/atomic:107:
Error: Redefinition of default argument /usr/include/c++/7/atomic:115:
Error: Redefinition of default argument /usr/include/c++/7/atomic:124:
Error: Redefinition of default argument /usr/include/c++/7/atomic:144:
Error: Redefinition of default argument /usr/include/c++/7/atomic:164:
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/TKDTreeBinning.cxx.o
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/TMath.cxx.o
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/TRandom.cxx.o
Error: Missing one of ’
;:=±)(&^%#@!~'"\|][}{/?.>,<' expected at or after line 42984. Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984: Error: Missing one of ' ;:=+-)(*&^%#@!~’"|][}{/?.>,<’ expected at or after line 42984.
Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984:
Error: Missing one of ’
;:=±)(
&^%#@!~'"\|][}{/?.>,<' expected at or after line 42984. Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984: Error: Missing one of ' ;:=+-)(*&^%#@!~’"|][}{/?.>,<’ expected at or after line 42984.
Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984:
Error: Missing one of ’
;:=±)(&^%#@!~'"\|][}{/?.>,<' expected at or after line 42984. Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984: Error: Missing one of ' ;:=+-)(*&^%#@!~’"|][}{/?.>,<’ expected at or after line 42984.
Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984:
Error: Missing one of ’
;:=±)(
&^%#@!~'"\|][}{/?.>,<' expected at or after line 42984. Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984: Error: Missing one of ' ;:=+-)(*&^%#@!~’"|][}{/?.>,<’ expected at or after line 42984.
Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984:
Error: Missing one of ’
;:=±)(*&^%#@!~'"\|][}{/?.>,<' expected at or after line 42984. Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984: Error: Missing one of ' ;:=+-)(*&^%#@!~’"|][}{/?.>,<’ expected at or after line 42984.
Error: Unexpected end of file (G__fgetstream():2) /usr/include/c++/7/atomic:42984:
Error: Unexpected end of file (G__fgetc()) /usr/include/c++/7/atomic:42984:
cint/reflex/CMakeFiles/ReflexDict.dir/build.make:90: recipe for target ‘cint/reflex/G__Reflex.cxx’ failed
make[2]: *** [cint/reflex/G__Reflex.cxx] Error 1
make[2]: *** Удаляется файл «cint/reflex/G__Reflex.cxx»
CMakeFiles/Makefile2:2461: recipe for target ‘cint/reflex/CMakeFiles/ReflexDict.dir/all’ failed
make[1]: *** [cint/reflex/CMakeFiles/ReflexDict.dir/all] Error 2
make[1]: *** Ожидание завершения заданий…
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/TRandom1.cxx.o
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/TRandom2.cxx.o
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/TRandom3.cxx.o
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/TStatistic.cxx.o
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/TVirtualFitter.cxx.o
[ 36%] Building CXX object math/mathcore/CMakeFiles/MathCore.dir/src/UnBinData.cxx.o
[ 36%] Linking CXX shared library …/…/lib/libMathCore.so
[ 36%] Built target MathCore
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2

there is such error now, what is this?

andy@andy:~/Root$ root
Couldn’t find font “-adobe-helvetica-medium-r---10-----*-iso8859-1”,
trying “fixed”. Please fix your system so helvetica can be found,
this font typically is in the rpm (or pkg equivalent) package
XFree86-[75,100]dpi-fonts or fonts-xorg-[75,100]dpi.
/usr/local/bin/root.exe: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory

Hello, my dear friends!
I built root on my machine.
My mistake was this/next: i did not set “Build Prerequisites” from this page: https://root.cern.ch/build-prerequisites

ROOT built after installation this packages for Ubuntu:

Use sudo apt-get install _package_ or use the graphical “Synaptic Package Manager” program.

Required packages:
sudo apt-get install git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev
libxft-dev libxext-dev

Optional packages:
sudo apt-get install gfortran libssl-dev libpcre3-dev
xlibmesa-glu-dev libglew1.5-dev libftgl-dev
libmysqlclient-dev libfftw3-dev libcfitsio-dev
graphviz-dev libavahi-compat-libdnssd-dev
libldap2-dev python-dev libxml2-dev libkrb5-dev
libgsl0-dev libqt4-dev

After that i run this command:
mkdir build_dir && cd build_dir
cmake /path/to/root/source/code
cmake --build . – -j4

and ROOT built!
Thank you very mach!

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