How to add missing package required for Minuit2

Hi I am trying to analyse and grade a .root file and it is giving an error indicating that Minuit2 is not available for minimizing

Error is below

==========================================================================

[daq@daq potato]$ ./Potato
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QObject::connect: No such slot SelectorW::checkDropBoxFiles()
QObject::connect: (receiver name: ‘SelectorW’)
Done constructor GradingTable!
Warning in TAxis::Sort: Cannot sort. No labels
QMetaObject::connectSlotsByName: No matching signal for on_saveSortedGradesPB_released()
[58] Database2STests::Database2STests()
[56] TestOutput2SBrokenStrips::TestOutput2SBrokenStrips()
[56] TestOutput2SCompareTemp::TestOutput2SCompareTemp()
[53] TestOutput2SExample::TestOutput2SExample()
QMetaObject::connectSlotsByName: No matching signal for on_analyzerAnalyzePB_released()
132bool UserLoginHandler::isUserLogged(const QString&, QComboBox*)
158bool UserLoginHandler::isUserLogged(const QString&, QComboBox*)Last modified: yyyy-MM-dd 15:51:14 Current time: yyyy-MM-dd 15:55:10 Delta hours: 0.0655556
181bool UserLoginHandler::isUserLogged(const QString&, QComboBox*)File contains user: 1
Starting ollama serve
[1022] void MainWidget::analyzeAndGrade(bool, bool, bool, bool)Processing file 2S_2026-02-06_10h53m14s_+20C_2SfullTest_v6-22.root
[1055] void MainWidget::analyzeAndGrade(bool, bool, bool, bool)Analyzing file
[103] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string)SetRun
[105] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string)MakeDocument
[128] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on optical group histos.
Warning in ROOT::Math::FitConfig::CreateMinimizer: Could not create the Linear minimizer. Try using the minimizer Minuit
Error in ROOT::Math::FitConfig::CreateMinimizer: Could not create the Minuit2 minimizer
Error in ROOT::Math::Fitter::DoInitMinimizer: Minimizer cannot be created
Warning in ROOT::Math::FitConfig::CreateMinimizer: Could not create the Linear minimizer. Try using the minimizer Minuit
Error in ROOT::Math::FitConfig::CreateMinimizer: Could not create the Minuit2 minimizer
Error in ROOT::Math::Fitter::DoInitMinimizer: Minimizer cannot be created
Warning in ROOT::Math::FitConfig::CreateMinimizer: Could not create the Linear minimizer. Try using the minimizer Minuit

[948] void Analyzer::fillVTRxLightYield(AnalyzerDocument&, TH2F*) BiasRange: 16 ModRange: 16 BiasSlope: 0 ModSlope: 0 BiasTop: 1039.9 BiasBot: 966.8 ModTop: 1023.6 ModBot: 930.8
[256] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done with optical group histos.
[282] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on chip CBC #0
[405] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on chip CBC #0
[282] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on chip CBC #1
[405] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on chip CBC #1
[282] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on chip CBC #2
[405] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on chip CBC #2
[282] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on chip CBC #3
[405] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on chip CBC #3
[282] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on chip CBC #4
[405] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on chip CBC #4
[282] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on chip CBC #5
[405] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on chip CBC #5
[282] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on chip CBC #6
[405] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on chip CBC #6
[282] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on chip CBC #7
[405] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on chip CBC #7
[411] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Working on hybrid: Right
[589] virtual const AnalyzerDocument& Analyzer2S::analyze(std::string, std::string) Done working on hybrid: Left
“log_potato_Grade_D” 367L, 38768B

============================================================================

My query is how i can add the missing package in already installed ROOT

regards

Irfan

I guess @moneta or @jonas can help you.

ok thanks

What version of ROOT is this?
How did you build or obtained ROOT?
Was it configured to include Minuit2 in the first place?

Sorry for the series of questions, but the answer to those will be the answer to your problem…