Linux software lacks dynamic link library. So what to do?

  

Linux sometimes has errors when installing software, suggesting that the dynamic link library .so is missing. What is the cause of this problem? How to solve it? The following small series will introduce you to the Linux software prompts to lack the dynamic link library .so method, let's understand it.

suggesting the absence of dynamic link library .so when

Linux to install the software:

1. lack of dynamic link libraries .so-can not open shared object file: No such file or directory < Br>

2. Missing dynamic link library.so.0-cannot open shared object file:No such file or directory

3.Lost dynamic link library.so.1-cannot open shared object file: No such file or directory

can be directly: # sudo ldconfig

Recompile, if not, do the following:

There are three main methods to summarize:

1. Use ln to link the required so files to the default directories /usr/lib or /lib

ln -s /where/you/install/lib/*.so /usr/libsudo ldconfig

2.Modify LD_LIBRARY_PATH

export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATHsudo ldconfig

3. Modify /etc/ld. So.conf, then refresh

vim /etc/ld.so.conf

add /where/you/install/lib

sudo ldconfig

Above When installing Linux is suggested that the lack of software provides solutions to the dynamic link library, and a total of three prompt case, the solution is to have three, to solve the problem depending on the circumstances.

Copyright © Windows knowledge All Rights Reserved