Ubuntu 12.04 installed root 5.30. bin/h2root error

When I installed root , the under question appeared . I don’t know what to do. Thanks!

The question is:
g++ -m64 -O2 -o bin/h2root main/src/h2root.o
-Llib -lCore -lCint -lMathCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lThread lib/libminicern.so
/usr/lib/gcc/x86_64-linux-gnu/4.6/libgfortran.so /usr/lib/gcc/x86_64-linux-gnu/4.6/libgfortranbegin.a -lm -ldl -pthread -rdynamic
lib/libHist.so: undefined reference to ROOT::Math::MinimizerOptions::~MinimizerOptions()' lib/libHist.so: undefined reference toROOT::Fit::FitResult::LowerError(unsigned int) const’
lib/libHist.so: undefined reference to ROOT::Fit::Fitter::FitFCN(void (*)(int&, double*, double&, double*, int), int, double const*, unsigned int, bool)' lib/libTree.so: undefined reference totypeinfo for TSQLResult’
lib/libHist.so: undefined reference to ROOT::Fit::FitUtil::EvaluateLogLGradient(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::UnBinData const&, double const*, double*, unsigned int&)' lib/libTree.so: undefined reference tovtable for TSQLRow’
lib/libHist.so: undefined reference to TMath::ErfInverse(double)' lib/libHist.so: undefined reference toTMath::Beta(double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::DataRange::DataRange(double, double)' lib/libHist.so: undefined reference toROOT::Fit::FitConfig::CreateMinimizer()'
lib/libHist.so: undefined reference to ROOT::Fit::BinData::Add(double const*, double, double const*, double)' lib/libHist.so: undefined reference togRandom’
lib/libTree.so: undefined reference to typeinfo for TSQLRow' lib/libHist.so: undefined reference toTMath::ChisquareQuantile(double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::Fitter::Fitter()' lib/libHist.so: undefined reference toROOT::Fit::SparseData::SparseData(unsigned int, double*, double*)'
lib/libTree.so: undefined reference to TSQLRow::ShowMembers(TMemberInspector&)' lib/libHist.so: undefined reference toTMath::Poisson(double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::Fitter::SetFunction(ROOT::Math::IParametricGradFunctionOneDim const&)' lib/libHist.so: undefined reference toTMath::BesselI1(double)'
lib/libHist.so: undefined reference to TMath::Gaus(double, double, double, bool)' lib/libHist.so: undefined reference toROOT::Fit::BinData::Add(double, double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::DataRange::operator()(unsigned int, unsigned int) const' lib/libHist.so: undefined reference toROOT::Fit::FitResult::operator=(ROOT::Fit::FitResult const&)'
lib/libHist.so: undefined reference to TMath::BesselK0(double)' lib/libTree.so: undefined reference toTMessage::Class()'
lib/libHist.so: undefined reference to TMath::StruveH0(double)' lib/libHist.so: undefined reference toROOT::Fit::FitUtil::EvaluatePoissonLogL(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::BinData const&, double const*, int, unsigned int&)'
lib/libHist.so: undefined reference to ROOT::Math::GaussLegendreIntegrator::~GaussLegendreIntegrator()' lib/libHist.so: undefined reference toROOT::Fit::BinData::Add(double, double, double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::DataRange::GetInfRange(double&, double&)' lib/libHist.so: undefined reference toTRandom::Poisson(double)'
lib/libHist.so: undefined reference to ROOT::Fit::FitUtil::EvaluateChi2Residual(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::BinData const&, double const*, unsigned int, double*)' lib/libHist.so: undefined reference totypeinfo for ROOT::Fit::BinData’
lib/libHist.so: undefined reference to TMath::ACosH(double)' lib/libHist.so: undefined reference toROOT::Math::RichardsonDerivator::~RichardsonDerivator()'
lib/libHist.so: undefined reference to TMath::NormQuantile(double)' lib/libHist.so: undefined reference toTMath::LandauI(double)'
lib/libHist.so: undefined reference to ROOT::Math::beta_quantile_c(double, double, double)' lib/libHist.so: undefined reference toROOT::Fit::FitResult::PrintCovMatrix(std::basic_ostream<char, std::char_traits >&) const’
lib/libHist.so: undefined reference to ROOT::Fit::SparseData::Add(std::vector<double, std::allocator<double> >&, std::vector<double, std::allocator<double> >&, double, double)' lib/libHist.so: undefined reference toROOT::Fit::FitUtil::EvaluatePdf(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::UnBinData const&, double const*, unsigned int, double*)'
lib/libHist.so: undefined reference to ROOT::Fit::FitUtil::EvaluateChi2Gradient(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::BinData const&, double const*, double*, unsigned int&)' lib/libHist.so: undefined reference toTMath::FDist(double, double, double)'
lib/libHist.so: undefined reference to TMath::Erfc(double)' lib/libHist.so: undefined reference toROOT::Math::BrentMinimizer1D::FValMinimum() const’
lib/libHist.so: undefined reference to TVirtualFitter::ShowMembers(TMemberInspector&)' lib/libHist.so: undefined reference toROOT::Fit::BinData::BinData(unsigned int, unsigned int, ROOT::Fit::BinData::ErrorType)'
lib/libHist.so: undefined reference to ROOT::Fit::BinData::Add(double const*, double, double)' lib/libHist.so: undefined reference toTMath::StruveL0(double)'
lib/libHist.so: undefined reference to TMath::Freq(double)' lib/libHist.so: undefined reference totypeinfo for TVirtualFitter’
lib/libHist.so: undefined reference to TMath::BesselY1(double)' lib/libHist.so: undefined reference toROOT::Fit::FitResult::GetConfidenceIntervals(ROOT::Fit::BinData const&, double*, double, bool) const’
lib/libHist.so: undefined reference to TMath::BesselJ0(double)' lib/libHist.so: undefined reference toROOT::Math::binomial_pdf(unsigned int, double, unsigned int)'
lib/libHist.so: undefined reference to TMath::KolmogorovProb(double)' lib/libHist.so: undefined reference toTMath::ASinH(double)'
lib/libHist.so: undefined reference to TRandom::Gaus(double, double)' lib/libHist.so: undefined reference toROOT::Math::normal_quantile(double, double)'
lib/libHist.so: undefined reference to ROOT::Math::BrentRootFinder::SetFunction(ROOT::Math::IBaseFunctionOneDim const&, double, double)' lib/libTree.so: undefined reference toTFileStager::Open(char const*)'
lib/libHist.so: undefined reference to ROOT::Math::RichardsonDerivator::Derivative3(double)' lib/libTree.so: undefined reference toTSQLResult::ShowMembers(TMemberInspector&)'
lib/libHist.so: undefined reference to TMath::StruveH1(double)' lib/libHist.so: undefined reference toROOT::Fit::FitUtil::EvaluatePoissonBinPdf(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::BinData const&, double const*, unsigned int, double*)'
lib/libHist.so: undefined reference to ROOT::Math::IntegratorOneDim::CreateIntegrator(ROOT::Math::IntegrationOneDim::Type, double, double, unsigned int, int)' lib/libHist.so: undefined reference toTVirtualFitter::~TVirtualFitter()'
lib/libHist.so: undefined reference to ROOT::Fit::FitResult::FitResult()' lib/libHist.so: undefined reference toTMath::Hypot(double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::SparseData::GetBinDataIntegral(ROOT::Fit::BinData&) const' lib/libHist.so: undefined reference toTRandom3::SetSeed(unsigned int)'
lib/libHist.so: undefined reference to TVirtualFitter::Fitter(TObject*, int)' lib/libHist.so: undefined reference toROOT::Math::GaussLegendreIntegrator::GaussLegendreIntegrator(int, double)'
lib/libHist.so: undefined reference to ROOT::Math::MinimizerOptions::MinimizerOptions(ROOT::Math::IOptions*)' lib/libHist.so: undefined reference toROOT::Math::RichardsonDerivator::Derivative2(double)'
lib/libHist.so: undefined reference to TMath::BetaDistI(double, double, double)' lib/libHist.so: undefined reference toROOT::Math::BrentMinimizer1D::SetFunction(ROOT::Math::IBaseFunctionOneDim const&, double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::DataRange::AddRange(unsigned int, double, double)' lib/libHist.so: undefined reference toROOT::Fit::BinData::BinData(ROOT::Fit::DataOptions const&, ROOT::Fit::DataRange const&, unsigned int, unsigned int, ROOT::Fit::BinData::ErrorType)'
lib/libHist.so: undefined reference to TVirtualFitter::TVirtualFitter()' lib/libHist.so: undefined reference toTMath::StruveL1(double)'
lib/libHist.so: undefined reference to ROOT::Fit::FitUtil::EvaluatePoissonLogLGradient(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::BinData const&, double const*, double*)' lib/libHist.so: undefined reference toTMath::BetaCf(double, double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::SparseData::~SparseData()' lib/libHist.so: undefined reference toROOT::Fit::FitUtil::EvaluateLogL(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::UnBinData const&, double const*, unsigned int&)'
lib/libHist.so: undefined reference to TMath::BetaDist(double, double, double)' lib/libHist.so: undefined reference toROOT::Fit::FitUtil::EvaluateChi2Effective(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::BinData const&, double const*, unsigned int&)'
lib/libHist.so: undefined reference to ROOT::Fit::Fitter::SetFunction(ROOT::Math::IParametricGradFunctionMultiDim const&)' lib/libHist.so: undefined reference toROOT::Math::RichardsonDerivator::Derivative1(double)'
lib/libHist.so: undefined reference to ROOT::Math::GaussIntegrator::Integral(double, double)' lib/libHist.so: undefined reference toTVirtualFitter::SetCache(int, int)'
lib/libHist.so: undefined reference to TMath::LnGamma(double)' lib/libHist.so: undefined reference toROOT::Fit::Fitter::DoLikelihoodFit(ROOT::Fit::BinData const&, bool)'
lib/libHist.so: undefined reference to ROOT::Fit::BinData::Add(double, double)' lib/libHist.so: undefined reference toROOT::Math::AdaptiveIntegratorMultiDim::AdaptiveIntegratorMultiDim(ROOT::Math::IBaseFunctionMultiDim const&, double, double, unsigned int, unsigned int)'
lib/libHist.so: undefined reference to TMath::BesselK1(double)' lib/libHist.so: undefined reference toROOT::Math::GaussIntegrator::SetFunction(ROOT::Math::IBaseFunctionOneDim const&)'
lib/libHist.so: undefined reference to ROOT::Fit::BinData::Add(double const*, double)' lib/libHist.so: undefined reference toROOT::Math::beta_quantile(double, double, double)'
lib/libHist.so: undefined reference to TMath::Vavilov(double, double, double)' lib/libHist.so: undefined reference toTRandom3::~TRandom3()'
lib/libHist.so: undefined reference to ROOT::Math::BrentRootFinder::BrentRootFinder()' lib/libHist.so: undefined reference toTMath::CauchyDist(double, double, double)'
lib/libHist.so: undefined reference to TVirtualFitter::GetFitter()' lib/libHist.so: undefined reference toTMath::Log2(double)'
lib/libHist.so: undefined reference to ROOT::Math::GaussIntegrator::SetRelTolerance(double)' lib/libHist.so: undefined reference toTMath::VavilovI(double, double, double)'
lib/libHist.so: undefined reference to ROOT::Math::AdaptiveIntegratorMultiDim::DoIntegral(double const*, double const*, bool)' lib/libHist.so: undefined reference toROOT::Fit::Fitter::FitFCN(ROOT::Math::IBaseFunctionMultiDim const&, double const*, unsigned int, bool)'
lib/libHist.so: undefined reference to TMath::Permute(int, int*)' lib/libHist.so: undefined reference toTVirtualFitter::GetPrecision()'
lib/libHist.so: undefined reference to TMath::PoissonI(double, double)' lib/libHist.so: undefined reference toTVirtualFitter::SetFitter(TVirtualFitter*, int)'
lib/libHist.so: undefined reference to TMath::BesselI0(double)' lib/libHist.so: undefined reference toROOT::Fit::Fitter::~Fitter()'
lib/libHist.so: undefined reference to TMath::Gamma(double, double)' lib/libHist.so: undefined reference toROOT::Fit::Fitter::SetFunction(ROOT::Math::IParametricFunctionMultiDim const&)'
lib/libHist.so: undefined reference to ROOT::Fit::FitConfig::SetMinimizerOptions(ROOT::Math::MinimizerOptions const&)' lib/libHist.so: undefined reference toTMath::Erf(double)'
lib/libHist.so: undefined reference to TMath::ATanH(double)' lib/libHist.so: undefined reference toROOT::Math::BrentRootFinder::Solve(int, double, double)'
lib/libHist.so: undefined reference to TVirtualFitter::GetMaxIterations()' lib/libHist.so: undefined reference toTMath::BesselY0(double)'
lib/libHist.so: undefined reference to ROOT::Math::normal_quantile_c(double, double)' lib/libHist.so: undefined reference toTMath::BreitWigner(double, double, double)'
lib/libTree.so: undefined reference to vtable for TSQLResult' lib/libHist.so: undefined reference toROOT::Fit::FitResult::UpperError(unsigned int) const’
lib/libHist.so: undefined reference to ROOT::Math::GaussIntegrator::~GaussIntegrator()' lib/libHist.so: undefined reference toTRandom3::Rndm(int)'
lib/libHist.so: undefined reference to TMath::Landau(double, double, double, bool)' lib/libHist.so: undefined reference toROOT::Fit::FitResult::FitResult(ROOT::Fit::FitResult const&)'
lib/libHist.so: undefined reference to ROOT::Fit::FitResult::GetConfidenceIntervals(unsigned int, unsigned int, unsigned int, double const*, double*, double, bool) const' lib/libHist.so: undefined reference toTMath::LaplaceDist(double, double, double)'
lib/libHist.so: undefined reference to TMath::Student(double, double)' lib/libHist.so: undefined reference toTMath::LaplaceDistI(double, double, double)'
lib/libHist.so: undefined reference to ROOT::Math::GaussLegendreIntegrator::GetWeightVectors(double*, double*) const' lib/libHist.so: undefined reference toTMath::Prob(double, int)'
lib/libHist.so: undefined reference to ROOT::Fit::Fitter::DoLeastSquareFit(ROOT::Fit::BinData const&)' lib/libHist.so: undefined reference toROOT::Math::BrentMinimizer1D::BrentMinimizer1D()'
lib/libHist.so: undefined reference to TVirtualFitter::GetDefaultFitter()' lib/libHist.so: undefined reference toROOT::Fit::BinData::AddBinUpEdge(double const*)'
lib/libHist.so: undefined reference to ROOT::Math::GaussIntegrator::GaussIntegrator(double)' lib/libHist.so: undefined reference toROOT::Math::BrentMinimizer1D::Minimize(int, double, double)'
lib/libHist.so: undefined reference to TMath::StudentI(double, double)' lib/libHist.so: undefined reference toTRandom3::TRandom3(unsigned int)'
lib/libHist.so: undefined reference to ROOT::Fit::FitUtil::EvaluateChi2(ROOT::Math::IParametricFunctionMultiDim const&, ROOT::Fit::BinData const&, double const*, unsigned int&)' lib/libHist.so: undefined reference toTMath::BesselJ1(double)'
lib/libHist.so: undefined reference to TMath::Quantiles(int, int, double*, double*, double*, bool, int*, int)' lib/libHist.so: undefined reference toTVirtualFitter::TVirtualFitter(TVirtualFitter const&)'
lib/libHist.so: undefined reference to TMath::Gamma(double)' lib/libHist.so: undefined reference toROOT::Fit::BinData::Add(double, double, double, double, double)'
lib/libHist.so: undefined reference to ROOT::Math::RichardsonDerivator::RichardsonDerivator(double)' lib/libHist.so: undefined reference toROOT::Math::beta_cdf(double, double, double)'
lib/libHist.so: undefined reference to TMath::ErfcInverse(double)' lib/libHist.so: undefined reference toTMath::BetaIncomplete(double, double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::BinData::Initialize(unsigned int, unsigned int, ROOT::Fit::BinData::ErrorType)' lib/libHist.so: undefined reference toTMath::FDistI(double, double, double)'
lib/libHist.so: undefined reference to ROOT::Fit::FitResult::Print(std::basic_ostream<char, std::char_traits<char> >&, bool) const' lib/libHist.so: undefined reference toTMath::DiLog(double)'
lib/libHist.so: undefined reference to ROOT::Fit::FitResult::~FitResult()' lib/libHist.so: undefined reference toROOT::Fit::BinData::~BinData()'
lib/libTree.so: undefined reference to TSQLRow::Streamer(TBuffer&)' lib/libHist.so: undefined reference toROOT::Fit::Fitter::DoLikelihoodFit(ROOT::Fit::UnBinData const&, bool)'
lib/libHist.so: undefined reference to `TMath::Nint(double)'
collect2: ld return 1
make: *** [bin/h2root] error 1

Hi,

ROOT v5.30 is not supported on Ubuntu 11 and above. Please try v5.34.

Cheers,
Philippe.

[quote=“pcanal”]Hi,

ROOT v5.30 is not supported on Ubuntu 11 and above. Please try v5.34.

Cheers,
Philippe.[/quote]

Thank you! I will try.