-bash-3.00$ ./p4 -V
-bash: ./p4: Invalid argument
What does "Invalid argument" mean in Unix?
More details:
- p4 is an executable in the current directory.
- p4 actually refers to perforce. The option -V is supposed to display the version details.
- Solaris 10 is the OS.
- p4 has executable permissions (chmod +x p4)
- The official documentation wasn't very helpful in my case.
I was running an x86 binary on a sparc machine.
http://stackoverflow.com/a/9436882/640378
On Solaris, when you try running a SPARC binary on an x86 platform (or vice versa), "Invalid argument" is the error you get.
– user640378 Apr 13 '12 at 18:32