用./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中,搜索路径搜不到
时间: 2024-10-27 12:47:28