Problem description
The following errors occur when testing UCI under Ubuntu
root@virtual-machine:/home//uci# uci
uci: error while loading shared libraries: libuci.so: cannot open shared object file: No such file or directory
Solution
Modify the/etc/ld.so.conf file, add the/usr/local/lib path at the end of the file, and execute ldconfig to take effect immediately
echo /usr/local/lib >>/etc/ld.so.conf
Testing
Enter UCI again to see the following input
root@virtual-machine:/home/uci# uci
Usage: uci [<options>] <command> [<arguments>]
Commands:
batch
export [<config>]
import [<config>]
changes [<config>]
commit [<config>]
add <config> <section-type>
add_list <config>.<section>.<option>=<string>
del_list <config>.<section>.<option>=<string>
show [<config>[.<section>[.<option>]]]
get <config>.<section>[.<option>]
set <config>.<section>[.<option>]=<value>
delete <config>[.<section>[[.<option>][=<id>]]]
rename <config>.<section>[.<option>]=<name>
revert <config>[.<section>[.<option>]]
reorder <config>.<section>=<position>
Options:
-c <path> set the search path for config files (default: /etc/config)
-d <str> set the delimiter for list values in uci show
-f <file> use <file> as input instead of stdin
-m when importing, merge data into an existing package
-n name unnamed sections on export (default)
-N don't name unnamed sections
-p <path> add a search path for config change files
-P <path> add a search path for config change files and use as default
-t <path> set save path for config change files
-q quiet mode (don't print error messages)
-s force strict mode (stop on parser errors, default)
-S disable strict mode
-X do not use extended syntax on 'show'
Read More:
- [Solved] Ubuntu Compile AOSP Error: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
- Linux Ubuntu Django Error: uwsgi: error while loading shared libraries: libpcre.so.1
- [Solved] error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such…
- How to Solve Ubuntu20.04 Compile Error:error while loading shared libraries: libncurses.so.5
- [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]
- Error while loading shared libraries [How to Solve]
- [Solved] error while loading shared libraries: libjson.so.0: cannot open shared object file: No such file or
- [Solved] error while loading shared libraries: libmpc.so.3: cannot open shared object file
- [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
- [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 while loading shared libraries: libz.so.1 [How to Solve]
- 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
- [Solved] error while loading shared libraries: libmysql.so.16
- Error while loading error while loading shared libraries [How to Solve]
- [Solved] Centos8 openssh Compile Error: error while loading shared libraries
- Linux Execution Error “service mysqld start“error while loading shared libraries: libaio.so.1“