Skip to content

Installing on Ubuntu

Steve Crawford edited this page Mar 8, 2017 · 2 revisions

The following script has successfully installed pysalt along with all dependancies on a clean installation of Ubuntu 14.04.2 LTS.

#!/bin/bash
apt-get update
apt-get upgrade
apt-get install  gfortran liblapack-dev libblas-dev g++ python-gtk2 python-gtk2-dev python-wxgtk2.8 python-wxtools libfreetype6-dev python-qt4 python-qt4-dev tk8.5 tk8.5-dev tcl8.5 tcl8.5-dev python-tz texlive dvipng python-dateutil tk libqt4-dev lsb-release tcsh sharutils lynx libc6-dev libncurses5-dev python-pmw libf2c2 python-urwid python-dev libx11-dev libcfitsio3-dev pgplot5 libxt-dev libxaw7-dev openjdk-6-source openjdk-6-jre libmotif-dev unzip fort77 cfortran gv cups-bsd cups-common cups mc python-setuptools python-numpy python-scipy python-matplotlib python-pip saods9


 #all the steps needed for making iraf
 mkdir /iraf
 mkdir /iraf/iraf
 IRAF="/iraf/iraf/"
 cd $IRAF 
 wget ftp://iraf.noao.edu/iraf/v216/PCIX/iraf.lnux.x86_64.tar.gz
 tar zxvf iraf.lnux.x86_64.tar.gz
 chmod u+x /iraf/iraf/unix/hlib/install.csh
 #this will prompt the user for installation instructions
 /iraf/iraf/unix/hlib/install.csh

 cd 
 mkdir iraf
 cd iraf
 mkiraf -t xterm

 #pip installs
 pip install pyraf
 pip install astropy
 pip install ccdproc
 pip install aplpy
 pip install pyephem
 pip install pywcs
 pip install pyfits
 pip install pyspectrograph

 #download pysalt and add to login.cl
 wget http://pysalt.salt.ac.za/versions/pysalt.v0.47.tar.gz
 tar zxvf pysalt.v0.50.tar.gz
 printf '%s\n%s\n' 'reset pysalt     = home$pysalt/' 'task  pysalt.pkg = pysalt$pysalt.cl' >> login.cl

 #pyds9 is only needed for proptools and can be skipped for non-MOS users
 wget hea-www.harvard.edu/RD/download/pyds9/pyds9-1.6.tar.gz
 tar -xvf pyds9-1.6.tar.gz
 cd pyds9-1.6
 python setup.py install

Clone this wiki locally