While we have not seen this error before and are unable to recreate it, we suspect that it might be due to the PGI installer’s makelocalrc script use of macro variables that are not enclosed with double quotes. Please try the following:
In your $PGI/linux86-64/7.0-6/bin directory, modify line 581 of the makelocalrc script to enclose the $G77DIR variable in quotes (see below). Next, run “$PGI/linux86-64/7.0-6/bin/makelocalrc -x $PGI/linux86/7.0-6”. (Replace 7.0-6 with the actual release number if different).
Modification of makelocalrc didn’t solve the problem.
The problem (found in tmpfile generated by makelocalrc):
In file included from /usr/include/features.h:346,
from /usr/include/stdio.h:28,
from /tmp/PGI-INSTALL.6139/hello-6139.c:1:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
Fixed with installation of the package
libc6-dev-i386
Now the linker is found, but this error occurs:
Installing software into /opt/pgi (this may take some time).
###############################################
test: 604: ==: unexpected operator
test: 604: ==: unexpected operator
test: 489: ==: unexpected operator
Please enter your name:
Regardless of these errors, I was able to compile netcdf, make test and make check didn’t report any errors.
But WRFV2.2 test cases don’t compile.
ubuntu-server is quite minimal, I’ll try xubuntu desktop edition. If this works, I know it’s due to missing packets.
I am having the same problem; The only difference is that I am using a 32 bit machine with the latest version of Ubuntu. When I try to install the libc6-devi386 I get the error message that this library was meant for the AMD 64 architecture. When I try to install the version appropriate for the 32 bit Intel, I get a message which says that I already have an updated version installed. I am now very frustrated and have no idea what to do… Cheers, Nathaniel
Perhaps uninstall all the previous versions and its dependencies and then install it fresh will solve the problem? Perhaps Ubantu folks know a quick way to fix it.