Here are some hints for compiling Phil Thompson's Python Bindings for Qt and
KDE on linux.

Of course you should read the instructions bundled with the
source for full details. These are just some supplementary clues.

Grab the source
from http://www.river-bank.demon.co.uk/software/
You need:

sip-ver.tar.gz
PyQt-ver.tar.gz
PyKDE-ver.tar.gz

where ver is the latest version number.

Now,

cd                               #go to your home directory
mkdir src                        #create a directory for compiling source
tar zxvf sip-ver.tar.gz -C src   #unzip to src
tar zxvf PyQt-ver.tar.gz -C src
tar zxvf PyKDE-ver.tar.gz -C src

cd src/sip-ver

You need to compile sip to work with whatever
version of the Qt-1.x libararies you have, _not_ the Qt-2.x
libraries.

So if you have both or they are in an unusual place on your system
you need to specify the location of the qt libraries and headers.

The easiest way to do this is to type

export QTDIR=location_of_qt

For example, on RH6.2, export QTDIR=/usr/lib/qt-1.45

Next:

./configure           
make                  #if no errors for configure
su -c "make install"  #if no errors for make; the su -c makes you root

Finally, let your system know that you have installed new libraries:

Make sure there is a line in /etc/ld.so.conf saying

/usr/local/lib

If not edit the file as root and add it at the end. (Take care to
hit enter at the end of the line.)

Now (whether you had to add in this line to ld.so.conf or not)

su -c "ldconfig -v"

Now do exactly the same thing, first for PyQt and then for PyKDE
(although you can omit the ldconfig step for these two).

