官网下载PGI最新的社区版本(社区版免费)
解压
sudo tar zxf pgiXXXXXXX.tar.gz
安装
sudo ./install
配置
sudo gedit /etc/profile.d/pgi-env.sh
export PGI=/opt/pgi export PATH=/opt/pgi/linux86-64/19.10/bin:$PATH export MANPATH=$MANPATH:/opt/pgi/linux86-64/19.10/man export LM_LICENSE_FILE=$LM_LICENSE_FILE:/opt/pgi/license.dat export PGI_ACC_TIME=1 export PGI_ACC_NOTIFY=1
Log out
测试
pgcc -V
pgfortran -V
其他
How to install libncurses.so.5 in ubuntu 20.04?
sudo add-apt-repository universe sudo apt-get install libncurses5 libncurses5:i386