This repository contains the latest versions of IBM XL Fortran for Linux runtimes.
Note: This repository is for the ppc64le (Power little endian) architecture only (running 'uname -i' should return 'ppc64le').

For product information see:
- http://ibm.biz/xlcpp-linux
- http://ibm.biz/xlfortran-linux


To add this repository on Ubuntu Server (http://www.ubuntu.com/download/server/power8), issue the following commands:

wget -q http://public.dhe.ibm.com/software/server/POWER/Linux/rte/xlf/le/ubuntu/public.gpg -O- | sudo apt-key add -
echo "deb http://public.dhe.ibm.com/software/server/POWER/Linux/rte/xlf/le/ubuntu/ trusty main" | sudo tee /etc/apt/sources.list.d/ibm-xlf-compiler-runtime.list
sudo apt-get update

To install IBM XL Fortran for Linux runtimes, issue the following commands:

sudo apt-get install libxlf libxlsmp


To add this repository on RHEL (https://access.redhat.com/products/red-hat-enterprise-linux/) or CentOS (https://www.centos.org/), issue the following commands:

wget http://public.dhe.ibm.com/software/server/POWER/Linux/rte/xlf/le/rhel7/repodata/repomd.xml.key
sudo rpm --import repomd.xml.key
wget http://public.dhe.ibm.com/software/server/POWER/Linux/rte/xlf/le/rhel7/ibm-xlf-compiler-runtime.repo
sudo cp ibm-xlf-compiler-runtime.repo /etc/yum.repos.d/

To install IBM XL Fortran for Linux runtimes, issue the following commands:

sudo yum install libxlf libxlsmp


To add this repository on SLES (https://www.suse.com/products/power/), issue the following commands:

sudo zypper addrepo -c http://public.dhe.ibm.com/software/server/POWER/Linux/rte/xlf/le/sles12/ ibm-xlf-compiler-runtime
sudo zypper refresh

To install IBM XL Fortran for Linux runtimes, issue the following commands:

sudo zypper install libxlf libxlsmp

If you are not running Ubuntu, RHEL, CentOS, or SLES: to help determine which repository you should use, run the following script:

dpkg=$(which dpkg 2>/dev/null)
rpm=$(which rpm 2>/dev/null)
ID_LIKE=''
if grep -iE '^ID(_LIKE)?=' /etc/os-release 2>/dev/null | grep -iE 'ubuntu|debian' >/dev/null 2>&1; then
ID_LIKE='ubuntu'
elif grep -iE '^ID(_LIKE)?=' /etc/os-release 2>/dev/null | grep -iE 'sles|suse' >/dev/null 2>&1; then
ID_LIKE='sles'
elif grep -iE '^ID(_LIKE)?=' /etc/os-release 2>/dev/null | grep -iE 'rhel|fedora|centos' >/dev/null 2>&1; then
ID_LIKE='rhel'
elif [ "$dpkg" != '' ]; then
ID_LIKE='ubuntu'
elif [ "$rpm" != '' ]; then
ID_LIKE='rhel'
fi
echo "Use repository instructions for '$ID_LIKE'"