libgurobi100.so: cannot open shared object file: No such file or directory
Awaiting user inputI try to install gurobi on my linux server, however, I meet the problem:libgurobi100.so cannot open. My academic license permits version10, I also clearly examine all the Path in my bashrc file.
export GUROBI_HOME="/home/omnisky/gurobi1003/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${GUROBI_HOME}/lib"
export GRB_LICENSE_FILE="/home/omnisky/gurobi1003/gurobi.lic"
-
Official comment
This post is more than two 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. -
Hi,
Some more details would be helpful.
When are you seeing this error? Could you share the whole error message?Cheers,
David0 -
Thanks! I met this error when I invoked the gurobi package in my python program. It happened as I wrote "import gurobipy as gp".
0 -
How did you install the python package?
When using pip/conda this should taken care of. How do I install Gurobi for Python?Additionally, your environment variable should be (in case it is already set):
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"See Linux section of How do I install Gurobi Optimizer?
Cheers,
David0 -
In the Linux terminal, I use "cd" to get into the gurobi1003/linux64, where i can find a python program named "setup.py", then I use "python setup.py install" to install gurobi. Finally ,I entered "gurobi.sh", it reminded me that I have successfully installed the gurobi of version 10.0.3
0 -
I have already set the four enviroment variables(GUROBI_HOME,PATH,LD_LIBRARY_PATH,GRB_LICENSE_FILE) using "vim ~/.bashrc"
0 -
Maybe you installed Gurobi as sudo?
I would suggest you delete the current gurobipy installation (check where it is with `python3 -m pip uninstall gurobipy` and then remove the files and directories manually.
Then re-install it using pip.
Cheers,
David0
Post is closed for comments.
Comments
7 comments