error while loading shared libraries: libxxx.so: cannot open shared object file: No such file or directory

发布时间 2023-03-29 15:25:37作者: 秋来叶黄

发生这种问题就在于编译程序链接的库在运行时找不到,或者不存在,或者版本不正确等。使用ldd 你的应用程序|grep -i "libxxx"来查看程序中具体链接的库的位置和版本号,然后查看对应位置下是否有该共享库,如果没有,需要确定编译的时候指定的位置是否正确,如果仅仅是别名的问题,可以用ln创建一个链接