# Library loading failure when using Ipopt through JuMP

**URL:** <https://discourse.julialang.org/t/library-loading-failure-when-using-ipopt-through-jump/94695>\
**Category:** Optimization (Mathematical)\
**Created:** [February 15, 2023, 4:48pm UTC](https://discourse.julialang.org/t/library-loading-failure-when-using-ipopt-through-jump/94695 "2023-02-15T16:48:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zornsllama](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zornsllama/32/24636_2.png) [@zornsllama](https://discourse.julialang.org/u/zornsllama)\
**Post date:** [February 15, 2023, 4:48pm UTC](https://discourse.julialang.org/t/library-loading-failure-when-using-ipopt-through-jump/94695/1 "2023-02-15T16:48:56Z")

</div>

Hi,

Until today, I was having no issues using Ipopt through JuMP. Today, however, when I run optimize!(model), I get the following error:

```julia
Exception of type: DYNAMIC_LIBRARY_FAILURE in file "Common/IpLibraryLoader.cpp" at line 67:
Exception message: libopenblas.so.3: cannot open shared object file: No such file or directory

EXIT: Library loading failure.

```

There are no issues with model generation prior to attempting the optimization. I am not quite sure what’s going on, but it does seem that “libopenblas.so.3” does not exist anywhere on my system (there are several files in the .julia/artifacts directory called libopenblas.so.0). I recently updated my Julia packages and my system packages, so I’m wondering if something got shifted around or deleted.

Does anyone know how to resolve this issue? Any help would be immensely appreciated!

EDIT: The issue seems to be related to use of HSL direct solver routines, as I obtain the same issue with Ipopt.jl using the HSL solvers but no issue when using the default MUMPS solver. Accordingly, this is probably not an issue with JuMP at all, but I am still unsure how to fix it. Help is still very much appreciated.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [February 15, 2023, 8:38pm UTC](https://discourse.julialang.org/t/library-loading-failure-when-using-ipopt-through-jump/94695/2 "2023-02-15T20:38:10Z")

</div>

What is `import Pkg; Pkg.status()`? What version of Julia are you using?

> The issue seems to be related to use of HSL direct solver routines, as I obtain the same issue with Ipopt.jl using the HSL solvers but no issue when using the default MUMPS solver. Accordingly, this is probably not an issue with JuMP at all, but I am still unsure how to fix it. Help is still very much appreciated.

How did you compile HSL?

cc @amontoison

---

<div class="post-metadata">

**Author:** ![zornsllama](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zornsllama/32/24636_2.png) [@zornsllama](https://discourse.julialang.org/u/zornsllama)\
**Post date:** [February 15, 2023, 11:43pm UTC](https://discourse.julialang.org/t/library-loading-failure-when-using-ipopt-through-jump/94695/3 "2023-02-15T23:43:56Z")

</div>

I compiled HSL using ThirdParty-HSL ([GitHub - coin-or-tools/ThirdParty-HSL: COIN-OR autotools harness to build HSL linear solvers](https://github.com/coin-or-tools/ThirdParty-HSL)), and rebuilding HSL this way seems to fix the issue. Thanks for your response in any case!

---

<div class="post-metadata">

**Author:** ![amontoison](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amontoison/32/218741_2.png) [@amontoison](https://discourse.julialang.org/u/amontoison)\
**Post date:** [February 16, 2023, 4:51am UTC](https://discourse.julialang.org/t/library-loading-failure-when-using-ipopt-through-jump/94695/4 "2023-02-16T04:51:12Z")

</div>

For information, the build system of `coinhsl` is broken @zornsllama.  
If you want to use HSL solvers with Ipopt, `ThirdParty-HSL` or `HSL.jl` are the best way to install them.
