On the SP systems, Compile with the equivalent of:
xlf90 nag_lin_lsq_ex02.f90 -I/libapps/naglib18/fnib603db/nag_mod_dir -lnagfl90 -o ex02