Installation¶
Release v0.3.0.
The installation of LEMON is a somewhat tedious —although not particularly difficult— process, involving several dependencies for which there not exist Debian packages.
These are the steps to install LEMON on a fresh Debian 7 machine:
apt-get install git python-pip csh
apt-get build-dep python-matplotlib python-scipy
apt-get install openmpi-dev
easy_install -U distribute
git clone --branch v0.3 git://github.com/vterron/lemon.git ~/lemon
cd ~/lemon
pip install "numpy>=1.7.1"
pip install -r pre-requirements.txt
#[View]
pip install -r requirements.txt
#[View]
- Install IRAF.
- Install SExtractor (version 2.19.5 or newer) [1]
- Install Astrometry.net.
- Install the MPI-enabled Montage binaries [2]
python ./setup.py
echo 'PATH=$PATH:~/lemon' >> ~/.bashrc
echo "source ~/lemon/lemon-completion.sh" >> ~/.bashrc
./run_tests.py
— optional, although recommended!
Note that, starting from version 2.16, IRAF is now released under a free software license. There is, thus, reasonable hope that it may be packaged for drop-in installation on Debian-based systems in the near future. A similar effort is apparently underway for Astrometry.net. Until then, please bear with us.
[1] | The important thing to keep in mind is that SExtractor does not rely on the CLAPACK implementation of LAPACK — instead, it only uses the subset of the LAPACK functions available in ATLAS. That is the reason why, in case the liblapack-dev package is installed, you may encounter an error such as configure: error: CBLAS/LAPack library files not found at usual locations! Exiting . If that is your case, you may need to do something like this: |
cd ./sextractor-2.19.5
apt-get install fftw3-dev libatlas-base-dev
update-alternatives --set liblapack.so /usr/lib/atlas-base/atlas/liblapack.so
./configure --with-atlas-incdir=/usr/include/atlas
make
make install
[2] | Edit these two lines in Montage/Makefile.LINUX before doing make |
# uncomment the next two lines to build MPI modules
# MPICC = mpicc
# BINS = $(SBINS) $(MBINS)
Note
LEMON is not yet available on PyPI, but we intend to package it soon. This will enormously simplify the installation process, which should consist of a single pip install lemon
command — provided that IRAF, SExtractor, Astrometry.net and Montage are already installed on your system.