Last modified 7 years ago
Last modified on 01/17/2016 11:51:55 AM
Installation instructions
preparation
- Make sure you have installed subversion client tools, namely the executable svn.
- Install ObsPy, please follow the online instructions.
- Install python-sqlalchemy software (available in every Linux software repository).
- Install python-pysqlite2 package.
- Install wxpython graphical framework (dito, sometimes called "python-wxtools" or "python-wxpython").
installation program
The current alpha version offers a simple installation program only.
- Download setup.py.
- Run "python setup.py make", this will create the installation script /tmp/install-shx.py.
- Execute "sudo python /tmp/install-shx.py".
- After installation the path to the command-line interface is printed. You may set an alias to this script for convenience.
manual installation
- Go to the desired installation directory of SHX (afterwards referred as $instdir).
- Get the current code from Subversion repository:
svn export https://www.seismic-handler.org/svn/SHX/trunk/SeismicHandler
- 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
- Now you can start the command line interface via
$ $instdir/SeismicHandler/bin/SH
- 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