Pgf90: command not found

Dear all,

I have installed the PGI following the steps below:

$ wget \
$ apt-get install ./nvhpc-21-11_21.11_amd64.deb ./nvhpc-2021_21.11_amd64.deb

It finished and produced the PGI in /opt/nvidia/hpc_sdk/.
Then I set path as follow:

$NVARCH=`uname -s`_`uname -m` && export NVARCH
$ NVCOMPILERS=/opt/nvidia/hpc_sdk/Linux_x86_64 && export NVCOMPILERS
$ MANPATH=$MANPATH:$NVCOMPILERS/$NVARCH/21.11/compilers/man && export MANPATH
$ PATH=$NVCOMPILERS/$NVARCH/21.11/compilers/bin:$PATH && export PATH

However the pgf90 still not work when I try with “pgf90 -V” or other pgf90 command, it said “pgf90: command not found”

My OS is Ubuntu 20.04.3

I’m not sure what’s wrong with my steps. Could you please help to guide me how to install PGI successfully.


Hi Chi,

In you’re setting of “NVCOMPILERS” you include ‘Linux_x86_64’ which is the same as the setting for NVARCH. Hence the PATH will end up having a ‘Linux_x86_64’ added twice. Removing the ‘Linux_x86_64’ from NVCOMPILER should fix the issue.

From: Installation Guide Version 21.11

$ NVARCH=`uname -s`_`uname -m`; export NVARCH
$ NVCOMPILERS=/opt/nvidia/hpc_sdk; export NVCOMPILERS
$ PATH=$NVCOMPILERS/$NVARCH/21.11/compilers/bin:$PATH; export PATH

Hope this helps,

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.