Installation failed to find gcc directory in FC4

I tried to install pgi6.1-4 in Fedora core 4. An error reported while running ./install script:
directory: /usr/lib/gcc/i386-redhat-linux/4.0.0/ not found
and the software cannot work.
What’s going wrong with my installation, and what’s the possible solution?

Where does the shell find gcc on that system? Run “which gcc” or “type gcc” and see what the shell reports.

Can you run “gcc -print-search-dirs” and let us know what is displayed?

The install script uses the above command to try and find out where the gcc startup files are. I’m thinking that there’s a problem with gcc on that system. Can you use gcc to compile a ‘hello world’ program?