标签:libev
用./configure、make、make install安装完libev后,写一个简单程序server.c,编译,gcc server.c -o server lev。
产生如下错误:error while loading shared libraries: libev.so.4: cannot open shared object file: No such file or directory
解决方案:
在安装libev时,configure要指定安装路径,./configure --prefix=/usr,然后make && make install,不然默认安装在/usr/local/lib中,搜索路径搜不到
[libev]error while loading shared libraries: libev.so.4
标签:libev
原文地址:http://blog.csdn.net/chienchia/article/details/46052421