# Gurobi v10 and Julia

**URL:** https://discourse.julialang.org/t/gurobi-v10-and-julia/90220
**Category:** Optimization (Mathematical)
**Created:** [November 14, 2022, 2:51am UTC](https://discourse.julialang.org/t/gurobi-v10-and-julia/90220 "2022-11-14T02:51:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MirelEce](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mirelece/32/44367_2.png) [@MirelEce](https://discourse.julialang.org/u/MirelEce)
#### Post date: [November 14, 2022, 2:51am UTC](https://discourse.julialang.org/t/gurobi-v10-and-julia/90220/1 "2022-11-14T02:51:58Z")

</div>

Hi there! I saw on Github that support for the version 10 of Gurobi is added and I just updated to that release of Gurobi; however couldn’t manage to use it in Julia (v1.7.2). I removed the package and added it again after upgrading to Gurobi v10, and when I’m trying to build Gurobi.jl, I get the error below. Would appreciate any help! Thank you!

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/jump-dev/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\mirel.julia\packages\Gurobi\WjZv8\deps\build.jl:167  
[3] include(fname::String)  
@ Base.MainInclude .\client.jl:451  
[4] top-level scope  
@ none:5  
in expression starting at C:\Users\mirel.julia\packages\Gurobi\WjZv8\deps\build.jl:160

**Unable to locate Gurobi installation. Running some common diagnostics.**

Gurobi.jl only supports the following versions:

- gurobi95
- gurobi91
- gurobi90

Did you download and install one of these versions from [gurobi.com](http://gurobi.com)?  
Installing Gurobi.jl via the Julia package manager is _not_ sufficient!

Found GUROBI\_HOME = C:\gurobi1000\win64

Does this point to the correct install location?

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

That directory has the following files:

- C:\gurobi1000\win64\bin\Gurobi100.NET.XML
- C:\gurobi1000\win64\bin\Gurobi100.NET.dll
- C:\gurobi1000\win64\bin\GurobiJni100.dll
- C:\gurobi1000\win64\bin\grb\_ts.exe
- C:\gurobi1000\win64\bin\grbcluster.exe
- C:\gurobi1000\win64\bin\grbgetkey.exe
- C:\gurobi1000\win64\bin\grbprobe.exe
- C:\gurobi1000\win64\bin\grbtune.exe
- C:\gurobi1000\win64\bin\gurobi.bat
- C:\gurobi1000\win64\bin\gurobi100.dll
- C:\gurobi1000\win64\bin\gurobi100\_light.dll
- C:\gurobi1000\win64\bin\gurobi\_cl.exe
- C:\gurobi1000\win64\bin\vslauncher.exe
- C:\gurobi1000\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 set the `GUROBI_HOME` environment variable to point to the  
install location then try again. For example (updating the path to the  
correct location if needed):

```julia
# On Windows, this might be
ENV["GUROBI_HOME"] = "C:\\Program Files\\gurobi950\\win64\\"
import Pkg
Pkg.add("Gurobi")
Pkg.build("Gurobi")

# On OSX, this might be
ENV["GUROBI_HOME"] = "/Library/gurobi950/mac64/"
import Pkg
Pkg.add("Gurobi")
Pkg.build("Gurobi")

# On Unix, this might be
ENV["GUROBI_HOME"] = "/opt/gurobi950/linux64/"
import Pkg
Pkg.add("Gurobi")
Pkg.build("Gurobi")

```

**Note: your path may differ. Check which folder you installed the Gurobi  
binary in, and update the path accordingly.**

---

<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: [November 14, 2022, 2:55am UTC](https://discourse.julialang.org/t/gurobi-v10-and-julia/90220/2 "2022-11-14T02:55:25Z")

</div>

You need to update to `v0.11.4` of Gurobi.jl: [Release v0.11.4 · jump-dev/Gurobi.jl · GitHub](https://github.com/jump-dev/Gurobi.jl/releases/tag/v0.11.4)

Check which version you have with `using Pkg; Pkg.status("Gurobi")`

You can force the version to install with `using Pkg; pkg"add Gurobi@0.11.4"`

---

<div class="post-metadata">

### Author: ![MirelEce](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mirelece/32/44367_2.png) [@MirelEce](https://discourse.julialang.org/u/MirelEce)
#### Post date: [November 14, 2022, 2:59am UTC](https://discourse.julialang.org/t/gurobi-v10-and-julia/90220/3 "2022-11-14T02:59:38Z")

</div>

Thank you so much for the fast reply, it worked!
