Release 5.32.03 on Ubuntu 12.04

Dear all,
I tried to install the version 5.32.03 on Ubuntu 12.04, and I have several problems. I can’t run the codes.
Initially, not all libraries are loaded, then I manually loaded with
gSystem-> Load (“lib …”)
and I get:

root [6] gSystem -> ListLibraries ()

Loaded shared libraries

/ opt/ROOT/v5.32.03/lib/root/libCint.so
/ opt/ROOT/v5.32.03/lib/root/libCore.so
/ opt/ROOT/v5.32.03/lib/root/libRint.so
/ opt/ROOT/v5.32.03/lib/root/libMathCore.so
/ opt/ROOT/v5.32.03/lib/root/libMatrix.so
/ opt/ROOT/v5.32.03/lib/root/libHist.so
/ opt/ROOT/v5.32.03/lib/root/libThread.so
/ opt/ROOT/v5.32.03/lib/root/libRIO.so
/ opt/ROOT/v5.32.03/lib/root/libGraf.so
/ opt/ROOT/v5.32.03/lib/root/libGpad.so
/ opt/ROOT/v5.32.03/lib/root/libGui.so
/ opt/ROOT/v5.32.03/lib/root/libGX11.so

12 libraries loaded

Now, when I try to run some tutorials, for example “gerrors.C”, I get the following message.

root [7] .x gerrors.C
Warning in TCanvas::Constructor: Deleting canvas with same name: c1
Warning in TCanvas::ResizePad: c1 width changed from 0 to 10

Warning in TCanvas::ResizePad: c1 height changed from 0 to 10

root [8]

Someone could kindly help me?
Thanks,
Gianpaolo.

You didn’t write how you “installed” ROOT … and it seems to me that something is wrong in there …
In general, you have two choices:

  1. use my installation instructions (ROOT’s “etcdir” is automatically set to “${ROOTSYS}/etc”): [url]Installing ROOT from Source
  2. configure your ROOT adding “–prefix=/Where/You/Want/To/Install/It --etcdir=/Where/You/Want/To/Install/It/etc/root” (if you do not set “etcdir”, it will default to “/etc/root”, regardless of what your “prefix” is)
    See also:
    [url]ROOT in SL 6.1
    [url]ROOT 5.32/00 support
    [url]Updating to new Root versions
    [url]Compiling root from source overheats certain computers
    [url]ROOTSYS and linux distribution installation

Hi,
I have installed ROOT as follows:
I downloaded the source "root_v5.32.03.source.tar.gz"
and then:

cd root
. /configure
. /configure --prefix =/opt/ROOT/v5.32.03
make
make install

Hi,
I can’t solve my problem. Can you help me?

Try (build it in “/tmp/ROOT/root”, install it into “/opt/ROOT/v5-34-00-patches”) … cd /tmp rm -rf ROOT mkdir ROOT cd ROOT svn co http://root.cern.ch/svn/root/branches/v5-34-00-patches root cd root export ROOTSYS=/opt/ROOT/v5-34-00-patches rm -rf ${ROOTSYS} ./configure --enable-explicitlink --enable-soversion --all make make install cd /tmp rm -rf ROOT Then … cd source /opt/ROOT/v5-34-00-patches/bin/thisroot.sh root

Very good!!
Now everything works fine. The problem was solved.

Thank you!

Hi, quite a similar situ to that noted.

I’m running ROOT 5.32/00, gcc Ubuntu/Linaro 4.6.3-1ubuntu5 on 12.04 x86_64.

root [0] gSystem->ListLibraries();

Loaded shared libraries

-lRint
-lCint
-lCore
/home/fpxarda/bp/jan12/tools/root/lib/libCore.so
/home/fpxarda/bp/jan12/tools/root/lib/libRint.so
/home/fpxarda/bp/jan12/tools/root/lib/libMathCore.so

6 libraries loaded

My code (attached) compiles with g++ -o prune prune.cpp root-config --cflags --glibs
but upon execution…

