安装 Wireshark 时出现“-qt=5 -version 返回非零退出状态”错误

安装 Wireshark 时出现“-qt=5 -version 返回非零退出状态”错误

当我想安装 Wireshark 软件时源代码在 Debian 8 Linux 发行版上,我看到以下错误消息:

...
...
checking for uic... /usr/bin/uic
checking for qtchooser... (cached) /usr/bin/qtchooser
checking for moc... /usr/bin/moc
checking for qtchooser... (cached) /usr/bin/qtchooser
checking for rcc... /usr/bin/rcc
checking for qtchooser... (cached) /usr/bin/qtchooser
checking for lrelease... /usr/bin/lrelease
checking whether lrelease -version works... no
configure: error: /usr/bin/lrelease -qt=5 -version returned non-zero exit status

需要注意的是,运行以下命令后会出现上述错误消息:

./configure --with-ssl --enable-setcap-install --with-dumpcap-group=wireshark

答案1

您需要qttools5-dev-tools安装该软件包才能构建 Wireshark 等 Qt5 应用程序。

相关内容