# Libopenspecfun.dll could not be found error

**URL:** https://discourse.julialang.org/t/libopenspecfun-dll-could-not-be-found-error/32649
**Category:** Optimization (Mathematical)
**Created:** [December 24, 2019, 8:27am UTC](https://discourse.julialang.org/t/libopenspecfun-dll-could-not-be-found-error/32649 "2019-12-24T08:27:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Xentios](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xentios/32/11729_2.png) [@Xentios](https://discourse.julialang.org/u/Xentios)
#### Post date: [December 24, 2019, 8:27am UTC](https://discourse.julialang.org/t/libopenspecfun-dll-could-not-be-found-error/32649/1 "2019-12-24T08:27:18Z")

</div>

ERROR: LoadError: InitError: could not load library “C:\Users\Xentios.julia\artifacts\e062344a002c2afdfcf57091b975e56fd80de418\bin\libopenspecfun.dll”  
The specified module could not be found.

I am using Gurobi with JuMP and getting this error.

Jump installs this when i use Pkg.add(“JuMP”)

- OpenSpecFun\_jll v0.5.3+1

I have no idea what is wrong. Done uninstall and re-install many times.

---

<div class="post-metadata">

### Author: ![Xentios](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xentios/32/11729_2.png) [@Xentios](https://discourse.julialang.org/u/Xentios)
#### Post date: [December 24, 2019, 8:32am UTC](https://discourse.julialang.org/t/libopenspecfun-dll-could-not-be-found-error/32649/2 "2019-12-24T08:32:18Z")

</div>

Manually copying

“libopenspecfun.a” from lib folder into bin folder and rename to dll fixed the problem

---

<div class="post-metadata">

### Author: ![Xentios](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xentios/32/11729_2.png) [@Xentios](https://discourse.julialang.org/u/Xentios)
#### Post date: [December 25, 2019, 5:32am UTC](https://discourse.julialang.org/t/libopenspecfun-dll-could-not-be-found-error/32649/3 "2019-12-25T05:32:47Z")

</div>

Well this is not solved permanently and causing more problems.

I need to redo this everytime i restart.(restart anything) Which is annoying.

This also mess up my function defines.

I am really tired of Julia.

**Codding must be a challenge not trying to code.**

---

<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: [December 26, 2019, 6:38pm UTC](https://discourse.julialang.org/t/libopenspecfun-dll-could-not-be-found-error/32649/4 "2019-12-26T18:38:03Z")

</div>

Try `import Pkg; Pkg.build("SpecialFunctions"); Pkg.add("JuMP")`.

If it still runs into an error, please post the full output of the error.
