![配置:错误:未找到 avahi 开发标头](https://linux22.com/image/986524/%E9%85%8D%E7%BD%AE%EF%BC%9A%E9%94%99%E8%AF%AF%EF%BC%9A%E6%9C%AA%E6%89%BE%E5%88%B0%20avahi%20%E5%BC%80%E5%8F%91%E6%A0%87%E5%A4%B4.png)
我无法安装 avahi
错误是:
checking for AVAHI... yes
checking avahi-client/client.h usability... yes
checking avahi-client/client.h presence... yes
checking for avahi-client/client.h... yes
checking avahi-glib/glib-malloc.h usability... no
checking avahi-glib/glib-malloc.h presence... no
checking for avahi-glib/glib-malloc.h... no
checking for avahi_client_new in -lavahi-client... yes
configure: error:
avahi development headers not found.
Use --disable-avahi if you do not need avahi (Bonjour) support.
答案1
您还需要 libavahi 开发包。由于不知道您要编译什么,我只能为您提供可用包的列表。检查此链接。
但我相信,你需要libavahi-glib-dev
:
sudo apt-get install libavahi-glib-dev
缺少的头文件avahi-glib/glib-malloc.h
位于此包中。
答案2
这就是我所需要的:
libavahi-client-dev
libavahi-core-dev