简体   繁体   English

严重错误:apr_time.h:没有这样的文件或目录

[英]fatal error: apr_time.h: No such file or directory

#include <apr_time.h>

Is causing the following compile error: 导致以下编译错误:

fatal error: apr_time.h: No such file or directory

When I do 当我做

locate apr_time.h

It outputs 输出

/usr/include/apr-1.0/apr_time.h

So I believe I have correctly installed the library using sudo apt-get install libapr1-dev . 所以我相信我已经使用sudo apt-get install libapr1-dev正确安装了该库。 If I do 如果我做

pkg-config --cflags --libs apr

I get 我懂了

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

How do I make sure that apr_time.h is found? 如何确保找到apr_time.h

Try 尝试

#include <apr-1.0/apr_time.h>

instead. 代替。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM