libgurobi65.so: cannot open shared object file, Linux, Ubuntu 16.04, Gurobi 651, Java

934 views
Skip to first unread message

Adrian Hasse

unread,
May 2, 2016, 6:39:44 AM5/2/16
to Gurobi Optimization
hi,

this is not a question but a brief hint for people running Ubuntu and are confronted with this exception or similar errors:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/gurobi651/linux64/lib/libGurobiJni65.so: libgurobi65.so: cannot open shared object file: No such file or directory



Add a file randomLibs.conf to the directory /etc/ld.so.conf.d/

The file
randomLibs.conf has to contain the following line(if you have another version than 651 you have to change the line accordingly):
/opt/gurobi651/linux64/lib/

After editing the file run the following command in the terminal:
sudo ldconfig

More detailed information here.



I hope this will save some time.

Adrian

Dimitris Letsios

unread,
Aug 2, 2016, 2:00:12 PM8/2/16
to Gurobi Optimization
Thanks Adrian!

It did save time.

Dimitris

ivane...@gmail.com

unread,
Feb 1, 2017, 11:30:13 AM2/1/17
to Gurobi Optimization

Hi Adrian,

Thank you so much for your post¡¡¡¡¡

Iván

Adrian Hasse

unread,
Feb 2, 2017, 5:38:34 AM2/2/17
to Gurobi Optimization
Hey,

I just found another possibility (suggested here) were the following environment variables have to be set in the IDE (Eclipse, IntelliJ...):

GUROBI_HOME      = /opt/gurobi702/linux64/
GRB_LICENCE_FILE = /opt/gurobi702/linux64/gurobi.lic
LD_LIBRARY_PATH  = /opt/gurobi702/linux64/lib/
PATH             = /opt/gurobi702/linux64/bin/


The advantage is that no VM arguments and no additional config files are needed.

Adrian
Reply all
Reply to author
Forward
0 new messages