# Could not create the Minuit2 minimizer

**URL:** <https://root-forum.cern.ch/t/could-not-create-the-minuit2-minimizer/64411>\
**Category:** Newbie\
**Created:** [November 15, 2025, 1:30pm UTC](https://root-forum.cern.ch/t/could-not-create-the-minuit2-minimizer/64411 "2025-11-15T13:30:30Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [November 18, 2025, 1:11pm UTC](https://root-forum.cern.ch/t/could-not-create-the-minuit2-minimizer/64411/7 "2025-11-18T13:11:33Z")

</div>

Thanks. That looks also correct, so we have to dig deeper.

Can you run this debug macro with `root -b -q debug_macro.C` and paste the output here? Something seems to be going wrong with the ROOT plugin system.

```c++
void debug_macro() {

    gDebug = 3;
    auto h = gROOT->GetPluginManager()->FindHandler("ROOT::Math::Minimizer", "Minuit2");
    h->LoadPlugin();
    auto * min = (ROOT::Math::Minimizer *)( h->ExecPlugin(1,"migrad" ) );
    std::cout << min << std::endl;
}

```

---

_[View the full topic](https://root-forum.cern.ch/t/could-not-create-the-minuit2-minimizer/64411)._
