Gurobi building error
Answered
Building Gurobi → `C:\Users\yalwesa1\.julia\packages\Gurobi\iIN92\deps\build.log` ┌ Error: 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 C:\Users\yalwesa1\.julia\packages\Gurobi\iIN92\deps\build.jl:161 │ [3] include(::String) at .\client.jl:457 │ [4] top-level scope at none:5 │ in expression starting at C:\Users\yalwesa1\.julia\packages\Gurobi\iIN92\deps\build.jl:155 │ │ **Unable to locate Gurobi installation. Running some common diagnostics.** │ │ Gurobi.jl only supports the following versions: │ │ - gurobi90 │ - gurobi91 │ │ Did you download and install one of these versions from gurobi.com? │ Installing Gurobi.jl via the Julia package manager is _not_ sufficient! │ │ │ We could not find a version of Gurobi in your `PATH`, and we could │ not find the environment variable `GUROBI_HOME`. │ │ │ 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\\gurobi910\\win64\\" │ import Pkg │ Pkg.add("Gurobi") │ Pkg.build("Gurobi") │ │ # On OSX, this might be │ ENV["GUROBI_HOME"] = "/Library/gurobi910/mac64/" │ import Pkg │ Pkg.add("Gurobi") │ Pkg.build("Gurobi") │ │ # On Unix, this might be │ ENV["GUROBI_HOME"] = "/opt/gurobi910/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.** └ @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:949
0
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Julia should be compatible with Gurobi 9.1 - maybe you just have to update your Julia version?
Please also check where Julia is looking for your Gurobi installation. This is usually done by inspecting the environment variable
GUROBI_HOME
that is set when installing Gurobi.0
Post is closed for comments.
Comments
2 comments