0
#include <apr_time.h>
导致以下编译错误:致命错误:apr_time.h:没有这样的文件或目录
fatal error: apr_time.h: No such file or directory
当我做
locate apr_time.h
它输出
/usr/include/apr-1.0/apr_time.h
所以我相信我已经正确安装了使用的库。如果我做
pkg-config --cflags --libs apr
我得到
Package apr was not found in the pkg-config search path.
Perhaps you should add the directory containing `apr.pc'
to the PKG_CONFIG_PATH environment variable
No package 'apr' found
如何确保apr_time.h
被发现?