Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
-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.
share|improve this question
2  
I figured it out! I was running an x86 binary on a sparc machine. 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
    
I swear this is a duplicate, but I can't find it. In any case, you should post that as an answer when you can (should be available after 8 hours) –  Michael Mrozek Apr 13 '12 at 18:41
    
This is the same issue as Getting "Not found" message when running a 32-bit binary on a 64-bit system; Solaris has a different error message. –  Gilles Apr 13 '12 at 23:57

1 Answer 1

up vote 5 down vote accepted

I figured it out!

I was running an x86 binary on a sparc machine.

similar question

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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