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 and your home directory (C:\Users\yourusername) |
Linux: | /opt/gurobi and your home directory (/home/yourusername) |
macOS: | /Library/gurobi and your home directory (/Users/yourusername) |
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
.
Important note: the environment variable should point to the license key file itself, not to the directory that contains the file.
Common Installation issue: File location
Comments
0 comments
Article is closed for comments.