Installing/Updating AIPS on Laptops
Intended for Linux laptops but will probably mostly work for updating Macs
You can ask the AIPS Group (Amy Mioduszewski or Eric Greisen) or
follow these simple steps.
Update to new version of AIPS
Binary Update
- Edit ~/.AIPSRC
- Check if "AIPS_ROOT" is "/export/home/..." or just "/home/...". Change to
"/export/home/..." to be safe.
- Remove the "DOWNLOADED" and "UNPACKED" lines (last two line).
- Change version in the path in the "CCOMOPT" line. I.e., to go
from version 31DEC07 to 31DEC08 change 31DEC07 to 31DEC08 in the path.
- Go to AIPS area (usually /home/computername/AIPS).
- Remove old *tar.gz and install.pl.
- Copy /home/aipsftp/31DEC**/install.pl or
ftp to ftp.aoc.nrao.edu and get this from pub/software/aips/31DEC**
- if you want to do a source install get a copy of 31DEC**.tar.gz as well.
- Run install.pl by typing perl install.pl -n . You will answer
lots of questions. If you have not changed anything about your laptop you should
just hit return, install.pl will fill in most of the information from the .AIPSRC.
See install web
page for details but here are the "Screens" of interest. With a binary install/update
several of the screens are skipped (1-3 and 10).
- Screen 5: Site Name -- for most instances should be AOCLAPTOP. This set by the "SITE =" line in ~/.AIPSRC.
- Screen 5a: Site type -- this should be LOCALHOST so you
need to enter Y or y. This set by the "HOSTS =" line in ~/.AIPSRC.
- just press RETURN when the script asks for the CVS password
- if FILAIP asks for a password, enter AMANAGER
- Add source LOGIN.CSH or . LOGIN.SH (depending on your shell) to your .tcshrc or .bashrc etc.
- Type source LOGIN.CSH or . LOGIN.SH (depending on your shell) and,
in the same window, start AIPS.
- Do some simple tests in AIPS (i.e., type ucat, print 2+2 or some such).
- Go to your home directory and type do_daily.hostname, if
this runs without error and updates the new version then
congratulations your installation has been a success.
Source Update
- Do steps 1-3 as described above.
- Copy or ftp /home/aipsftp/31DEC**/install.pl and tar ball as in step 4 above.
- Run install.pl by typing perl install.pl, follow the same notes from above
except that there will be more "Screens" and you will be asked about the Advanced
Settings because you are recompiling. If you have not changed anything about your
laptop you should just hit return, install.pl will fill in most of the information from
the .AIPSRC.
- Screen 1: DOWNLOAD -- hit enter; you want it to skip the download.
- Screen 2: Confirmation -- check that the path is O.K., otherwise
change, then hit enter.
- Screen 5: Site Name -- for most instances should be AOCLAPTOP. This set by the "SITE =" line in ~/.AIPSRC.
- Screen 5a: Site type -- this should be LOCALHOST so you
need to enter Y or y. This set by the "HOSTS =" line in ~/.AIPSRC.
- just press RETURN when the script asks for the CVS password
- Screen 10: Advanced Settings -- Check the AP size and the compiler
paths are O.K..
- This is old but might be relevant to some outside users: If you are compiling on a Redhat 7 (compiler version 2.95.3) then
you have to edit the FDEFAULT.SH. You will get to a screen that will
tell you to edit the FDEFAULT.SH before proceeding. Edit $SYSLOCAL/FDEFAULT.SH,
and uncomment three OPT2 lines under the "Options for GNU 2.95.3" comment
and comment the one OPT2 line under "Options for GNU 3.2"
- Add source LOGIN.CSH or . LOGIN.SH (depending on your shell) to your .tcshrc or .ba
shrc etc.
- Type source LOGIN.CSH or . LOGIN.SH (depending on your shell) and,
in the same window, start AIPS.
- Do some simple tests in AIPS (i.e., type ucat, print 2+2 or some such).
- Go to your home directory and type do_daily.hostname, if
this runs without error and updates the new version then
congratulations your installation has been a success.
Installing AIPS (either from source or binary)
The same as above except instead of steps 1-3 create an AIPS area
(/home/computername/AIPS is recommended) and proceed with
the as described above. If you have a Mac, I would recomend reading
Special MacIntosh OS X instructions.
Troubleshooting
- It doesn't seem to know where things are or what things are
named. For example:
- SETNAME: no such file or directory
- /home/computername/AIPS/31DEC06/UNKNOWN does not exist
Check the HOST.LIST in the aips directory. It should have a line that
looks like this:
+ LOCALHOST LINUX AOCLAPTOP NONE Laptop on Amy's office
i.e.
+ host architecture site NONE comment
- It doesn't seem do know any commands, no matter what is typed, SYMBOL? is
the response. This could be a corrupted save-get file (see the
AIPS Managers FAQ) but
since you just installed/updated AIPS it is more likely that you
have just forgotten to do a source LOGIN.CSH or . LOGIN.SH
(depending on your shell) and a $CDTST before you started AIPS .
- MAKE.BMNJ failed, there are various reasons. To re-rerun type AIWHICH MAKE.BMNJ and run the MAKE.BMNJ for the right architecture.
Contact Amy Mioduszewski with question or comments:
amiodusz@nrao.edu
Last updated December 21, 2007.