4
-bash-3.00$ ./p4 -V
-bash: ./p4: Invalid argument

What does "Invalid argument" mean in Unix?

More details:

  1. p4 is an executable in the current directory.
  2. p4 actually refers to perforce. The option -V is supposed to display the version details.
  3. Solaris 10 is the OS.
  4. p4 has executable permissions (chmod +x p4)
  5. The official documentation wasn't very helpful in my case.
8

I figured it out!

I was running an x86 binary on a SPARC machine.

Similar question on SO

On Solaris, when you try running a SPARC binary on an x86 platform (or vice versa), Invalid argument is the error you get.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.