Wednesday, November 14, 2007

Installing Pate for Kate

You need to do some hacking to get Pate installed on a (K)ubuntu 7.10 system.

Background


Pate is a really cool plugin for Kate (which is a text editor for my favorite desktop environment). It is a Kate plugin that allows you to write other Kate plugins in Python (instead of C++). It also comes with a few Python-written plugins, mainly to demonstrate what you can do with it.

I had a very hard time installing Pate. The reason being that the author is a Suse user and his configure script only works? is tailored for Suse. I'm an Ubuntu user; specifically Kubuntu 7.10 Gutsy Gibbon.

Installation Process


You need to install development headers/libraries for Kate, Sip, KDE Python bindings, QT Python bindings, etc.

sudo aptitude install cmake sip4 python-sip4-dev python-kde3-dev \
python-qt-dev kate-plugins kdelibs-dev kdebase-dev
If I'm missing anything, please let me know and I'll update this.

Pate-0.5
cd PATE_SRC
wget http://www.stochasticbytes.com/pate/pate-0.5-ubuntu-patches.tar.gz
tar xzf pate-0.5-ubuntu-patches.tar.gz

Now configure && cd build && make && sudo make install should work as expected.

Here is a link to my Pate-0.5 patches.

Pate-0.5.1

This version isn't available (yet) via the main Pate webpage, but here's a link for you.

cd PATE_SRC
wget www.stochasticbytes.com/pate/pate-0.5.1-ubuntu-patches.tar.gz
tar xzf pate-0.5.1-ubuntu-patches.tar.gz

Now configure && cd build && make && sudo make install should work as expected.

Here is a link to my Pate-0.5.1 patches.

Why?


Why did I go through the trouble of making a blog post about this rather than submit my changes back to the author? Two reasons:

  1. It's an excuse to make a blog post!
  2. The author and the kwrite-devel mailing list didn't seem too interested in my plight.