error while loading shared libraries: libzmq.so.5: cannot open shared object file: No such file or d

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

Published 141 original articles · Like 318 · Visit 270,000+

Guess you like

Origin blog.csdn.net/Sunny_Future/article/details/105410625