Unable to install Gurobi 9.1

I’m having trouble installing Gurobi 9.1. My license is up to date and the new Gurobi has been installed in the correct location. I’ve also added the correct path prior to building the package: ENV["GUROBI_HOME"] = "/Library/gurobi910/mac64".

Please find the error message below:

Error building `Gurobi`: 
│ ERROR: LoadError: Unable to locate Gurobi installation. If the advice above did not help,
│ open an issue at https://github.com/jump-dev/Gurobi.jl and post the full
│ print-out of this diagnostic attempt.
│ 
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] top-level scope at /Users/Hassan/.julia/packages/Gurobi/2Gmsv/deps/build.jl:153
│  [3] include(::String) at ./client.jl:439
│  [4] top-level scope at none:5
│ in expression starting at /Users/Hassan/.julia/packages/Gurobi/2Gmsv/deps/build.jl:151
│ 
│ **Unable to locate Gurobi installation. Running some common diagnostics.**
│ 
│ Gurobi.jl only supports the following versions:
│ 
│  - gurobi90
│ 
│ Did you download and install one of these versions from gurobi.com?
│ 
│ Found GUROBI_HOME =  /Library/gurobi910/mac64
│ 
│ Does this point to the correct install location?
│ 
│ We're going to look for the Gurobi library in this directory:
│     /Library/gurobi910/mac64/lib
│ 
│ That directory has the following files:
│ 
│  - /Library/gurobi910/mac64/lib/gurobi-javadoc.jar
│  - /Library/gurobi910/mac64/lib/gurobi.jar
│  - /Library/gurobi910/mac64/lib/gurobi.py
│  - /Library/gurobi910/mac64/lib/gurobi91.netstandard20.dll
│  - /Library/gurobi910/mac64/lib/gurobi91.netstandard20.xml
│  - /Library/gurobi910/mac64/lib/libGurobiJni91.jnilib
│  - /Library/gurobi910/mac64/lib/libgurobi910.dylib
│  - /Library/gurobi910/mac64/lib/libgurobi91_light.dylib
│  - /Library/gurobi910/mac64/lib/libgurobi_c++.a
│  - /Library/gurobi910/mac64/lib/libgurobi_g++4.2.a
│  - /Library/gurobi910/mac64/lib/python2.7
│  - /Library/gurobi910/mac64/lib/python3.6
│  - /Library/gurobi910/mac64/lib/python3.7
│  - /Library/gurobi910/mac64/lib/python3.8
│  - /Library/gurobi910/mac64/lib/python3.9
│  - /Library/gurobi910/mac64/lib/rootcert.pem
│ 
│             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):
│ ```
│ # On Windows, this might be
│ ENV["GUROBI_HOME"] = "C:\\Program Files\\gurobi902\\win64\\"
│ import Pkg
│ Pkg.add("Gurobi")
│ Pkg.build("Gurobi")
│ 
│ # On OSX, this might be
│ ENV["GUROBI_HOME"] = "/Library/gurobi902/mac64/"
│ import Pkg
│ Pkg.add("Gurobi")
│ Pkg.build("Gurobi")
│ 
│ # On Unix, this might be
│ ENV["GUROBI_HOME"] = "/opt/gurobi902/linux64/"
│ import Pkg
│ Pkg.add("Gurobi")
│ Pkg.build("Gurobi")
│ ```

Thank you.

Use the latest Gurobi.jl@v0.9.3. It supports Gurobi 9.1.

3 Likes

Worked like a charm. Thank you!

1 Like