Please provide more details
You can obtain useful proofs about your binary (simu) with the file
command:
file path/to/the/simu
You can also double check with ldd
the exact name of the libraries the binary is looking for:
ldd path/to/the/simu
Please provide the output of the previous commands in order to help answering your question.
Meanwhile, one possible answer could be..
I suppose the binary has been compiled on a RedHat/Fedora/Centos by using their compat-lib* package (that provides the libstdc++-libc
lib).
I think/suppose there is not the same compat-*
package and library in Mint/Ubuntu, but being compiled with such a library, perhaps, it should work by creating a proper symbolic link, by hand, in library path. The symbolic link should point to one of the installed libstdc++
dynamic libraries in your system)
e.g., you can create a link from /usr/lib/x86_64-linux-gnu/libstdc++-libc6.1-1.so.2
to /usr/lib/x86_64-linux-gnu/libstdc++.so.?
where ? is the smaller version number that you find in your system.
Command example (you have to adapt it for sure):
sudo ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/libstdc++-libc6.1-1.so.2
There are also cases (depending the binary is compiled on 32 or 64 bits) where you need to change the path x86_64-linux-gnu
into i386-linux-gnu
. You have to try and adapt to your case.
This is an hypothetical rough hack, no guarantees :-) in fact I'm just curious.
Cleaner way
In order to not pollute your OS/system with links, you can create a new folder, name it "customlibs", in the same place you have the program/binary.
You can create the links for each not-matching library filenames, inside that folder, e.g.:
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./customlibs/libstdc++-libc6.1-1.so.2
Then, in order to execute the program, open a terminal and from cli change the LD_LIBRARY
enviroment variable with this command:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/absolute/path/to/customlibs
in this way, the system looks in customlibs
too for libs.
In the same terminal, execute the program:
./simu
In this way you don't mess with the system.
You need to be very lucky
It is quite simpler to perform the job in "Cleaner way" when copying the required libraries from the system the binary has been compiled in.
It is also a more reliable way, I have performed this few times.
The hack we are performing now, linking with the current system libs, is a bit "harder". Good luck.