Skip to main content

This article explains an error that occurs when the environment points to the wrong assembler.

Problem:

We have received this error when trying to create an executable on HP/UX:

Assembler error: can't open Z for reading: No such file or directory

Resolution:

This error occurs because the environment is pointing to the wrong assembler (as) . To find the correct assembler look at the file $COBDIR/docs/env.txt. The entry which identifies the required assembler will look something like the following:

Assembler:

as HP92453-03 UX.11.01.31 PA-RISC 2.0 Assembler

as -V 2>&1 < /dev/null |cut -c5-80| head -1

The first line indicates the version certified by Micro Focus for this product. The second line indicates the command to execute on the local machine to see the version of the assembler that’s actually being used. Server Express requires the Hewlett Packard version of the assembler and will not run with a GCC version. If the correct version of the assembler is installed elsewhere on the machine, change the PATH to ensure that the HP version is always found first. A typical correction would be:

export PATH=/usr/ccs/bin:$PATH

where /usr/ccs/bin is the location of the correct assembler.

After the PATH has been modified try the compile command again.

Incident Number: 2285387

Old KB# 14487