4

I recently update my Mac OS to Catalina 10.15.

I ran nmap I kept getting

-bash: /usr/local/bin/nmap: Bad CPU type in executable


I've tried reinstalling it

brew uninstall nmap
brew install nmap

but I see no effect, I even try full path

⚡️  Desktop  which nmap 
/usr/local/bin/nmap
⚡️  Desktop  /usr/local/bin/nmap
-bash: /usr/local/bin/nmap: Bad CPU type in executable
⚡️  Desktop
code-8
  • 547

2 Answers2

4

I decided to go the site :

https://nmap.org/book/inst-macosx.html

enter image description here

Click on Download

https://nmap.org/dist/nmap-7.80.dmg

I downloaded that .dmg, installed it, now my nmap working again.

enter image description here

Note : I will leave this post since, it might help others in the future.

code-8
  • 547
  • thank you for this answer! side question: after updating to 10.15, i had issues with python and now nmap.... does anyone know why in general these issues are being caused? is 10.15 breaking almost everything for devs? – greenhouse Jun 03 '20 at 18:18
  • You’re welcome. Please ask and add details. – code-8 Jun 03 '20 at 18:25
  • Installing the latest version worked for me as well. Thanks – Suyash Jain Jun 14 '23 at 04:49
1

You may find this to be an x86 (32bit) vs x64 problem, thus a new version will be required.

vr_driver
  • 131