|
Install
How to install lisatools
Prerequisites
Subversion installation and usageThis is how things will work. Using Subversion (SVN), you will download the latest version of the lisatools software onto your computer; we will call the resulting lisatools directory the SVN directory. Using the script master-install.py, you will compile and install the lisatools library in a separate directory on your computer; we will call this the installation directory. For instance, you may download the software into $HOME/source/lisatools and then install it into $HOME, which will actually put files in $HOME/lib, $HOME/bin, and so on. (In Unix, $HOME is an environment variable that contains the name of your home directory, typically /home/username, or on OS X /Users/username.) To get the Subversion archive, use a shell and cd to where we want the SVN directory to be placed (for instance, $HOME/source), and then run svn checkout http://lisatools.googlecode.com/svn/ lisatools Here co stands for "checkout". Inside the SVN directory, you can use the SVN commands described at http://svnbook.red-bean.com/nightly/en/index.html. The most important are
InstallationWe're almost ready to install lisatools. First though we need to set a few environment variables. Say $SVNDIR is the SVN directory (say, $HOME/source/lisatools), and $LISATOOLS is the installation directory (say, $HOME). Then $LISATOOLS/bin and $SVNDIR/MLDCpipelines2/bin must be added to the $PATH, while $LISATOOLS/lib/python2.X/site-packages must be added to $PYTHONPATH (where python2.X is your python, such as python2.4). For instance, with bash, do export SVNDIR=$HOME/source/lisatools export LISATOOLS=$HOME export PATH=$SVNDIR/MLDCpipelines2/bin:$LISATOOLS/bin:$PATH export PYTHONPATH=$LISATOOLS/lib/python2.5/site-packages:$PYTHONPATH while with tcsh, do setenv SVNDIR $HOME/source/lisatools setenv LISATOOLS $HOME setenv PATH $SVNDIR/MLDCpipelines2/bin:$LISATOOLS/bin:$PATH setenv PYTHONPATH $LISATOOLS/lib/python2.5/site-packages:$PYTHONPATH These paths need to be set before installing, and before using lisatools. You can add them to your .profile or .tcshrc. Great! We’re all set. Now cd into $SVNDIR, and run python master-install.py --prefix=$LISATOOLS This will install the lisatools libraries and packages; it will also look for a number of standard Python libraries, and install recent versions if they are not found. These are
Another thing: the generation of the Challenge 2 and 3 Galaxies requires big seed catalogs (hundreds of Mb), than can be downloaded by master-install.py (once and for all) if you specify the option --downloadgalaxy. You should be all set! If something went wrong, the script will complain and hopefully suggest a solution. If not, file an "Issues" report. Updating lisatoolsTo get the lisatools installation up to the latest revision, run svn update in $SVNDIR, and then python master-install.py --prefix=$LISATOOLS. Don't forget the second step! A note on CygwinLISAtools works under Cygwin (well, it was last tried under version 1.5.24-2 on Windows XP). You must include the following additional packages in the Cygwin setup (I include the versions I tried, but anything newer would probably still work):
|
Sign in to add a comment