Gurobi license overlapping
AnsweredHi,
I am installing Gurobi on the server on my account but when I type: gurobi.sh I get the message:
/opt/gurobi/linux64/bin/gurobi.sh: line 17: /home/ktaulant/gurobi902/linux64/bin/python2.7: No such file or directory
The problem is that for some reasons gurobi does look for my license which is located in /home/ktaulant but instead looks at another user license which has already expired. So when I type:which grbgetkey I get the message: /opt/gurobi/linux64/bin/grbgetkey. However this is an old license by another user. How can I tell gurobi to look at my license and and solve this issue?
Thanks!
"
-
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 \( \texttt{grbgetkey} \) is an executable used to retrieve a license, but it is not a license itself.
It sounds like \( \texttt{/opt/gurobi/linux64/bin}\) is part of your \( \texttt{PATH} \) environment variable. So, you could fix this by modifying the necessary environment variables so the Gurobi 9.0.2 directories show up at the beginning. Slightly modifying the bash commands from the Linux installation guide, we can do:
export GUROBI_HOME="/home/ktaulant/gurobi902/linux64"
export PATH="${GUROBI_HOME}/bin:${PATH}"
export LD_LIBRARY_PATH="${GUROBI_HOME}/lib"If \( \texttt{LD_LIBRARY_PATH} \) is already set, replace the last command with the following:
export LD_LIBRARY_PATH="${GUROBI_HOME}/lib:${LD_LIBRARY_PATH}"
For a permanent solution, these commands should be added to your \( \texttt{~/.bashrc} \) file. If you do this, start a new bash session for the changes to take effect.
After you get everything working, it would be good to remove \( \texttt{/opt/gurobi/linux64} \) and its subdirectories from your environment variables.
0 -
Hi Eli, It works now. Thank you very much!
0
Post is closed for comments.
Comments
3 comments