Plone 3.2.2 on Jaunty with python sandbox

It seems that a lot of python2.4 support was dropped from Ubuntu 9.04 Jaunty. Support which without Plone would not run. I started recompiling python packages to bring back python2.4 builds, but this was turning into a slippery slope and would bring back problems if any python package was updated from Ubuntu again.


Use a separate user with it’s own install of python2.4 and any libraries needed for plone.

These are not complete instructions on how to get plone running again. But more or less just notes to point most people in the right path.

Command history:

echo 'export PATH=$HOME/python/2.4/bin:$PATH' | tee -a ~/.bashrc
source ~/.bashrc
mkdir -p ~/python/2.4
mkdir python-build
cd python-build
sudo apt-get install build-essential zlib1g-dev libjpeg62-dev libfreetype6-dev
tar -xvf Python-2.4.6.tar.bz2
cd Python-2.4.6/
./configure --prefix=$HOME/python/2.4
make install
python -V
cd ..
tar -xvf setuptools-0.6c9.tar.gz
cd setuptools-0.6c9/
python build
python install
cd ..
tar -xvf Imaging-1.1.6.tar.gz
cd Imaging-1.1.6
python build
python install
python -c "import PIL"
sudo apt-get install libldap2-dev libsasl2-dev libssl-dev


Remove all old eggs.

Add the python install path to ~/.bashrc or the current shell.

install python, easy_install and PIL.

PIL needed to be install manually with `python install` as easy_install was not installing the PIL.pth files correctly.

Install python-ldap requirements if needed in plone are the last apt-get line.

Rerun bootstrap and buildouts in plone.

This entry was posted in Server and tagged , , , , , , . Bookmark the permalink. Both comments and trackbacks are currently closed.


  1. May 4, 2009 7:06 am

    I thought the point of minor version numbers were that they kept backwards compatibilty.

    Seems ruby and python haven’t realised this yet.

  2. May 5, 2009 3:30 pm

    This is somewhat similar to the process I user to install my Plone instances on ubuntu and debian. I use apt-get for the dependencies and then manually build a dedicated user their own python.

    don’t forget libreadline 😉

    This is a more complete set of pre-installs that I use to get my development environment configured and the same on each of my machines.

    • May 5, 2009 5:43 pm

      Thanks. That’s a much more thorough list. :-)