Skip to content

LSD Web Installer and Updater

Mario Juric edited this page Jan 1, 2017 · 1 revision

Installing LSD using the Web Installer

LSD requires Python 2.7, a version of python that is not yet widely adopted across Linux distributions. Also, it needs about ~10 extra Python packages to be installed, some of which have their own dependencies that need to be satisfied. And then you have to install LSD itself.

Getting this all up and running can be a daunting task. We've therefore created a "web installer"; a script that will download and set up LSD nearly automatically. Download and run it using the following (twitter-friendly!) incantation:

wget -N -nv http://lsddb.org/go.sh && bash go.sh

The installer will:

  • Ask you where you want to install LSD
  • Download all prerequisites for building LSD, including Python 2.7
  • Build everything

Updating LSD

The web installer installs an LSD package maintenance utility, {{{lsd-pkg}}}. When a new LSD version becomes available, updating is as easy as:

lsd-pkg update

Requirements

You most likely already have all of these:

  • Linux (sorry, MacOS X is not supported at this time)
  • gcc, g++, gfortran, make
  • wget
  • perl

And make sure to have this one if you want interactive plotting with matplotlib:

  • {{{tk}}} and {{{tcl}}}.
    • On Ubuntu, install the {{{tk-dev}}} package; it will pull in the necessary dependencies.
    • On RHEL (and derivatives), install the {{{tk-devel}}} package; it will pull in the necessary dependencies.

Where it works

  • CentOS 5
  • Fedora 13
  • Ubuntu 11.04
  • OpenSUSE 11.4
  • ... should work on any recent Linux distribution

Example

Here is an example of a successful install:

mjuric@corrin:~$ wget -N -nv http://lsddb.org/go.sh && bash go.sh
2011-08-10 20:39:25 URL:http://nebel.rc.fas.harvard.edu/mjuric/lsd-setup/scripts/go.sh [2131/2131] -> "go.sh" [1]

Large Survey Database Automated Installer
=========================================

This script will download and prepare an installation of a sandboxed
instance of the Large Survey Database.  The downloaded packages include most
LSD prerequisites, such as Python 2.7, lapack, ipython, numpy, scipy and
matplotlib among others.  Your system only needs to provide the basic gcc
toolchain (gcc, g++ and gfortran), as well as gtk+2.0 header files (if you
want to use interactive plotting with matplotlib).  These are usually
installed by default on many RedHat setups (including derivatives like
CentOS, Scientific Linux, etc.).

Contact Mario Juric <[email protected]> if you encounter problems.

LSD environment destination directory (default: /home/mjuric/lsd): 

Downloading git-1.7.6 ... OK.
Downloading bzip2-1.0.6 ... OK.
Downloading readline-6.2 ... OK.
Downloading ncurses-5.9 ... OK.
Downloading gdbm-1.8.3 ... OK.
Downloading sqlite-autoconf-3070701 ... OK.
Downloading lzo-2.05 ... OK.
Downloading Python-2.7.2 ... OK.
Downloading lapack-3.3.1-mjuric ... OK.
Downloading numpy-1.6.1 ... OK.
Downloading numexpr-1.4.2 ... OK.
Downloading Cython-0.15 ... OK.
Downloading hdf5-1.8.7 ... OK.
Downloading tables-2.2.1 ... OK.
Downloading pyfits-2.4.0 ... OK.
Downloading PyYAML-3.10 ... OK.
Downloading libssh2-1.2.8 ... OK.
Downloading curl-7.21.7 ... OK.
Downloading pycurl-7.19.0 ... OK.
Downloading urlgrabber-3.9.1 ... OK.
Downloading Polygon-2.0.2-mjuric-3 ... OK.
Downloading pcre-8.12 ... OK.
Downloading swig-2.0.4 ... OK.
Downloading ann_1.1.2-mjuric ... OK.
Downloading distribute-0.6.19 ... OK.
Downloading scikits.ann-0.2.dev-r803-mjuric-3 ... OK.
Downloading scottransom-pyslalib-97cfc40 ... OK.
Downloading pywcs-1.10-4.7 ... OK.
Downloading scipy-0.9.0 ... OK.
Downloading lsd-0.5.4-24-g56e34c50 ... OK.
Downloading ipython-0.10.2 ... OK.
Downloading freetype-2.4.6 ... OK.
Downloading matplotlib-1.0.1-mjuric ... OK.
...
All source packages downloaded.

Should I go ahead and build everything ([yes]/no)? 
Building git-1.7.6 ... done.
Building bzip2-1.0.6 ... done.
Building readline-6.2 ... done.
Building ncurses-5.9 ... done.
Building gdbm-1.8.3 ... done.
Building sqlite-autoconf-3070701 ... done.
Building lzo-2.05 ... done.
Building Python-2.7.2 ... done.
Building lapack-3.3.1-mjuric ... done.
Building numpy-1.6.1 ... done.
Building numexpr-1.4.2 ... done.
Building Cython-0.15 ... done.
Building hdf5-1.8.7 ... done.
Building tables-2.2.1 ... done.
Building pyfits-2.4.0 ... done.
Building PyYAML-3.10 ... done.
Building libssh2-1.2.8 ... done.
Building curl-7.21.7 ... done.
Building pycurl-7.19.0 ... done.
Building urlgrabber-3.9.1 ... done.
Building Polygon-2.0.2-mjuric-3 ... done.
Building pcre-8.12 ... done.
Building swig-2.0.4 ... done.
Building ann_1.1.2-mjuric ... done.
Building distribute-0.6.19 ... done.
Building scikits.ann-0.2.dev-r803-mjuric-3 ... done.
Building scottransom-pyslalib-97cfc40 ... done.
Building pywcs-1.10-4.7 ... done.
Building scipy-0.9.0 ... done.
Building lsd-0.5.4-24-g56e34c50 ... done.
Building ipython-0.10.2 ... done.
Building freetype-2.4.6 ... done.
Building matplotlib-1.0.1-mjuric ... done.
...
Congratulations, you have successfully built LSD. Source the following shell
scripts:

	source /home/mjuric/lsd/environment.sh
	source /home/mjuric/lsd/lsd_environment.sh

to set up the paths (and in that order). Having done that, run:

	lsd-query --version

to verify everything went well.

mjuric@corrin:~$ source /home/mjuric/lsd/environment.sh
mjuric@corrin:~$ source /home/mjuric/lsd/lsd_environment.sh
mjuric@corrin:~$ lsd-query --version
Large Survey Database, version 0.5.4-24-g56e34c50
mjuric@corrin:~$