Cannot install GUROBI on Mac
I just follow the guide, but when I enter the license on the command window, it shows permission denied
And my gurobi default location is on application. How to install it on the system library?
Here is what the command window shows:
-bash-3.2$ grbgetkey 14f8d65a-de48-11e9-ba22-0a7c4f30bdbe
-bash: ./grbgetkey: Permission denied
-
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?. -
The error message indicates you do not have permission to write to the specified location. We suggest you save the license file in one of the three default locations, your home directory, /Library/gurobi or /Library/gurobi811. Although it is allowed, saving the license file to a non-default location can be error prone. Please read the documentation in the following link to learn more.
https://www.gurobi.com/documentation/8.1/quickstart_mac/retrieving_a_free_academic.html
0 -
How do I change the license file to the default location?
0 -
Correction: The error message
-bash: ./grbgetkey: Permission denied
indicates you do not have permission to run grbgetkey. Please check your permissions
ls -l
to change permissions to execute runchmod u+x grbgetkey
Did you install Gurobi as SU? You many need to change other file permissions too.
0 -
When I open the gurobi, the command window shows up with following commands:
-bash-3.2$ exec gurobi.sh
-bash: exec: gurobi.sh: not found
0 -
Please try
which grbgetkey
this will show us where grbgetkey is located.
then execute the following, replacing <grbgetkey directory> and <directory of the symbolic link> with the directories shown from the which grbgetkey command
ls -al <grbgetkey directory>
ls -al <directory of the symbolic link>
Please post the results.
0 -
It doesn't work
-bash-3.2$ which grbgetkey
./grbgetkey
-bash-3.2$ ls -al <./grbgetkey directory>
-bash: syntax error near unexpected token `newline'
-bash-3.2$ ls -al ./grbgetkey directory
ls: directory: No such file or directory
-rwxr--r-- 1 xhs staff 0 Sep 23 19:18 ./grbgetkey
-bash-3.2$ ls -al directory of the symbolic link
ls: directory: No such file or directory
ls: link: No such file or directory
ls: of: No such file or directory
ls: symbolic: No such file or directory
ls: the: No such file or directory
-bash-3.2$
0 -
This looks strange to me:
-rwxr--r-- 1 xhs staff 0 Sep 23 19:18 ./grbgetkey
You should be running the grbgetkey that is typically in /Library/gurobi_server811/mac64/bin/
- Can you tell us a bit about how you installed Gurobi?
- Did you move any of the files once they were installed?
- Is Gurobi installed in /Library/gurobi811/mac64?
In any case, I'd suggest at this point that you reinstall Gurobi as it appears that there is a problem with the installation.
0
Post is closed for comments.
Comments
8 comments