Created On:  12 January 2011

Problem:

While compiling with the "cob" command, an error message appears "can not execute as" and compilation does not succeed.

Resolution:

The "cob" command is trying to locate the system assembler, which is named "as".  But it cannot find "as" on your PATH environment variable.   To solve this problem, locate the assembler on your system.  It is frequently found as "/bin/as" or "/usr/bin/as".
You could use a "find" command to look for it:

    find / -name as 2>/dev/null

When you've found it, add its location to your PATH environment variable.  For example, if the assembler is found in /usr/bin, modify PATH like so:

PATH=/usr/bin:$PATH
export PATH
Incident #2496263