Arch Linux:生成wiresharkgit错误(语法错误?)

2024-04-23 21:02:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用ArchLinux 64位,同时安装了python2和python3。你知道吗

我正在尝试按照linked instructions构建wireshark-git。你知道吗

我已经尝试手动构建包,并使用yaourt。此外,我还尝试根据软件包评论页上的建议更改PKGBUILD:

Change:

"/usr/lib/python2.7/Tools/scripts/reindent.py $srcdir/$_svnmod/tools/ncp2222.py"

to:

/usr/bin/python2 /usr/lib/python2.7/Tools/scripts/reindent.py </code>

我可以“makepkg”,然后“/configure--with ssl”。但是,当我尝试运行最终的“make”来构建可安装文件时,总是会出现以下错误:

make[2]: Leaving directory '/tmp/builds/wireshark-git/src/wireshark/packaging'
Making all in help
make[2]: Entering directory '/tmp/builds/wireshark-git/src/wireshark/help'
  GEN      faq.txt
  File "./../tools/html2text.py", line 332
    self.o("][" + `a['count']` + "]")
              ^
SyntaxError: invalid syntax
Makefile:684: recipe for target 'faq.txt' failed
make[2]: *** [faq.txt] Error 1
make[2]: Leaving directory '/tmp/builds/wireshark-git/src/wireshark/help'
Makefile:3458: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/builds/wireshark-git/src/wireshark'
Makefile:2058: recipe for target 'all' failed
make: *** [all] Error 2

我也安装了wireshark gtk。安装了Base devel,libsmi也是如此。因此,这个错误似乎与python有关,特别是“html2”文本.py”。我认为它还不能与python3兼容,所以我尝试通过取消注释并将第一行编辑为“#”,来强制它使用python2!/usr/bin/env python2“,仍然没有骰子。我可以发布任何需要的额外输出。你知道吗


Tags: pygitsrctxtmakeusrhelpall