|
||
|
|
||
Why install a compiler?The information below is very very old. AIPS has been revised so that it works with the latest versions of gfortran. This required rearranging the pseudo array processor memory to be passed by call sequence rather than COMMON. It also required extensive overhaul of call sequences and other miscellaneous issues that might appear to be errors if written by amateurs. They were not errors in AIPS but became blockers with modern gfortran versions. The information below is very old. The general problem of compilers in RedHat enterprise systems remains. They ship very old versions. The 2018 RedHat 7 contains gfortran 4.8.5 which will work with AIPS but is not desirable. Instead one should now download gcc/gfortran version 6.4 or laater. Version 12 is used for the MACARM binaries. The installation instructions below may work with these versions, but it would be better to get installation instructions from gnu. The AIPS changes below are obsolete. 31DEC17 and later AIPS contain correct compilation parameters for gfortran. RedHat Linux systems 3.7.0-3.7.3 are shipped with a version of the GNU compiler suite called version 2.96. This was a version that was never endorsed by the GNU compiler group and fails in numerous ways when compiling AIPS (and other packages) at the usual levels of optimization. For these (now) older Linux systems we recommend the GNU 2.95.3 compiler with a rather complicated set of OPT2 options give in the $SYSLOCAL/FDEFAULT.SH file. Compiler versions 3.3.x and 3.4.2 have been found to contain errors when used with AIPS. With minor changes, AIPS now appears to work well with 3.2.3 and preliminary tests of 3.4.4 look good. Version 4.0 should not be used. You will need root access if you want to install the new compiler in /usr/local (the default) or in some directory beneath /usr/local. You may, as an ordinary user, install in any directory over which you have write privilege. DO NOT INSTALL in /usr - the operating system was built with that version of gcc and you must keep it around. Installing the compilerSteps to install GNU 2.95.3 compiler in LinuxGo tohttps://www.gnu.org/software/gcc/
/usr/local/bin/gcc or /usr/local/bin/g77.
Notes
AIPS ChangesIf your AIPS has not yet been installed, things are pretty simple. While runninginstall.pl or update.pl you
will be asked if the automatically detected compilers are correct.
Answer no and then provide the path to where you put the 2.95
compilers. The installaion will then edit the necessary files for
you.
If you installed AIPS using the 2.96, 3.0.3, 3.0.4, or 3.3 compilers you have much more work to do. If you use bash then:
If you use csh or tcsh instead, then do:
The first three steps define the AIPS environment. The next step
selects the new compilers. If Modified on $Date: 2025/12/08 23:07:43 $ Eric W. Greisen |