# Release 5.32.03 on Ubuntu 12.04

**URL:** <https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368>\
**Category:** ROOT\
**Created:** [May 29, 2012, 2:56pm UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368 "2012-05-29T14:56:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gianpaolo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/0ea827/32.png) [@Gianpaolo](https://root-forum.cern.ch/u/Gianpaolo)\
**Post date:** [May 29, 2012, 2:56pm UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/1 "2012-05-29T14:56:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [May 29, 2012, 3:33pm UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/2 "2012-05-29T15:33:44Z")

</div>

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](https://root-forum.cern.ch/t/installing-root-from-source/13647/1)
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](https://root-forum.cern.ch/t/root-in-sl-6-1/14235/1)  
[url][ROOT 5.32/00 support](https://root-forum.cern.ch/t/root-5-32-00-support/13674/1)  
[url][Updating to new Root versions](https://root-forum.cern.ch/t/updating-to-new-root-versions/13817/1)  
[url][Compiling root from source overheats certain computers](https://root-forum.cern.ch/t/compiling-root-from-source-overheats-certain-computers/10647/1)  
[url][ROOTSYS and linux distribution installation](https://root-forum.cern.ch/t/rootsys-and-linux-distribution-installation/14173/1)

---

<div class="post-metadata">

**Author:** ![Gianpaolo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/0ea827/32.png) [@Gianpaolo](https://root-forum.cern.ch/u/Gianpaolo)\
**Post date:** [May 29, 2012, 7:53pm UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/3 "2012-05-29T19:53:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gianpaolo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/0ea827/32.png) [@Gianpaolo](https://root-forum.cern.ch/u/Gianpaolo)\
**Post date:** [June 2, 2012, 12:30pm UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/4 "2012-06-02T12:30:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [June 2, 2012, 2:53pm UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/5 "2012-06-02T14:53:31Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![Gianpaolo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/0ea827/32.png) [@Gianpaolo](https://root-forum.cern.ch/u/Gianpaolo)\
**Post date:** [June 3, 2012, 11:18am UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/6 "2012-06-03T11:18:51Z")

</div>

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

Thank you!

---

<div class="post-metadata">

**Author:** ![jal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@jal](https://root-forum.cern.ch/u/jal)\
**Post date:** [April 30, 2013, 9:59am UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/7 "2013-04-30T09:59:43Z")

</div>

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? 😉

Cheers

B.  
[prune.cpp](https://root-forum.cern.ch/uploads/default/original/2X/3/3198b16ac5381b9b989ee1bdcba386c97dcec86c.cpp) (2.31 KB)

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 30, 2013, 10:31am UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/8 "2013-04-30T10:31:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@jal](https://root-forum.cern.ch/u/jal)\
**Post date:** [April 30, 2013, 10:48am UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/9 "2013-04-30T10:48:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 30, 2013, 10:52am UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/10 "2013-04-30T10:52:08Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![jal](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@jal](https://root-forum.cern.ch/u/jal)\
**Post date:** [April 30, 2013, 10:59am UTC](https://root-forum.cern.ch/t/release-5-32-03-on-ubuntu-12-04/14368/11 "2013-04-30T10:59:30Z")

</div>

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)
