使用源代码安装wireshark

udd*_*hav 3 software-installation

我下载wireshark-1.8.0rc2.tar.bz2并将其复制到/opt/wireshark目录并通过以下方式解压缩

sudo tar -xjvf wireshark-1.8.0rc2.tar.bz2

然后通过ls在提取的文件夹中进行操作,我找到了配置文件。

然后我做了./configure然后我遇到了这个问题:

  configure: error: I couldn't find yacc (or bison or ...); 
    make sure it's installed and in your path.
Run Code Online (Sandbox Code Playgroud)

如何解决?

小智 10

如果将来有人遇到这种情况:您可以 sudo apt-get install bison

Bison 将通过以下方式向 Wireshark 提供 yacc update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode

此外,如果您安装 Bison,您还需要sudo apt-get install flex它,因为它之后会要求它。当您使用它时,您也应该sudo apt-get install libpcap-dev这样做,因为它可能需要 pcap.h,并且它位于 -dev 包中,而不是常规包中。

在此之后,它应该是平常的make,等待......然后make install你就完成了。根据您的规格,等待部分可能是 5 分钟,只是为了构建 parlay 包。