I am trying to execute a Gurobi c++ compiled file in a cluster node, but I do not know if it is possible in the way I am trying. Let me explain the situation:
1/ Inside a folder named "Example", I have the following elements:
i) The Gurobi example file diet_c++.cpp.
ii) The folder gurobi810 (the one resulting from extracting gurobi8.1.0_linux64.tar.gz). I have copied this folder from "/opt" so I can compile the cpp file using relative paths.
2/ I compile diet_c++.cpp (in Linux) with the following command (see below) and it works perfectly (both compilation and execution)
g++ -w -Wall diet_c++.cpp -o executable2 -I./gurobi810/linux64/include -L./gurobi810/linux64/lib -lgurobi_g++5.2 -lgurobi81
3/ Now, I would like to execute the resulting compiled file (executable2) in a cluster (run also with a Linux OS) so I do the following: I move the folder "Example", with "executable2" and the folder "gurobi810", from my computer to my user directory in the cluster. Then, I try to execute the file executable2, but I obtain the following error:
./executable2: error while loading shared libraries: libgurobi81.so: cannot open shared object file: No such file or directory
Any idea of what can I do to achieve my goal?
Thanks in advance!
Please sign in to leave a comment.