Sometimes the compiler cannot find the .so file, even if the file exists. For example, the startup file startserver, ldd can view the path of each so is basically the system path, lib or usr / lib, etc. When startserver reports an error while loading shared libraries: libzmq.so.5: cannot open shared object file: No such file or directory, the following configuration is required:
- Find so file path
# find / -name libzmq.so.5
/data/lib64/libzmq.so.5
- Append to /etc/ld.so.conf
# vim /etc/ld.so.conf
...
/data/lib64/
- Effective
# ldconfig
Execute the start file startserver again, it has returned to normal