We recommend placing your gurobi.lic license file in a default directory for your system. Using a non-default or alternative location is error-prone and frequently leads to issues.
Storing the license file in a default location (recommended)
The default directories where Gurobi will search for a gurobi.lic license file are:
Windows: | C:\gurobi, C:\gurobi1001 (for 10.0.1), and your home directory |
Linux: | /opt/gurobi, /opt/gurobi1001 (for 10.0.1), and your home directory |
macOS: | /Library/gurobi, /Library/gurobi1001 (for 10.0.1), and your home directory |
Note that if you place the gurobi.lic license file in your home directory, the license will only be available for your account on the computer.
Storing the license file in an alternative location
If it is necessary to store the license file in a different directory, you will need to set the system environment variable GRB_LICENSE_FILE
to point to the exact location of the file. For example, if the license file gurobi.lic is in the directory D:\work
, then set GRB_LICENSE_FILE
to D:\work\gurobi.lic
.
Common Installation issue: File location
Further information
- How to set up a Gurobi license? See Quick Start Guide for Windows, Linux, or MacOS
- How do I set system environment variables for Gurobi?
- How do I check for a valid license?
Comments
0 comments
Please sign in to leave a comment.