edit · print · PDF

Please note that all the SIEpedia's articles address specific issues or questions raised by IAC users, so they do not attempt to be rigorous or exhaustive, and may or may not be useful or applicable in different or more general contexts.

Astronomical software installation in (Linux) laptops

This page provides simple scripts to install astronomical software packages in your own laptop, all by yourself. By running these scripts you basically get an exact copy of the software package as installed in our desktop PCs. The scripts are tested on the Fedora release indicated, but the installation script may also work on other Linux distribution.

Just download the .run file corresponding to the package you need, and run it with, for instance, sudo sh <filename>.run. If you get an error message telling that there is not enough space in the "/tmp" directory, try the following: 1) create a temporary directory in /var/tmp: mkdir /var/tmp/MS, 2) use the command: sudo sh <filename>.run --target /var/tmp/MS. Once the installation is completed, you can delete the whole content of /var/tmp/MS

Note that you may need to change a couple of environment variables, PATH and LD_LIBRARY_PATH, to be able to use these packages. See instructions at the end of this page.

Finally, make sure that all the required dependencies are installed.

Available software packages

Further software packages will be added according to local demand.

Note that all packages are compiled on a x86_64 platform, so they won't run on a 32bit OS.

To download the scripts, place the cursor on the link, then right-click and select "Save linked content as" or the equivalent option for your browser. Alternatively, copy the link address and use wget from the command line to retrieve it.

  • Aladin v9.010 (4.5M)
    • Java-based application. Uses the Java version provided by the OS.
  • astrometry.net v0.67 (34M)
    • Compiled on: Fedora 21.
    • Dependencies: cfitsio, wcslib (both available in Fedora repositories). Index files not included!
  • Cloudy v13.03 (596M)
    • Compiled on: Fedora 19, should work also on more recent releases.
    • Includes the data directory.
  • Gildas Feb17c (24M)
    • Compiled on: Fedora 21.
    • Requires cfitsio and atlas libraries (both available in Fedora repositories).
  • Indexf v4.2.2 (1.7M)
    • Compiled on: Fedora 17. Should also work on more recent Fedora releases.
    • Requires PGPLOT
  • IRAF v2.16.1 (737M)
    • Should work on Fedora 17 and higher (and possibly on other Linux distros as well). Includes packages developed at the IAC (iactasks, lirisdr).
    • See the README file for configuration/usage notes.
  • MIDAS 13SEPpl1.2 (72M)
    • Compiled on: Fedora 19. Should also work on more recent Fedora releases.
  • MOOG 2013
  • PGPLOT v5.2 (942K)
    • Compiled with gfortran. Should work on Fedora 17 and higher. See the README file for usage notes.
  • Reduceme v4.2.03 (17M)
    • Compiled on: Fedora 17. Should also work on more recent Fedora releases.
    • Requires PGPLOT.
  • Rmodel v3.2.2 (1.5M)
    • Compiled on: Fedora 17. Should also work on more recent Fedora versions.
    • Requires PGPLOT.
  • Specview v2.17.6 (104M)
    • Java-based application. Includes line identification and library files.
  • Starpos (997K)
    • Compiled on: Fedora 17. Should also work on more recent Fedora releases.
    • Requires PGPLOT.
  • THELI v1.9.5, GUI v2.10.3 (156M)
    • Compiled on: Fedora 21. See the README file for usage notes.
  • YACAS v1.3.6 (7.1M)
    • Compiled on: Fedora 21.

Other Packages

Many popular packages are not included in the above list because they already have simple installation procedures provided on their websites.

  • DS9
    • Download the latest DS9 version from http://ds9.si.edu/site/Download.html
    • Uncompress the downloaded file, and copy/move the ds9 executable to /usr/local/bin/ (or other suitable directory in your path).
  • STARLINK
  • Python
    • An excellent option is to use the Python provided by Fedora. Many packages are available that can be quickly installed with yum or dnf (for instance, dnf install scipy numpy python-pip), others can be installed using pip.
    • Alternatively, one can install a complete Python distribution such as Anaconda, which can be augmented by Astroconda to obtain a comprehensive, astronomy-oriented Python package including all the STScI tools and IRAF/PyRAF.
  • Astromatic: Sextractor, SCAMP, etc.
    • Astromatic software tools can be easily installed using the rpm files provided in the webpage of each specific package. Check also if they are available through the package manager of your Linux distribution.

Other packages are licensed and cannot be freely distributed. If you are at the IAC and wish to install IDL, please see the instructions in /net/nas4/inves2/sieinves/invsoft1/IDL_installation_instructions.txt. For Supermongo, copy the source tar file /net/nas4/inves2/sieinves/invsoft1/sm-latest.tar.gz; installation instructions are in the HOWTO_INSTALL file there contained. If you wish to install the Intel compilers in your laptop, using the IAC's floating licenses, see /net/nas4/inves2/sieinves/invsoft1/IntelCompilers_installation_instructions.txt.

Environment variables

Most of the above packages require that directory /usr/local/lib64 be in LD_LIBRARY_PATH. (Check with printenv LD_LIBRARY_PATH.) If it's not, or if LD_LIBRARY_PATH is undefined, you can add the following lines of code (valid for a csh/tcsh shell) in your own .cshrc file:

if !($?LD_LIBRARY_PATH) then
    setenv LD_LIBRARY_PATH /usr/local/lib64
else
    setenv LD_LIBRARY_PATH /usr/local/lib64:${LD_LIBRARY_PATH}
endif 

Likewise, /usr/local/bin/ must be in your PATH. (Check with printenv PATH.) If not, you can add the following lines in your .cshrc or equivalent file (you may need to create it if it doesn't already exist):

if !($?PATH) then
    setenv PATH /usr/local/bin
else
    setenv PATH /usr/local/bin:${PATH}
endif

The analogous instructions for a sh/bash shell (to be included in file .bash_profile or equivalent) are:

if [ -z "$LD_LIBRARY_PATH" ]; then
    export LD_LIBRARY_PATH="/usr/local/lib64"
else
    export LD_LIBRARY_PATH="/usr/local/lib64:${LD_LIBRARY_PATH}"
fi 
#
if [ -z "$PATH" ]; then
    export PATH="/usr/local/bin"
else
    export PATH="/usr/local/bin:${PATH}"
fi
edit · print · PDF
Page last modified on June 29, 2017, at 11:50 AM