# ERROR: LoadError: Unable to locate Gurobi installation

**URL:** <https://discourse.julialang.org/t/error-loaderror-unable-to-locate-gurobi-installation/74051>\
**Category:** Optimization (Mathematical)\
**Tags:** question, package\
**Created:** [January 4, 2022, 6:13pm UTC](https://discourse.julialang.org/t/error-loaderror-unable-to-locate-gurobi-installation/74051 "2022-01-04T18:13:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![konsath](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@konsath](https://discourse.julialang.org/u/konsath)\
**Post date:** [January 4, 2022, 6:13pm UTC](https://discourse.julialang.org/t/error-loaderror-unable-to-locate-gurobi-installation/74051/1 "2022-01-04T18:13:46Z")

</div>

I’m using Julia 1.6.5 and Gurobi 9.5.0 but right now Julia is adding an outdated version of Gurobi that doesn’t match my Path (9.5.0). Could anyone provide some insight maybe? 🙂  
‘’’  
julia\> Pkg.build(“Gurobi”)  
Building Gurobi → `C:\Users\Nosdi\AppData\Local\NEMO\depot\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\f36a2fa62909675681aec582ccfc4a4a629406e4\build.log`  
ERROR: Error building `Gurobi` :  
ERROR: LoadError: Unable to locate Gurobi installation. If the advice above did not help,  
open an issue at [GitHub - jump-dev/Gurobi.jl: Julia interface for Gurobi Optimizer](https://github.com/JuliaOpt/Gurobi.jl) and post the full  
print-out of this diagnostic attempt.

Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:33  
[2] top-level scope  
@ C:\Users\Nosdi\AppData\Local\NEMO\depot\packages\Gurobi\7YNJV\deps\build.jl:154  
[3] include(fname::String)  
@ Base.MainInclude .\client.jl:444  
[4] top-level scope  
@ none:5  
in expression starting at C:\Users\Nosdi\AppData\Local\NEMO\depot\packages\Gurobi\7YNJV\deps\build.jl:152  
Unable to locate Gurobi installation. Running some common diagnostics.

Gurobi.jl only supports the following versions:

- gurobi90
- gurobi81
- gurobi80
- gurobi75
- gurobi70

Did you download and install one of these versions from [gurobi.com](http://gurobi.com/)?

Found GUROBI\_HOME = C:\gurobi950\win64

Does this point to the correct install location?

- on Windows, this might be `C:\Program Files\gurobi810\win64\`
- alternatively, on Windows, this might be `C:/Program Files/gurobi810/win64/`
- on OSX, this might be `/Library/gurobi810/mac64/`
- on Unix, this might be `/home/my_user/gurobi810/linux64/`

Note: this has to be a full path, not a path relative to your current  
directory or your home directory.

We’re going to look for the Gurobi library in this directory:  
C:\gurobi950\win64\bin

That directory has the following files:

- C:\gurobi950\win64\bin\Gurobi95.NET.XML
- C:\gurobi950\win64\bin\Gurobi95.NET.dll
- C:\gurobi950\win64\bin\GurobiJni95.dll
- C:\gurobi950\win64\bin\grb\_ts.exe
- C:\gurobi950\win64\bin\grbcluster.exe
- C:\gurobi950\win64\bin\grbgetkey.exe
- C:\gurobi950\win64\bin\grbprobe.exe
- C:\gurobi950\win64\bin\grbtune.exe
- C:\gurobi950\win64\bin\gurobi.bat
- C:\gurobi950\win64\bin\gurobi95.dll
- C:\gurobi950\win64\bin\gurobi95\_light.dll
- C:\gurobi950\win64\bin\gurobi\_cl.exe
- C:\gurobi950\win64\bin\vslauncher.exe
- C:\gurobi950\win64\bin\vswhere.exe

We were looking for (but could not find) a file named like  
`libgurobiXXX.so` , `libgurobiXXX.dylib` , or `gurobiXXX.dll` . You  
should update your GUROBI\_HOME environment variable to point to the  
correct location.  
‘’’

---

<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:** [January 4, 2022, 8:09pm UTC](https://discourse.julialang.org/t/error-loaderror-unable-to-locate-gurobi-installation/74051/2 "2022-01-04T20:09:03Z")

</div>

It looks like you have an old version of Gurobi.jl installed.

You should update your packages `import Pkg; Pkg.update()`, but there might be another package that is blocking Gurobi.jl from updating.

What is `import Pkg; Pkg.status()`?

---

<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:** [January 4, 2022, 8:09pm UTC](https://discourse.julialang.org/t/error-loaderror-unable-to-locate-gurobi-installation/74051/3 "2022-01-04T20:09:50Z")

</div>

Duplicate question: [Julia adding an older version of my updated Gurobi Solber](https://discourse.julialang.org/t/julia-adding-an-older-version-of-my-updated-gurobi-solber/74034)

---

<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:** [January 4, 2022, 8:11pm UTC](https://discourse.julialang.org/t/error-loaderror-unable-to-locate-gurobi-installation/74051/4 "2022-01-04T20:11:44Z")

</div>


