gpt4 book ai didi

compiler-errors - fatal error : apr_time.h: No such file or directory

转载 作者:行者123 更新时间:2023-12-02 10:51:42 32 4
gpt4 key购买 nike

#include <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

因此,我相信我已经使用 sudo apt-get install libapr1-dev正确安装了该库。如果我做
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

最佳答案

尝试

#include <apr-1.0/apr_time.h>

代替。

关于compiler-errors - fatal error : apr_time.h: No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26316807/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com