./prune
Warning in TClass::TClass: no dictionary for class TCutG is available
Warning in TClass::TClass: no dictionary for class TGraph is available
Warning in TClass::TClass: no dictionary for class TH1F is available
Warning in TClass::TClass: no dictionary for class TH1 is available
Warning in TClass::TClass: no dictionary for class TAxis is available
TFile** /home/fpxarda/bp/Desktop/krakow_analysis/cuts/ns10nf10cuts.root
TFile* /home/fpxarda/bp/Desktop/krakow_analysis/cuts/ns10nf10cuts.root
KEY: TCutG left;1 Graph
KEY: TCutG corner;1 Graph
Error in TBufferFile::ReadClassBuffer: Could not find the StreamerInfo for version 2 of the class TNamed, object skipped at offset 49
Error in TBufferFile::CheckByteCount: object of class TNamed read too few bytes: 2 instead of 1300
Error in TBufferFile::ReadClassBuffer: Could not find the StreamerInfo for version 2 of the class TNamed, object skipped at offset 51
Error in TBufferFile::CheckByteCount: object of class TNamed read too few bytes: 2 instead of 1174
Entries 1234567k
OBJ: TNamed
OBJ: TNamed [ad infinitum]

So, I follow the instructions as set above for 5.34 … which installs fine, but shows:

root [0] gSystem->ListLibraries();

Loaded shared libraries

/opt/ROOT/v5-34-00-patches/lib/libCint.so
/opt/ROOT/v5-34-00-patches/lib/libCore.so
/opt/ROOT/v5-34-00-patches/lib/libRint.so
/opt/ROOT/v5-34-00-patches/lib/libMathCore.so

4 libraries loaded

with the same error as before. I know that the “Error in TBufferFile::ReadClassBuffer:” means the input is probably corrupted, but I would like first to squash the warnings & see if that helps.

A hopeless case, am I not? :wink:

Cheers

B.
prune.cpp (2.31 KB)

In the beginning of your “main”, try to add (and don’t forget to “#include <TApplication.h>”):
TApplication a(“prune”, 0, 0); // just to make sure that the autoloading of ROOT libraries works

Hi, thanks for the swift reply.

int main()
{
TApplication a(“prune”, 0, 0);
(etc)

Unfortunately, no luck

g++ -o prune prune.cpp root-config --cflags --glibs
./prune
Warning in TClass::TClass: no dictionary for class TCutG is available
Warning in TClass::TClass: no dictionary for class TGraph is available
Warning in TClass::TClass: no dictionary for class TH1F is available
Warning in TClass::TClass: no dictionary for class TH1 is available
Warning in TClass::TClass: no dictionary for class TAxis is available
TFile** /home/fpxarda/bp/Desktop/krakow_analysis/cuts/ns10nf10cuts.root
TFile* /home/fpxarda/bp/Desktop/krakow_analysis/cuts/ns10nf10cuts.root
KEY: TCutG left;1 Graph
KEY: TCutG corner;1 Graph
Error in TBufferFile::ReadClassBuffer: Could not find the StreamerInfo for version 2 of the class TNamed, object skipped at offset 49
Error in TBufferFile::CheckByteCount: object of class TNamed read too few bytes: 2 instead of 1300
Error in TBufferFile::ReadClassBuffer: Could not find the StreamerInfo for version 2 of the class TNamed, object skipped at offset 51
Error in TBufferFile::CheckByteCount: object of class TNamed read too few bytes: 2 instead of 1174
Entries 1234567k

Cheers

B.

Try:
ldd ./prune
and inspect the returned list of libraries (in particular, make sure that all absolute paths to ROOT libraries point to your distribution).

Thanks, but it all seems legit.

ldd ./prune
linux-vdso.so.1 => (0x00007fff5f1f4000)
libCore.so.5.32 => /home/fpxarda/bp/jan12/tools/root/lib/libCore.so.5.32 (0x00007f0676941000)
libRIO.so.5.32 => /home/fpxarda/bp/jan12/tools/root/lib/libRIO.so.5.32 (0x00007f0676539000)
libTree.so.5.32 => /home/fpxarda/bp/jan12/tools/root/lib/libTree.so.5.32 (0x00007f0676109000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f0675dd5000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0675bbe000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f06757ff000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f06755e8000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f06753aa000)
libCint.so.5.32 => /home/fpxarda/bp/jan12/tools/root/lib/libCint.so.5.32 (0x00007f0674a25000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0674821000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f0674524000)
libThread.so.5.32 => /home/fpxarda/bp/jan12/tools/root/lib/libThread.so.5.32 (0x00007f06742d1000)
libNet.so.5.32 => /home/fpxarda/bp/jan12/tools/root/lib/libNet.so.5.32 (0x00007f0673f51000)
/lib64/ld-linux-x86-64.so.2 (0x00007f06772e0000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0673d33000)
libMathCore.so.5.32 => /home/fpxarda/bp/jan12/tools/root/lib/libMathCore.so.5.32 (0x00007f0673906000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f067353d000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f06732df000)