When running the program, the following errors occur:
error while loading shared libraries: libXXXXXXX.so.1: cannot open shared object file: No such file or directory
1. First open the/etc/ld.so.conf file
2. Add the directory where the dynamic library file is located: execute VI/etc/ld.so.conf, and add “/usr/local/lib” under “include LD.So.Conf.d/*.Conf”.
3. After saving, execute:/SBIN/ldconfig – V on the command line terminal; Its function is to cache the library files under the path listed in the file/etc/ld.so.conf to/etc/ld.so.cache for use. Therefore, when some library files are installed or/etc/ld.so.conf is modified to add a new search path for the library, it is necessary to run ldconfig to cache all library files into the file/etc/ld.so.cache. If it is not done, the newly installed library may not be found.
Read More:
- [Solved] error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such…
- [Solved] mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
- Error while loading shared libraries [How to Solve]
- [Solved] error while loading shared libraries: libmpc.so.3: cannot open shared object file
- [Solved] error while loading shared libraries: libjson.so.0: cannot open shared object file: No such file or
- [Solved] ××: error while loading shared libraries: ××.so.19: cannot open shared object file: No such file or directory
- Error: loading shared libraries: cannot open shared object file: No such file or directory
- [Solved] gawk: error while loading shared libraries: libreadline.so.4
- error while loading shared libraries: libmetis.so [How to Solve]
- Centos7.2 Install vscode Error: error while loading shared libraries: libxkbcommon.so.0: cannot open shared pro
- error while loading shared libraries: libz.so.1 [How to Solve]
- [Solved] error while loading shared libraries: libmysql.so.16
- [Solved] Ubuntu Compile AOSP Error: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
- [Solved] /usr/local/libexec/mecab/mecab-dict-index: error while loading shared libraries: libmecab.so.2: cannot open shared object file: No such file or directory
- [Solved] Centos8 openssh Compile Error: error while loading shared libraries
- Error while loading error while loading shared libraries [How to Solve]
- Linux Ubuntu Django Error: uwsgi: error while loading shared libraries: libpcre.so.1
- How to Solve Ubuntu20.04 Compile Error:error while loading shared libraries: libncurses.so.5
- [Solved] Ubuntu Execute uci Error: uci: error while loading shared libraries: lib
- Linux Execution Error “service mysqld start“error while loading shared libraries: libaio.so.1“