我使用ArchLinux 64位同时安装了python2和python3。
我正在尝试根据wireshark-git构建linked instructions。
我尝试过手动构建软件包,并使用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>
我能够&#34; makepkg&#34;然后&#34; ./ configure --with-ssl&#34;。但是,一旦我尝试运行决赛&#34; make&#34;为了构建一个可安装的文件,我总是收到这个错误:
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有关,特别是&#34; html2text.py &#34;。我相信它还不兼容python 3,所以我尝试通过取消注释并编辑第一行来强制它使用python2&#34; #!/ usr / bin / env python2 & #34;,仍然没有骰子。我可以发布所需的任何其他输出。