首页 > 系统服务 > 详细

linux编译找不到库:error while loading shared libraries: libevent-2.2.so.1: cannot open shared object file: No such file or directory

时间:2021-02-22 20:25:29      阅读:42      评论:0      收藏:0      [点我收藏+]

首先查找库文件是否存在

sudo find / -name libevent-2.2.so.1

 

结果发现在

/usr/local/lib/libevent-2.2.so.1

 

建立软链接:

 sudo ln -s /usr/local/lib/libevent-2.2.so.1 /usr/lib/libevent-2.2.so.1

 

解决~

 

【转】:https://www.cnblogs.com/chendaye666/p/13210513.html

linux编译找不到库:error while loading shared libraries: libevent-2.2.so.1: cannot open shared object file: No such file or directory

原文:https://www.cnblogs.com/hshy/p/14431908.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!