jump-dev / Gurobi.jl

A Julia interface to the Gurobi Optimizer
http://www.gurobi.com/
MIT License
221 stars 80 forks source link

Install Issue #549

Closed chelseas closed 7 months ago

chelseas commented 7 months ago

I seem to be following all the instructions but still getting errors:

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

Gurobi.jl only supports the following versions:

 - gurobi91
 - gurobi90

Did you download and install one of these versions from gurobi.com?
Installing Gurobi.jl via the Julia package manager is _not_ sufficient!

Found GUROBI_HOME =  /Library/gurobi912/mac64

Does this point to the correct install location?

We're going to look for the Gurobi library in this directory:
    /Library/gurobi912/mac64/lib

That directory has the following files:

 - /Library/gurobi912/mac64/lib/gurobi-javadoc.jar
 - /Library/gurobi912/mac64/lib/gurobi.jar
 - /Library/gurobi912/mac64/lib/gurobi.py
 - /Library/gurobi912/mac64/lib/gurobi91.netstandard20.dll
 - /Library/gurobi912/mac64/lib/gurobi91.netstandard20.xml
 - /Library/gurobi912/mac64/lib/libGurobiJni91.jnilib
 - /Library/gurobi912/mac64/lib/libgurobi91.dylib
 - /Library/gurobi912/mac64/lib/libgurobi91_light.dylib
 - /Library/gurobi912/mac64/lib/libgurobi_c++.a
 - /Library/gurobi912/mac64/lib/libgurobi_g++4.2.a
 - /Library/gurobi912/mac64/lib/python2.7
 - /Library/gurobi912/mac64/lib/python3.6
 - /Library/gurobi912/mac64/lib/python3.7
 - /Library/gurobi912/mac64/lib/python3.8
 - /Library/gurobi912/mac64/lib/python3.9
 - /Library/gurobi912/mac64/lib/rootcert.pem

We were looking for (but could not find) a file named like
`libgurobiXXX.so`, `libgurobiXXX.dylib`, or `gurobiXXX.dll`.

Platform: Apple M2 Pro Ventura 13.6.3 (22G436) Julia 1.9.2

odow commented 7 months ago

You have an Apple M2, but you are using a very old version of Gurobi.

You need to install and use the x86_64 (Rosetta) build of Julia, or you need to update to a more recent version of Gurobi and Gurobi.jl.

chelseas commented 7 months ago

I have installed the latest gurobi (11) and it seems to be working. I think before my environment did not allow me to use gurobi > 9 but I have cleared up the requirements.