3 AUTHOR: Jeroen Coumans <jeroencoumans@gmx.net>
6 (1 tab) How to install kde2 and kde3 next to each other.
10 This hint describes how you can add KDE 3 to your existing KDE 2 installation.
11 I suggest you take a look at the kde hint or the BLFS section for installing
12 KDE. I assume you use the following directory setup:
19 For KDE 3, you first have to install qt-3.x (where x=latest). This is my
20 build script for qt-3.x:
23 bzcat qt-$VERSION.tar.bz2 | tar xv &&
26 export PATH=$PATH:$QTDIR/bin &&
27 ./configure -prefix /opt/qt3 -xft -xrender -no-stl -thread -no-g++-exceptions \
28 -system-libmng -system-libpng -system-libjpeg -system-zlib -qt-gif \
29 -qt-imgfmt-jpeg -qt-imgfmt-png -qt-imgfmt-mng \
30 -L/usr/local/lib -I/usr/local/include/freetype2 -I/usr/local/include &&
35 echo "/opt/qt3/lib" >> /etc/ld.so.conf &&
38 Don't blindly copy the ./configure line, you'll probably have a different setup
39 than me. Use ./configure --help to see what each option does.
41 When compiling KDE 3, start with arts, next kdelibs then kdebase. Install
42 kdeaddons after kdenetwork and kdemultimedia. The other packages can be
43 installed in arbitrary order.
44 Important: set the appropriate variables before installing the packages.
47 export KDEDIR=/opt/kde3
49 When configuring, you can use --prefix=$KDEDIR.
51 Installing kde is straightforward, and you can find lots of info on www.kde.org.
52 Don't forget to add /opt/kde3/lib to /etc/ld.so.conf and run ldconfig. Also, you
53 should comment out /opt/qt2/lib and /opt/kde2/lib in this file to avoid
54 library conflicts (I had some strange errors which disappeared when I didn't).
55 Next thing is configuring kdm to allow the selection of either a KDE2
56 session or a KDE 3 session. If you followed Remy's big_kdm hint, you've allready
58 Replace the kde) case with the following:
62 export KDEDIR=/opt/kde2
63 export PATH=/bin:/usr/bin:/usr/X11R6/bin:$KDEDIR/bin:$QTDIR/bin
64 exec $KDEDIR/bin/startkde
66 export KDEHOME=$HOME/.kde3
67 export KDEDIR=/opt/kde3
69 export PATH=/bin:/usr/bin:/usr/X11R6/bin:$KDEDIR/bin:$QTDIR/bin:/opt/kde2/bin
70 exec $KDEDIR/bin/startkde
72 For a flawless cooperation between the two, the most important variable is
73 KDEHOME. If you don't set this, your configuration files will be updated to kde3
74 and you won't be able to start kde2 anymore. If you don't want to reconfigure
75 all your settings, copy all the ~/.kde/share/config/k*rc to ~/.kde3/share/config
77 Also, it doesn't matter if you want to run the KDE3 version of kdm, but don't
78 forget to adjust /etc/X11/xdm/XSetup accordingly.