error while loading shared libraries

created at 09-06-2021 views: 12

solution

step1: First check the dependencies of the execution program

>>> ldd [program file]
    linux-gate.so.1 =>  (0xf7ef9000)
    libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7eba000)
    libboost_locale.so.1.65.1 => not found
    libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7d43000)
    libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7ced000)
    libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7cd0000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7b19000)
    /lib/ld-linux.so.2 (0xf7efb000)

You can see that there are many dependencies, some of which are not found.
So the problem is very clear. Just find a dependency and find that it is all under the /lib/i386-linux-gnu/ folder. Then since it can't be found, it means that there is no under this folder.
Just put the corresponding dependency package in this location.

created at:09-06-2021
edited at: 09-06-2021: