# Gurobi not running the right version?

**URL:** <https://discourse.julialang.org/t/gurobi-not-running-the-right-version/72808>\
**Category:** Optimization (Mathematical)\
**Tags:** question, package\
**Created:** [December 9, 2021, 8:05am UTC](https://discourse.julialang.org/t/gurobi-not-running-the-right-version/72808 "2021-12-09T08:05:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_Sevaux](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marc_sevaux/32/14986_2.png) [@Marc\_Sevaux](https://discourse.julialang.org/u/Marc_Sevaux)\
**Post date:** [December 9, 2021, 8:05am UTC](https://discourse.julialang.org/t/gurobi-not-running-the-right-version/72808/1 "2021-12-09T08:05:10Z")

</div>

Hi,  
I’ve installed the latest version of gurobi solver (9.5.0) and reinstalled the Gurobi package.  
When I try to solve a ILP model, it seems that the gurobi solver is still using a previous version (9.1.2).  
Did I miss something?

```julia
Academic license - for non-commercial use only - expires 2022-12-03
Warning for adding constraints: zero or small (< 1e-13) coefficients, ignored
Gurobi Optimizer version 9.1.2 build v9.1.2rc0 (linux64)

```

---

<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 9, 2021, 8:18am UTC](https://discourse.julialang.org/t/gurobi-not-running-the-right-version/72808/2 "2021-12-09T08:18:38Z")

</div>

Did you set GUROBI\_HOME appropriately when reinstalling Gurobi.jl?

You can also rerun `Pkg.build("Gurobi")` to force the rebuild.

---

<div class="post-metadata">

**Author:** ![Marc\_Sevaux](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marc_sevaux/32/14986_2.png) [@Marc\_Sevaux](https://discourse.julialang.org/u/Marc_Sevaux)\
**Post date:** [December 9, 2021, 8:24am UTC](https://discourse.julialang.org/t/gurobi-not-running-the-right-version/72808/3 "2021-12-09T08:24:45Z")

</div>

Thanks for the tip.  
I got my answer when building:

```julia
Gurobi.jl only supports the following versions:
 - gurobi91
 - gurobi90

```

I guess we have to wait until the Gurobi.jl package will be updated.

---

<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 9, 2021, 8:43am UTC](https://discourse.julialang.org/t/gurobi-not-running-the-right-version/72808/4 "2021-12-09T08:43:11Z")

</div>

Gurobi.jl has been updated. You just need to update your packages. You need Gurobi.jl v0.10.1

---

<div class="post-metadata">

**Author:** ![Marc\_Sevaux](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marc_sevaux/32/14986_2.png) [@Marc\_Sevaux](https://discourse.julialang.org/u/Marc_Sevaux)\
**Post date:** [December 9, 2021, 9:20am UTC](https://discourse.julialang.org/t/gurobi-not-running-the-right-version/72808/5 "2021-12-09T09:20:31Z")

</div>

@odow,  
Many thanks, it works now.
