0

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:

  • cobol with x authority
  • cobol in PATH Environment variable
  • Environment variable setting after NetCobol installing
wp78de
  • 18,207
  • 7
  • 43
  • 71
mtk.sugi
  • 3
  • 3

1 Answers1

1

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.)

alanc
  • 4,102
  • 21
  • 24
  • Thanks you for a good clue, @alanc. ` % file ``which cobol`` `. reply "/opt/FJSVcbl/bin/cobol: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped" As @alanc said, this cobol is SPARC binary. Can't I use this cobol on my current environment? If I use or install something, I use SPARC binary On x86 OS ? – mtk.sugi Apr 03 '13 at 04:02
  • @user2236126: sorry, but there's no compatibility between SPARC & x86 CPU's, they use very different instruction sets. You'll need to either get a version of the software built for x86 machines, or find a SPARC machine to run it on. – alanc Apr 03 '13 at 04:36
  • The manual you referenced covers SPARC. Does your installation software not match the manual? – Bill Woodger Apr 03 '13 at 15:12