grbgetkey: command not found
Answered

Hi, I am currently installing Gurobi in a cloud-based Linux system. You can see clearly that there is a file named grbgetkey. But the bash still tells me "command not found".
I have already set the environmental variables. How can I fix it?
0
-
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 try Gurobot, our chatbot interface offering instant, expert-level support. -
I have redone all the steps as well as reboot the system multiple times. But the problem is always there.
0 -
I also have tried the method of specifying full path of the command. Still doesn't work.
0 -
It looks like the \( \texttt{PATH} \) variable still does not include \( \texttt{/opt/gurobi951/linux64/bin} \). What is the output of \( \texttt{echo \$PATH} \)? How did you set the environment variables?
- If you are in the \( \texttt{/opt/gurobi951/linux64/bin} \) directory, try running \( \texttt{./grbgetkey <code>} \) instead of \( \texttt{grbgetkey <code>} \). This should work even if your \( \texttt{PATH} \) variable does not include \( \texttt{/opt/gurobi951/linux64/bin} \).
- When running \( \texttt{grbgetkey} \) by specifying the full path to the executable, you need to include a \( \texttt{/} \) before \( \texttt{opt} \). That is, \( \texttt{/opt/gurobi951/linux64/bin/grbgetkey <code>} \) instead of \( \texttt{opt/gurobi951/linux64/bin/grbgetkey <code>} \).
0 -
Thanks, Eli
I have resolved the problem.
0
Post is closed for comments.
Comments
5 comments