Friday, October 17, 2014

Installing SMA MIRIAD on Ubuntu (2014/05)

What is MIRIAD? See for information.

Edit : Tested on the Ubuntu 13.04 Raring Ringtail
Edit2 : Tested on the Ubuntu 13.10 Saucy Salamander
Edit3 : Tested on the Ubuntu 14.04 Trusty Tahr

I am not 100% sure about the prerequisites, it should work with the ones below, however (especially after installing IRAM GILDAS).
sudo apt-get install build-essential pgplot5 gfortran libreadline-dev libforms-bin csh cvs
Then go and grab the latest binary release from :
NOTE: Got into catalog with highest number. At time of writing this is "2014.7". Choose miriad_linux64_u14_gfortran.tar.gz for Ubuntu.
Unpack it where you want it to install:
tar zxf miriad_linux64_BINARY_gfortran.tar.gz
where "BINARY" is your Ubuntu version i.e.  miriad_linux64_u14_gfortran.tar.gz for Ubuntu 14.04.

Enter the catalog and run the "install script":
cd miriad
then to source the miriad binaries you have to run
from the miriad catalog, or add these lines to your hidden .bashrc/.bash_aliases file in your home-directory
(nano ~/.bashrc):
#source miriad environment variables
alias mirenv="source /your_path/to_the_installation/directory/"
and to launch miriad type mirenv, followed by miriad (or your choice of miriad task) or just add (to the same file)

#source miriad environment variables
source /your_path/to_installation/
To have it accessible directly when you start a terminal.

EDIT: You can now update the installation at any time by running
(after sourcing "") it will get all the updated files via CVS and recompile all binaries.

No comments:

Post a Comment