gpt4 book ai didi

c - Dovecot 插件 deleted_to_trash 缺少 lib.h,make 失败

转载 作者:太空宇宙 更新时间:2023-11-04 11:06:35 25 4
gpt4 key购买 nike

我正在尝试安装 Dovecot 插件 deleted_to_trash .但是,根据自述文件,我需要更新配置文件,但我不知道要为 DOVECOT_INC_PATH 填写什么。

作者放置的目录/usr/include/dovecot不存在。

如果我尝试在不更改任何内容的情况下make,我会得到:

me@cs:/my-path/dtt# make
cc \
-fPIC -shared -Wall \
-I/usr/include/dovecot \
-I/usr/include/dovecot/src \
-I/usr/include/dovecot/src/lib \
-I/usr/include/dovecot/src/lib-storage \
-I/usr/include/dovecot/src/lib-mail \
-I/usr/include/dovecot/src/lib-imap \
-I/usr/include/dovecot/src/lib-index \
-DHAVE_CONFIG_H \
src/deleted-to-trash-plugin.c -o lib_deleted_to_trash_plugin.so
In file included from src/deleted-to-trash-plugin.c:4:0:
src/deleted-to-trash-plugin.h:4:17: fatal error: lib.h: No such file or directory
compilation terminated.
make: *** [lib_deleted_to_trash_plugin.so] Error 1

我试图找到丢失的 lib.h,但没有任何用处:

me@cs:/my-path/dtt# find / -name "lib.h"
/usr/src/linux-headers-3.8.0-19-generic/include/config/rtc/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/iio/adis/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/snd/opl3/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/snd/firewire/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/snd/oxygen/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/snd/vx/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/ceph/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/x86/speedstep/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/rt2800/lib.h
/usr/src/linux-headers-3.8.0-19-generic/include/config/rt2x00/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/rtc/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/iio/adis/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/snd/opl3/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/snd/firewire/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/snd/oxygen/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/snd/vx/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/ceph/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/x86/speedstep/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/rt2800/lib.h
/usr/src/linux-headers-3.8.0-35-generic/include/config/rt2x00/lib.h

如何找到我需要的 DOVECOT_INC_PATH 值

最佳答案

我想你想从源代码编译 dovecot。我可以从下面的 url 在 dovecot-2.2.13.tar.gz 中找到 lib.h。

http://www.dovecot.org/releases/2.2/dovecot-2.2.13.tar.gz

如果您将 dovecot 作为包安装,如何安装更多与 dovecot 相关的包,如 dovecot-dev 或 dovecot-source?我想你可以找到它。

如果您无法解决问题,请将 lib.h 文件从 sources tarball 文件复制到/usr/include/dovecot/src/lib。

关于c - Dovecot 插件 deleted_to_trash 缺少 lib.h,make 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25026263/

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