Error while loading shared libraries: libgpm.so.2: cannot open

Did this:

export PATH=$PATH:/etc/mc/usr/bin (тут лежит бинарный файл mc); export PATH=$PATH:/usr/lib64 (тут лежит libgpm.so.2). 

    1 answer 1

    The PATH environment variable is in no way (!!!) related to the so-shek search path. If you want to act through environment variables, do this:

     export LD_LIBRARY_PATH=/home/..... 

    But it is better to do it "forever" using the utility.

     /sbin/ldconfig <Каталог, в котором лежит Ваша so-шка> 

    The utility will cache your library and store it in the system as a whole.

    • This solution did not work: / sbin / ldconfig / usr / lib64 - Radik
    • @ Radik This solution didn’t work - can you give more details? What did you do and what was the result? - Sergey
    • / sbin / ldconfig / usr / lib64 - executed the command exactly as you said. Fulfilled without errors. Then I try to run mc. Mistake. The same. Error while loading shared libraries: libgpm.so.2: cannot open shared object file: No such file or directory - Radik