libuuid.so: cannot open shared object file: No such file or directory

在玩ngx-lua时候有个 resty-uuid  需要引用 libuuid.so 动态库
打印log提示信息是这样的:
libuuid.so: cannot open shared object file: No such file or directory

解决方案:
[root@iZwz9afh123bcjp3Z ~]#yum install libuuid libuuid-devel 
[root@iZwz9afh123bcjp3Z ~]#ln -s /lib64/libuuid.so.1.3.0 /usr/lib64/libuuid.so
[root@iZwz9afh123bcjp3Z ~]#ln -s /usr/lib64/libuuid.so /usr/local/openresty/lualib/resty/libuuid.so
[root@iZwz9afh123bcjp3Z ~]# ldconfig














 

posted @ 2017-03-30 20:34  诗兄  阅读(2490)  评论(0编辑  收藏  举报