Installing LABELIT

It is assumed that the user has downloaded a LABELIT bundle. This document explains the CCP4 requirements. Note: LABELIT bundles come in two varieties, either with a prepackaged version of Python (for all users) or without (for developers only).

OpenMPNEW!

Enabling OpenMP from a LABELIT source build:

Enabling OpenMP from a PHENIX source build:

CCP4 and MOSFLM

Python (for developers only; users read on to see why you shouldn't install python)

    1. Numeric-24.2.  Download the source tar.gz file & unzip.   (Older versions such as 23.1 and 23.3 are also expected to work.)

      On the Tru64 platform, the source code must be edited. The following line must be inserted at the very top of the files Src/multiarraymodule.c and Src/ranlib.c:
      #include "Python.h"
      Then on all platforms:
      cd Numeric-24.2
      python setup.py install
    2. Zlib 1.2.2 (only required on Tru64)  needed for compiling the Image Library in the next step:
      wget http://www.zlib.net/zlib-1.2.2.tar.gz
      gunzip -c zlib-1.2.2.tar.gz | tar xf -
      cd zlib-1.2.2
      make clean
      #previous PIL versions use shared z libary: ./configure -s
      ./configure
      make
    3. Python Image Library Version 1.1.6 (Dec. 3, 2006) is currently supported.


    4. wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz
      gunzip -c Imaging-1.1.6.tar.gz | tar xf -
      cd Imaging-1.1.6
      On the Tru64 (and possibly the Irix) platform, the source code must be edited.
      1. The following line must be inserted at the very top of the file path.c:
        #include "pyconfig.h"
      2. Edit the file setup.py.
        Change the _tkinter import to "import disable_tkinter"
        Change the line 'ZLIB_ROOT = None' to 'ZLIB_ROOT = "../zlib-1.2.2"'
        On the IRIX platform it may be necessary to disable the linkage to the preinstalled jpeg library. This can be done by deleting the four lines in setup.py beginning with 'if find_library_file(self, "jpeg"):'

      The following edit is recommended on all platforms:
      1. Modify the file libImaging/ZipEncode.c so that "Z_DEFAULT_COMPRESSION" is changed to "Z_BEST_SPEED". This will speed up png compression at the price of slightly increased output file size.
      Next, on all platforms:
      python setup.py install
    5. Reportlab 1.17. Newer versions may also work. Download the source tar.gz file & unzip.  

      The following edit must be performed to make ReportLab 1.17 compatible with Python 2.4 and above (current ReportLab versions have already been fixed). In the files "reportlab/graphics/charts/axes.py" and "reportlab/platypus/doctemplate.py", change instances of "None =" to "unused =".

      On the Tru64 & Irix platforms, the source code file lib/_rl_accel.c must be edited. Instead of raising the error "Don't know how to define STRICMP" in line 22, define it as follows:
      # define STRICMP strcasecmp
      Important: If you use the most recent ReportLab release (v1.20) you will have to download and install _rl_accel as a separate package.

      Then on all platforms:
      cd reportlab
      python setup.py install