pgf77-Error-Required tool as was not found

After installing Fortran workstation 64-bit on a Red Hat Enterprise 6.1 system, pgf77 -V x.f resulted in the following errors.

pgf77-Error-Required tool as was not found
pgf77… looked for as at /opt/pgi/linux86-64/11.5/bin/as
pgf77-Error-Required tool ld was not found
pgf77… looked for ld at /opt/pgi/linux86-64/11.5/bin/ld

The environment was set as:

export PGI=/opt/pgi
export PATH=$PGI/linux86-64/11.5/bin:$PATH

The same error was posted in 2006, but this may not be PATH problem. I repeated the installation. There is no file “as” or “ld” in the bin directory. What’s wrong?

Hello,

I am sorry you are seeing problems. If you installed the product
in one directory and then copied the directory to another area, you
will have problems with files that do not copy.

The first thing to check is whether the PGI bin directory contents can be
executed by anyone. Sometime users install as root and permissions don’t
allow them to run the executables as non-root.

The next thing to check is whether you have gcc support, for 32-bit and 64-bit,
in your path.

% more helloc.c
#include <stdio.h>

int main()
{
printf(" hello\n");

}

create helloc…c and place it in your current working directory


% gcc -m32 -o ./helloc_32 -v ./helloc.c

% gcc -m64 -o ./hello_64 -v ./helloc.c

Send the output of those instructions along with the output of

% /opt/pgi/linux86-64/11.5/bin/pgcc -v ./helloc.c -o ./helloc_64_pgcc
% file ./helloc_64_pgcc

and you can do a similar thing with pgf77 and hellof.f
% more hellof.f
print *,“hello”
end


Send the above output dialogs to trs@pgroup.com.

thanks,
dave