Installing Gurobi 11.0 on Linux Error
AnsweredHi,
I am installing Gurobi 11.0 in a Linux machine. I have downloaded the package and unzipped it. In addition, I added the following commands to the `.bashrc` file:
```
export GUROBI_HOME="~/gurobi1102/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"
```
Then when I tried to run `gurobi.sh` in the Terminal, I got the following error: "/home/cguo/gurobi1102/linux64/bin/gurobi.sh: 18: /home/cguo/gurobi1102/linux64/bin/gurobi.sh: ~/gurobi1102/linux64/bin/python3.11: not found".
I found a post with a similar bug here: https://support.gurobi.com/hc/en-us/community/posts/360061876331-Installing-GUROBI-902-in-LINUX-server?input_string=Installing%20Gurobi%2011.0%20on%20Linux%20Error. However, that issue was due to an incorrect path, and I double checked my .bashrc file and it seems the paths are correct.
Also, `~/gurobi1102/linux64/bin/python3.11` correctly starts Python without problem.
Thank you,
Cheng
-
Hi Cheng,
Please note that we no longer recommend using gurobi.sh and it will soon be removed from our releases.
The gurobi.sh just provides a thin wrapper around a Python shell to include Gurobi functionality, and was built for a time when people did not know how to install Python.
These days we recommend that you install a standard version of Python and use gurobipy. Please see the following tutorial:
- Riley
0 -
Thank you, Riley.
Since I use Gurobi with Julia, I just tried to run Gurobi inside Julia and it works, despite the problem of gurobi.sh persists. I was initially confused with the bug as gurobi.sh for Gurobi 11.0 ran without problem on another machine. But it seems this bug does not interfere with Julia. Thank you again for your time and help.
Cheng
0
Please sign in to leave a comment.
Comments
2 comments