Hello!
I have installed root 5.34.34 on SUSE Linux Enterprise Server 11 (x86_64) VERSION = 11 PATCHLEVEL = 2 recently. I use root cern as a library, so I linked its libraries to my project in QT IDE.
I tried to create and save a simple tree, but I got the next runtime error:
[code]Error in TSystem::ExpandFileName: input: $ROOTSYS/etc/plugins/TVirtualStreamerInfo, output: $ROOTSYS/etc/plugins/TVirtualStreamerInfo
Fatal in TVirtualStreamerInfo::Factory: Cannot find the plugin handler for TVirtualStreamerInfo! $ROOTSYS/etc/plugins/TVirtualStreamerInfo does not exist or is inaccessible.
aborting
Error in TUnixSystem::StackTrace script /etc/root/gdb-backtrace.sh is missing
The program has unexpectedly finished.[/code]
My code:
//base
#include <iostream>
//root cern
#include "TTree.h"
#include "TFile.h"
using namespace std;
int main()
{
TTree tree("t1", "Parser");
Double_t a_1;
tree.Branch("a_1", &a_1, "a_1/D");
a_1 = 16.0076;
tree.Fill();
TFile f_tree("/mnt/scratch/ws/Vlad/run_0.root", "RECREATE");
tree.Write();
return 0;
}
What is wrong?
Could you help me?
Thank you in advance.