error while loading shared libraries: libjthread-1.2.1.so怎么回事

arm1982 2007-04-26 03:36:21
我已经编译出libjthread-1.2.1.so,但是当运行程序时出现
error while loading shared libraries: libjthread-1.2.1.so: cannot open shared object file: No such file or directory
请高人指点一下
...全文
415 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
arm1982 2007-04-27
  • 打赏
  • 举报
回复
多谢!问题已经解决
x86 2007-04-26
  • 打赏
  • 举报
回复
确认libjthread-1.2.1.so是否在共享库搜索路径里,查看文件/etc/ld.so.conf

你可以将so复制到/usr/lib或者将其所在目录添加到/etc/ld.so.conf
然后运行命令ldconfig -v

或者这样执行你的程序:
LD_LIBRARY_PATH=path_to_libjthread ./test
其中path_to_libjthread是你的库所在目录,test是你的测试程序

23,124

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