Spire and Python Tools - Installation


Overview


Installation

  1. Access the Spire directory in your SPIDER distribution and run the Spire installation shell script: ./install.sh (be sure it starts with dot-slash!):
          cd YOUR_SPIDER_DIR/spire
          ./install.sh

  2. If you have not already done so,the installer will first uncompress and unpack the Spire tar archive: spire.tar

  3. When the installer finds all of the necessary system requirements, it will ask for the correct command to run SPIDER on your system e.g.:
         Is this the correct command to run spider?: /usr/spider/bin/spider
    Just follow its response instructions.

  4. The installer may ask to add: YOUR_SPIDER_DIRECTORY/spire/bin to your 'path'. This directory contains executables for Spire and the python tools. If you do not want the script to edit your startup file you can say 'No'.

  5. If you did not allow the installer script to alter your shell startup files you will have to edit them yourself:

    If you are using csh, add the: tools/bin directory to your path by adding the following line in your .cshrc file (substituting for the correct value for 'YOUR_SPIDER_DIRECTORY'):
           setenv PATH /YOUR_SPIDER_DIRECTORY/tools/bin:$PATH
    or if you are using bash add the: tools/bin directory to your path by adding the following lines in your .bashrc file (substituting for the correct value for 'YOUR_SPIDER_DIRECTORY'):
           PATH=/YOUR_SPIDER_DIRECTORY/tools/bin:$PATH
           export PATH
  6. Run Spire and the Python tool programs without the .py extension, e.g., 'spire' not 'spire.py' and 'qview', not 'qview.py'. This will ensure that the proper Python executables and libraries are used.



Notes about Installation

  1. The shell script: install.sh calls: setup.py Then setup.py tries to find the command that to run SPIDER on your system, and writes this command to: Spire/LocalVars.py
    Spire/LocalVars.py will then contain a line like this:
       spidercmd = '/usr/local/bin/spider'

  2. The installation will create and access various sub-directories under: YOUR_SPIDER_DIRECTORY/spire including:

    Subdirectory Contents
    bin python2.5, python2.7, spire, and various python tools
    lib Dependencies like tk/tcl, etc
    config Configuration files

  3. Additional packages used by Spire which are installed together with Spire:

    Python2.5 www.python.org/download
    Python2.7 www.python.org/download
    Tcl/Tk8.4 (or later) www.tcl.tk/software/tcltk
    BLT (a Tcl plotting package) sourceforge.net/projects/blt
    Python megawidgets (Pmw) sourceforge.net/projects/pmw
    Python Imaging Library (PIL) www.pythonware.com/products/pil
    Numpy (Python Numeric) sourceforge.net/projects/numpy
    Gnuplot.py gnuplot-py.sourceforge.net


Updated: 27 November 2018