××: error while loading shared libraries: ××. so. 19: cannot open shared object file: No such file or directory
When starting some programs, the corresponding link library could not find a solution
[root@feng1 build]# ttyd --help
ttyd: error while loading shared libraries: libwebsockets.so.19: cannot open shared object file: No such file or directory
[root@feng1 build]# ttyd --help
ttyd: error while loading shared libraries: libjson-c.so.5: cannot open shared object file: No such file or directory
This means that the program needs libwebsockets.so.19
and libjson-c.so.5
the functions in the two dynamic link libraries can not be found in the corresponding directory. The dynamic link library under Linux is composed of LD So is responsible for loading, and his configuration file is in etc/LD.so.conf
, it is found that there is really no ××.So
file under/usr/local/lib configured, we can manually add the specified path to solve the error problem
/environment/libwebsockets/build/lib ## libwebsockets.so.19
/cpack/json-c/build ## libjson-c.so.5
Then refresh the cache and run it again
[root@feng1 build]# sudo ldconfig
[root@feng1 build]# ttyd --help
ttyd is a tool for sharing terminal over the web
USAGE:
ttyd [options] <command> [<arguments...>]
VERSION:
1.6.3-3e37e33
OPTIONS:
-p, --port Port to listen (default: 7681, use `0` for random port)
-i, --interface Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)
-c, --credential Credential for basic authentication (format: username:password)
-H, --auth-header HTTP Header name for auth proxy, this will configure ttyd to let a HTTP reverse proxy handle authentication
-u, --uid User id to run with
-g, --gid Group id to run with
-s, --signal Signal to send to the command when exit it (default: 1, SIGHUP)
-w, --cwd Working directory to be set for the child program
-a, --url-arg Allow client to send command line arguments in URL (eg: http://localhost:7681?arg=foo&arg=bar)
-R, --readonly Do not allow clients to write to the TTY
-t, --client-option Send option to client (format: key=value), repeat to add more options
-T, --terminal-type Terminal type to report, default: xterm-256color
-O, --check-origin Do not allow websocket connection from different origin
-m, --max-clients Maximum clients to support (default: 0, no limit)
-o, --once Accept only one client and exit on disconnection
-B, --browser Open terminal with the default system browser
-I, --index Custom index.html path
-b, --base-path Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128)
-P, --ping-interval Websocket ping interval(sec) (default: 5)
-S, --ssl Enable SSL
-C, --ssl-cert SSL certificate file path
-K, --ssl-key SSL key file path
-A, --ssl-ca SSL CA file path for client certificate verification
-d, --debug Set log level (default: 7)
-v, --version Print the version and exit
-h, --help Print this text and exit
Visit https://github.com/tsl0922/ttyd to get more information and report bugs.
[root@feng1 build]#
Read More:
- [Solved] error while loading shared libraries: libjson.so.0: cannot open shared object file: No such file or
- [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
- Error: loading shared libraries: cannot open shared object file: No such file or directory
- [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
- [Solved] error while loading shared libraries: libmpc.so.3: cannot open shared object file
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- Centos7.2 Install vscode Error: error while loading shared libraries: libxkbcommon.so.0: cannot open shared pro
- Petalinux Failed to open PetaLinux lib: librdi_commonxillic.so: cannot open shared object file:
- [Solved] openssl error: libcrypto.so.1.0.0: cannot open shared object file: Error 40
- error while loading shared libraries: libmetis.so [How to Solve]
- error while loading shared libraries: libz.so.1 [How to Solve]
- [Solved] gawk: error while loading shared libraries: libreadline.so.4
- [Solved] error while loading shared libraries: libmysql.so.16
- [Solved] ImportError:lib***.so–cannot open shared object file: No such…(pycharm/clion Error but shell No Error)
- 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
- error while loading shared libraries [How to Solve]