# Use Ipopt with custom version

**URL:** <https://discourse.julialang.org/t/use-ipopt-with-custom-version/9176>\
**Category:** Optimization (Mathematical)\
**Created:** [February 19, 2018, 7:56pm UTC](https://discourse.julialang.org/t/use-ipopt-with-custom-version/9176 "2018-02-19T19:56:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TPDS1993](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tpds1993/32/3527_2.png) [@TPDS1993](https://discourse.julialang.org/u/TPDS1993)\
**Post date:** [February 19, 2018, 7:56pm UTC](https://discourse.julialang.org/t/use-ipopt-with-custom-version/9176/1 "2018-02-19T19:56:16Z")

</div>

Hi,

I wanted to point Ipopt to a custom version that I installed with other linear solvers, can someone help me achieve that?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ccoffrin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ccoffrin/32/400_2.png) [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Post date:** [February 24, 2018, 4:01pm UTC](https://discourse.julialang.org/t/use-ipopt-with-custom-version/9176/2 "2018-02-24T16:01:45Z")

</div>

In my experience the easiest way to do this is to add the ipopt dynamic library location to your OS’s dynamic linked library path variable.

If Ipopt.jl does not pick it up automatically, modify the path in Ipopt/deps/deps.jl to find the library file that you have built.

Note this procedure may change once Ipopt.jl is moved to [BinaryBuilder.jl](https://github.com/JuliaPackaging/BinaryBuilder.jl), see [https://github.com/staticfloat/IpoptBuilder](https://github.com/staticfloat/IpoptBuilder)

---

<div class="post-metadata">

**Author:** ![miles.lubin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/miles.lubin/32/279_2.png) [@miles.lubin](https://discourse.julialang.org/u/miles.lubin)\
**Post date:** [February 24, 2018, 4:51pm UTC](https://discourse.julialang.org/t/use-ipopt-with-custom-version/9176/3 "2018-02-24T16:51:04Z")

</div>

These instructions are correct for now. After [https://github.com/JuliaOpt/Ipopt.jl/pull/98](https://github.com/JuliaOpt/Ipopt.jl/pull/98) this procedure will change (and will be documented in the readme).

---

<div class="post-metadata">

**Author:** ![TPDS1993](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tpds1993/32/3527_2.png) [@TPDS1993](https://discourse.julialang.org/u/TPDS1993)\
**Post date:** [February 24, 2018, 5:01pm UTC](https://discourse.julialang.org/t/use-ipopt-with-custom-version/9176/4 "2018-02-24T17:01:04Z")

</div>

Actually I did that, specially changing the path in deps.jl, but even my libipopt.so was unable to be loaded by dlopen… I built Ipopt in ubuntu
