This page details how to compile the STELLOPT family of codes on CentOS. In order to do so you will need to install GNU based compilers on your Linux machine. In principle this set of steps should work for any Linux based distribution which uses the Redhat Package Manager (RPM) based package management.
yum install gcc* yum install openmpi* yum install lapack*
wget http://mirrors.mit.edu/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh epel-release-6-8.noarch.rpm yum -assumeyes install netcdf* yum install ncl* yum install hdf5*
module load openmpi-x86_64
mkdir PSPLINE cd PSPLINE cp <PATH_TO_PSLINE>/pspline.tar.gz . tar xvf pspline.tar.gz gmake FORTRAN_VARIANT=GCC LIBDIR=/usr/lib64 NETCDF_DIR=/usr/