Skip to content
agrif edited this page Apr 30, 2011 · 12 revisions

CentOS 5 requires python 2.4 in order for the package manager (yum) to function. Here is a solution to installing python 2.6 along side it with the required libraries, PIL and NumPy.

CentOS 5 i386 (32-bit)

  1. TODO

CentOS 5 x86_64 (64-bit)

  1. Follow the instructions on this page on installing Python 2.6: Python 2.6 on Centos 5.x
  2. Install the following packages: yum install python26-imaging python26-devel
  3. Download NumPy source: svn co http://svn.scipy.org/svn/numpy/trunk numpy
  4. Enter the numpy folder: cd numpy
  5. Build numpy: python26 setup.py build
  6. Install numpy: python26 setup.py install
  7. Replace the first line of overviewer.py with: #!/usr/bin/env python26

Avoid compiling

I have not tried this myself, but if you want to avoid compiling numpy yourself, there is an rpm that I have found:

  1. wget http://download.opensuse.org/repositories/home:/ashigabou/CentOS_5/x86_64/python-numpy-1.2.0-1.4.x86_64.rpm
  2. rpm -ivh python-numpy-1.2.0-1.4.x86_64.rpm

Compiling the C Extension (optional)

  1. Install the following packages: yum install python26-imaging-devel
  2. Copy the Imaging headers into the python2.6 include folder: cp /usr/include/python2.6/Imaging/* /usr/include/python2.6/
  3. Build the modules: python26 setup.py build

Problems and Solutions

  • I receive OSError: [Errno 13] Permission denied error when I run Overviewer!
    • Run this ls -l /dev/ | grep shm
    • If you see drwxr-xr-x instead of drwxrwxrwx then you have two options.
      1. Run overviewer as a single process with -p 1, or
      2. Have your server administrator update the fstab.
  • I have other issues
    • Every other issue that I've come across is mentioned in the documentation in README.rst

Clone this wiki locally