x8664-bitsolariscobolnetcobol

Netcobol cobol command reply "Argument is not valid"


On Solaris10 x86 64bit version, I installed Fujistu NetCobol, and executed "cobol" command. Result OS replies "Argument is not valid".

I used this cobol command, following the example in the user's guide.

$cobol -dy -M -o P1 P1.cob

Is there anything missing--some setting that I have overlooked?

I have confirmed the following:


Solution

  • That error often means you are trying to run a SPARC binary on an x86 system, which would make sense as Fujitsu produces SPARC servers. To verify what platform the binary is for, run:

    % file `which cobol`
    

    (or file /opt/something/bin/cobol if you know the direct path to the binary.)