yangg518

问题:在运行程序时,报如下故障
./smart_biz: error while loading shared libraries: libredisclient.so: cannot open shared object file: No such file or directory

①库文件不存在,需要添加库文件    ②系统64位,而程序库文件只是32位的

 

1.查找是否存在该库文件,注:文件权限

find / -name " libredisclient.so"

 

2.打印可执行档依赖的共享库文件

ldd smart_biz

 

3.查看该库文件信息

readelf -h /usr/local/lib/libredisclient.so

 

4.加入需要的苦文件

vi /etc/ld.so.conf 编辑完成后,执行命令:sudo /sbin/ldconf

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-10-14
  • 2021-11-23
  • 2021-06-13
  • 2022-12-23
  • 2021-11-19
  • 2021-07-25
  • 2021-10-14
猜你喜欢
  • 2021-11-06
  • 2022-12-23
  • 2021-08-19
  • 2021-09-27
  • 2021-09-09
相关资源
相似解决方案