#! /bin/bash ### install pgi compilers, see https://www.pgroup.com/doc/pgiinstall174.pdf or https://www.pgroup.com/resources/docs/18.7/x86/pgi-install-guide/index.htm ## to download the pgi compilers 2018 version, cd /share/apps/configrepo wget https://www.dropbox.com/s/6lu6yt614bmqzx9/pgilinux-2018-1810-x86-64.tar.gz?dl=0 -O pgilinux-2018-1810-x86-64.tar.gz #wget https://download.pgroup.com/secure/pgilinux-2018-184-x86-64.tar.gz?K-qCqAHLV97NLZvThZxWE1fYBdbgEwWJzeppk94wGKzr0A6x8ste9oRe0hmwEBHzijzBorUFmv20LT2_MIGyXefYVQIENJfdp-2zYOv21Y4K8vNfnyKgFwhZE21IQuN3JbDacZU -O pgilinux-2018-184-x86-64.tar.gz tar -zxvf pgilinux-2018-1810-x86-64.tar.gz #pgilinux-2018-184-x86-64.tar.gz mv install_components pgifortran_installation cd pgifortran_installation ./install ## choose to install in /share/apps/pgi instead of the default /opt/pgi ## follow the prompt and the installation will be completed automatically ### add the following path to ~/.bashrc echo 'export PGI=/share/apps/pgi;' >> ~/.bashrc echo 'export PATH=/share/apps/pgi/linux86-64/2018/bin:$PATH;' >> ~/.bashrc echo 'export MANPATH=$MANPATH:/share/apps/pgi/linux86-64/2018/man/;' >> ~/.bashrc echo 'export LM_LICENSE_FILE=$LM_LICENSE_FILE:/share/apps/pgi/license.dat;' >> ~/.bashrc echo 'export PATH=/share/apps/pgi/linux86-64/2018/mpi/openmpi/bin:$PATH' >> ~/.bashrc