Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors for Pkg.add("Gurobi") #344

Closed
giualva opened this issue Sep 11, 2020 · 1 comment · Fixed by #346
Closed

Errors for Pkg.add("Gurobi") #344

giualva opened this issue Sep 11, 2020 · 1 comment · Fixed by #346

Comments

@giualva
Copy link

giualva commented Sep 11, 2020

I completely followed the directions to download and install gurobi but then then i run Pkg.add("Gurobi") it gives me an error message. Let me know what I should do!!

Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] top-level scope at /Users/giuliaalvarenga/.julia/packages/Gurobi/7YNJV/deps/build.jl:154
│  [3] include(::String) at ./client.jl:457
│  [4] top-level scope at none:5in expression starting at /Users/giuliaalvarenga/.julia/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?
│ 
│ 
│ Looking for a version of Gurobi in your path:
│ 
│ 
│ We couldn't find the `GUROBI_HOME` environment variable, but we
│ found this version of Gurobi on your path. Is this version one of
│ the supported versions listed above? If not, you should edit your
│ `PATH` to point to the correct version.
@odow
Copy link
Member

odow commented Sep 11, 2020

Follow the installation instructions: https://github.com/jump-dev/Gurobi.jl#installation

You probably need something like

ENV["GUROBI_HOME"] = "/Library/gurobi902/mac64"
] add Gurobi
] build Gurobi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants