我想在linux中安装pup来处理html文档,但是却在安装pup时遇到阻碍。
https://github.com/EricChiang/pup/releases上列出的版本有很多种,我不知道该选择哪一种(我的linux是wsl,ubuntu)
随意尝试了pup_v0.4.0_linux_arm64.zip
这一个版本,并解压后放入了/usr/bin
中,但是在运行的时候报错:-bash: /usr/bin/pup: cannot execute binary file: Exec format error
。
在https://stackoverflow.com/questions/47736104/assembly-compiled-executable-using-int-0x80-on-ubuntu-on-windows-subsystem-for-l查到了解释,说这是由于wsl不支持32位程序,因此问题应该就在版本的选择上。