moneyslow.com

zsh: bad CPU type in executable: nmap报错了,Mac下如何卸载nmap

zsh: bad CPU type in executable: nmap

zsh: bad CPU type in executable: nmap

错误如下:

zsh: bad CPU type in executable: nmap
经查 在Mac10.15中已经不允许32位的软件运行了,弹出如上错误。

在官网nmap.org上重新下载安装。

$ which nmap
/usr/local/bin/nmap

$ nmap --version
zsh: bad CPU type in executable: nmap
因此,我们需要把nmap删除掉,方法如下:

cd /usr/local
sudo rm -f bin/nmap bin/nmap-update bin/xnmap
sudo rm -rf share/nmap

Exit mobile version