I'm trying to test my installation for Pickit 2 on my Mac for the first time
and when I put in: pk2cmd -?v
I get:
-bash: /usr/local/bin/pk2cmd: cannot execute binary file
How do I resolve this problem?
I'm trying to test my installation for Pickit 2 on my Mac for the first time
and when I put in: pk2cmd -?v
I get:
-bash: /usr/local/bin/pk2cmd: cannot execute binary file
How do I resolve this problem?
You have a binary executable file pk2cmd
for a different architecture than Mac OS X. This system uses executables in the format Mach-O
.
You can check the format of your executable using this command:
file /usr/local/bin/pk2cmd
See also this question: How to solve: -bash: : cannot execute binary file.
nmap-6.47.dmg
) I get: file -k nmap
nmap: Mach-O i386 executable
. How did you install the package? Was not the file .dmg
originally. Did not you just rename it? ------ To your second comment: I have no slightest idea how is Pickit 2 being sold and distributed. :)
Nov 7, 2014 at 11:04