~~NOTOC~~
===== Downloading and installing SPAM =====
Here are some instructions on how to install SPAM on your Linux 64-bit system. If you want to install it on some other Unix-based system, you're on your own :-).
-----
==== Download SPAM and dependencies ====
An installation of SPAM on Linux requires at least the following items:
* The latest SPAM package, found [[https://ftp.strw.leidenuniv.nl/intema/spam/spam_20201215.tgz|here]]
* SPAM support files, found [[https://ftp.strw.leidenuniv.nl/intema/spam/spam_etc_20181208.tgz|here]]
* AIPS version 31DEC13 (LNX64 binary tarball with extras), found [[https://ftp.strw.leidenuniv.nl/intema/spam/AIPS_31DEC13.tgz|here]]
* ParselTongue version 2.3 (with changes), found [[https://ftp.strw.leidenuniv.nl/intema/spam/parseltongue-2.3e.tgz|here]]
* Obit core (LNX64 binary with changes), found [[https://ftp.strw.leidenuniv.nl/intema/spam/obit_20160115.tgz|here]]
The following necessary items are often already available on a standard scientific Linux installation:
* Python version 2.7 (plus C include files)
* Python packages: pylab / matplotlib, numpy, scipy, astropy
* gcc
* make
* swig
* optional: mencoder / mplayer (for making phase screen movies)
* optional: ImageMagick convert (for making phase screen movies)
-----
==== Install SPAM ====
Make a new directory that will hold all spam software
In your Linux shell, type
cd
mkdir spam
cd spam
Move the downloaded tarballs to here.
In your Linux shell, type
mv /AIPS_.tgz .
mv /parseltongue-.tgz .
mv /obit_.tgz .
mv /spam_.tgz .
mv /spam_etc_.tgz .
-----
==== Install SPAM support files ====
> tar xzf spam_etc_.tgz
Edit setup file(s) and modify SPAM_PATH to point to /spam, SPAM_HOST to your machine name in capitals, and PYTHON to point to your python2.7 executable
gedit setup.*sh
Next, run the setup file. In Linux bash (sh) this is done through:
source setup.sh
In Linux C-shell ([t]csh) this is done through:
source setup.csh
-----
==== Install AIPS ====
In your Linux shell, type
tar xzf AIPS_31DEC13.tgz
cd AIPS
These next two steps may not apply to you, but must be executed when you have installed and/or run AIPS locally.
mv ~/.AIPSRC ~/.AIPSRC_previous
mv ~/.dadevs ~/.dadevs_previous
Then start the actual install
perl install.pl -n
Here's how to quickly get through the AIPS installation
screen 0:
screen 4:
screen 4b:
screen 5:
screen 5a:
screen 5b:
screen 6:
screen 7:
screen 8: <2x enter>
screen 9:
screen 9B:
screen 11: <2x enter>
And during installation: <3x/4x enter>
This should run without errors (see [[huibintemaspamfaq|SPAM FAQ]] if it can't find libncurses.so).
Now we need to increase number of interactive AIPS sessions to 32. In your Linux shell, type in the Linux shell
source LOGIN.(C)SH
Then
RUN SETPAR
In SETPAR go through the following menus
2
10
32
-1
AMANAGER
4
Test AIPS by entering
aips tv=local
In AIPS POPS terminal, enter
11
print 2+2
kleenex
Exit AIPS directory
cd ..
-----
==== Install Obit core ====
In your Linux shell, type
tar xzf obit_.tgz
And that's it.
-----
==== Install ParselTongue ====
In your Linux shell, type
tar xzf parseltongue-.tgz
cd parseltongue-
sh ./configure --prefix=${SPAM_PATH}/ParselTongue --with-obit=${SPAM_PATH}/Obit
This should return without errors (see [[huibintemaspamfaq|SPAM FAQ]] if it can't find obit). Then type:
make install
cd ..
-----
==== Install SPAM package ====
In your Linux shell, type
tar xzf spam_.tgz
cd python/spam
Edit the makefile so that the SWIGFLAGS and CCFLAGS point to the correct Python C header file directory (will contain Python.h; typically something like /usr/include/python2.7).
gedit makefile
make
cd ../..
And that's all folks!
-----
Feedback: [[intema@strw.leidenuniv.nl|Click here]]