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