wiki:Shx/Installation

Installation instructions

preparation

  1. Make sure you have installed subversion client tools, namely the executable svn.
  2. Install ObsPy, please follow the  online instructions.
  3. Install python-sqlalchemy software (available in every Linux software repository).
  4. Install python-pysqlite2 package.
  5. Install wxpython graphical framework (dito, sometimes called "python-wxtools" or "python-wxpython").

installation program

The current alpha version offers a simple installation program only.

  1. Download setup.py.
  2. Run "python setup.py make", this will create the installation script /tmp/install-shx.py.
  3. Execute "sudo python /tmp/install-shx.py".
  4. After installation the path to the command-line interface is printed. You may set an alias to this script for convenience.

manual installation

  1. Go to the desired installation directory of SHX (afterwards referred as $instdir).
  2. Get the current code from Subversion repository:
    svn export https://www.seismic-handler.org/svn/SHX/trunk/SeismicHandler
    
  3. Create a symbolic link inside python's library. Using the next instructions you can determine the proper path:
    $ python
    >>> from distutils.sysconfig import get_python_lib
    >>> print(get_python_lib())
    /usr/local/lib/python2.7/site-packages
    >>> quit
    $ cd /usr/local/lib/python2.7/site-packages
    $ ln -s $instdir/SeismicHandler
    
  4. Now you can start the command line interface via
    $ $instdir/SeismicHandler/bin/SH
    
  5. For convenience you may set an alias in local profile:
    alias SHX=$instdir/SeismicHandler/bin/SH
    

Notes

For easy updates simply use "check out" command of subversion instead of "export":

svn co https://www.seismic-handler.org/svn/SHX/trunk/SeismicHandler
svn up # later update