This page explains how to download and install KDE 2.2.2 from sources.
To compile KDE you need:
libbz2while you're at it, it enables reading of .tar.bz2 files in konqueror, and one day, will give access to .bz2 files to all KDE applications.
libldapfor the LDAP kioslave, and
cdparanoiafor the audiocd kioslave.
In order to run KDE applications, you need the Qt and kdelibs packages. For a simple desktop (with a window manager, panel, etc), you will also need kdebase. The other packages contain many other applications by topic: networking, graphics, multimedia, games, utilities, toys, software development, etc.
You can find the Qt library (version 2.3.1) at ftp://ftp.trolltech.com/qt/source/
KDE 2.2.2 is available from http://download.kde.org/stable/2.2.2/
Unlike most compiled software, Qt is compiled in the place where it will stay instead of using a 'make install'. Please read the INSTALL instructions in the Qt package. You need to set the
KDEDIR to the locations where Qt and KDE will be installed, respectively. Also, append $QTDIR/bin and $KDEDIR/bin to your $PATH and $LD_LIBRARY_PATH. Alternatively, instead of using $LD_LIBRARY_PATH, you may add your Qt and KDE library paths to /etc/ld.so.conf, but don't forget to run ldconfig as root after installing Qt and kdelibs, otherwise configure scripts will fail to find the newly installed libraries!
bunzip2 qt-x11-2.3.1.tar.bz2 tar xvf qt-x11-2.3.1.tar cd qt-2.3.1 less INSTALL # Set up QTDIR, KDEDIR, PATH, and LD_LIBRARY_PATH cd $QTDIR ./configure -sm -gif -system-jpeg -no-opengl make
Make sure to compile and install kdelibs before any other packages. Also, if you want to use kdeaddons, it should be compiled last as it requires kdebase, kdemultimedia, etc.
For each KDE package:
bunzip2 <package>.tar.bz2 tar xvf <package>.tar cd <package> ./configure make make install
gmake && gmake installinstead of
make && make instally.
See the KDE 2.2.2 Info Page for some common encountered problems when running KDE 2.2.2.