Post Reply  Post Thread 
Installing KDE 4 on Centos
Author Message
ggarron
Administrator
*******


Posts: 13
Group: Administrators
Joined: Dec 2007
Status: Offline
Reputation: 0
Post: #1
Installing KDE 4 on Centos

This is an unfinished work, as until now I could have not been able to install (compile) KDE 4 on Centos 5, I will post here the steps I already did, and the error I have found, If someone can continue with the job please post below on this thread, I will also still continue trying.

I will post step by step what I did, first install a basic Centos5, with Gnome, and not KDE (as we are supposed to compile it later)

Code:
yum install xorg-x11-proto-devel

To solve error: X11/Xlib.h: No such file or directory

Code:
yum install libXext-devel

to solve /usr/bin/ld: cannot find -lXext

Code:
yum install glib-devel


Code:
yum install giflib-devel

Code:
yum install openssl-devel


Installing cmake

Code:
wget http://www.cmake.org/files/v2.4/cmake-2.4.7.tar.gz
tar xvzf cmake-2.4.7.tar.gz
mkdir cmake-build
cd cmake-build
../cmake-2.4.7/bootstrap
gmake
sudo gmake install


Installing QT 4.3

Code:
wget http://ftp.silug.org/mirrors/ftp.trolltech.com/qt/source/qt-x11-opensource-src-4.3.3.tar.gz
tar xvzf qt-x11-opensource-src-4.3.3.tar.gz
cd [qt_directory]
./configure -nomake examples -nomake demos -qt-gif -no-exceptions -debug -qt3support -qdbus
gmake
gmake install
PATH=/usr/local/Trolltech/Qt-4.3.3/bin:$PATH
export PATH


Installing KDE support

As I have not found a .tar.gz for this, I had to use svn and followed the KDE instructions, to build it.

Build Kde Support from SVN

be sure to read this: Environmental variables to build KDE

Installing Clucene

Code:
wget http://ufpr.dl.sourceforge.net/sourceforge/clucene/clucene-core-0.9.20.tar.gz
tar xvzf clucene-core-0.9.20.tar.gz
cd clucene-core-0.9.20
./autogen.sh
./configure
make
make install


Installing Strigi

Code:
wget http://www.vandenoever.info/software/strigi/strigi-0.5.7.tar.bz2
tar xvjf strigi-0.5.7.tar.bz2
cd strigi-0.5.7
cmake .
make
make install


Installing KDELibs

Code:
mkdir /root/kde4/source/
cd /root/kde4/source/

Code:
wget http://download.kde.org/stable/4.0.0/src/kdelibs-4.0.0.tar.bz2

Code:
tar xvjf kdelibs-4.0.0.tar.bz2

Code:
cd ..
mkdir kde4build
cd kde4build
cmake -DCMAKE_INSTALL_PREFIX=/usr/src -DCMAKE_BUILD_TYPE=debugfull -DKDE4_BUILD_TEST=ON /usr/src/kdelibs-4.0.0
make


I am here, and I found this error:

Quote:
[ 49%] Building CXX object phonon/libkaudiodevicelist/CMakeFiles/kaudiodevicelist.dir/audiodeviceenumerator.o
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp: In member function ‘void Phonon::AudioDeviceEnumeratorPrivate::findDevices()’:
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:67: warning: unused variable ‘cacheVersion’
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp: In member function ‘void Phonon::AudioDeviceEnumeratorPrivate::findVirtualDevices()’:
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:163: error: ‘snd_device_name_hint’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:170: error: ‘snd_device_name_get_hint’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:194: error: ‘snd_device_name_free_hint’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:196: error: ‘snd_config_update_free_global’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:197: error: ‘snd_config_update’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:198: error: ‘snd_config’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:206: error: ‘snd_input_t’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:206: error: ‘sndInput’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:207: error: ‘snd_input_buffer_open’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:209: error: ‘snd_config’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:209: error: ‘snd_config_load’ was not declared in this scope
/root/kde4/src/kdelibs-4.0.0/phonon/libkaudiodevicelist/audiodeviceenumerator.cpp:210: error: ‘snd_input_close’ was not declared in this scope
make[2]: *** [phonon/libkaudiodevicelist/CMakeFiles/kaudiodevicelist.dir/audiodeviceenumerator.o] Error 1
make[1]: *** [phonon/libkaudiodevicelist/CMakeFiles/kaudiodevicelist.dir/all] Error 2
make: *** [all] Error 2


If someone find this useful, or find any other error please post here with the solution, or with the answer, so we can go all together, to finish this task.

This post was last modified: 01-21-2008 08:45 AM by ggarron.

01-21-2008 04:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
newuser
Junior Member
**


Posts: 2
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Post: #2
RE: Installing KDE 4 on Centos

I've just successfully installed KDE4 on CentOS 5.1. I didn't get the error message you got though.

This is how I remember doing it:

First you need a newer Linux kernel or at least kdenetwork-4.0.1 will fail to compile. I think it needs 2.6.20+, and CentOS has 2.6.18. This is how I did it:

Code:
Download the latest Linux kernel. The latest version was linux-2.6.24.2.tar.bz2 for me. If you're reading this 10 years from now get another version.
tar xvjf linux-2.6.24.2.tar.bz2
cd linux-2.6.24.2
make xconfig
choose whatever options you need, then save and exit.
make
su
make modules_install install
mv /usr/include/linux /usr/include/linux_old
mv /usr/include/asm /usr/include/asm_old
mv /usr/include/asm-generic /usr/include/asm-generic_old
mv /usr/include/selinux /usr/include/selinux_old
mkdir /usr/include/asm
mkdir /usr/include/selinux
cp -r include/linux /usr/include
cp -r include/asm-generic /usr/include
cp -r include/asm-x86/* /usr/include/asm
cp -r security/selinux/include/* /usr/include/selinux
edit the /boot/grub/grub.conf file and make sure that the new kernel is the default one.
Set "default=X" to eg. "default=0" if the first image in the file is the new kernel.
Choose "default=1" if it's the 2nd one, etc. You may also edit the boot text from "CentOS (2.6.24.2)"
to whatever you want so you know it's your own compiled kernel.
exit


Restart and make sure everything works as before.

Download and install the latest version of Qt4, which should be Qt4.3.3. See above post how to do that.

Go to your fastest KDE mirror and download the source code to all of the below:
kdelibs-4.0.1
kdepimlibs-4.0.1
kdebase-4.0.1
kdebase-runtime-4.0.1
kdebase-workspace-4.0.1
kdeaccessibility-4.0.1
kdeadmin-4.0.1
kdeartwork-4.0.1
kdebindings-4.0.1
kdeedu-4.0.1
kdegames-4.0.1
kdegraphics-4.0.1
kdemultimedia-4.0.1
kdenetwork-4.0.1
kdesdk-4.0.1
kdetoys-4.0.1
kdeutils-4.0.1
kdewebdev-4.0.1

Read http://techbase.kde.org/index.php?title=...Build/KDE4 and do what it says you should do. eg. create kde-devel user, update the .bashrc file with their example .bashrc file. Read it carefully and comment/uncomment parts of it and add necessary stuff (such as Qt4 paths which you have just installed). You may want to change the 'make -j2' in 'cmakekde' to 'make -j4' if you have 4 processors to speed up the compilation, and also remove the 'nice' from 'nice make'. Also, I didn't want debug info, so I changed -DCMAKE_BUILD_TYPE=debugfull to -DCMAKE_BUILD_TYPE=Release. And you may want to change the line 'make install' to 'su -c "make install"' because at least one module needs root privileges to install. Now you can 'su - kde-devel'.

I installed the stuff from http://techbase.kde.org/index.php?title=...DE4/Fedora

Code:
yum install clucene-core-devel libxml-devel libxslt-devel \
dbus-devel boost-devel bzip2-devel openssl-devel alsa-lib-devel \
redland-devel rasqal-devel raptor-devel hspell-devel aspell-devel \
cups-devel xine-lib-devel avahi-devel gamin-devel OpenEXR-devel \
enchant-devel jasper-devel ilmbase-devel pcre-devel gpgme-devel \
libxklavier-devel glib-devel libusb-devel libsmbclient-devel \
libxcb-devel NetworkManager-devel lm_sensors-devel libraw1394-devel \
bluez-libs-devel gcc-c++ libXext-devel cmake subversion giflib-devel \
libpng-devel libXdamage-devel libXcomposite-devel libXrender-devel \
fontconfig-devel libXft-devel libXcursor-devel libXfixes-devel \
ruby-devel libXScrnSaver-devel libkdcraw-devel exiv2-devel \
lcms-devel libtiff-devel sqlite-devel libxkbfile-devel \
imlib2-devel patch gstreamer-plugins-base-devel


read http://techbase.kde.org/index.php?title=...requisites
and you should now install clucene and strigi. See ggarron's post above how to do that. Also install some other stuff from that page, just in case they're required, such as DBus.

I got a bunch of Java errors when compiling kdesupport. I edited one of the CMakeLists.txt (I think it was in kdecore/CMakeLists.txt) files and commented out the optional 'strigi' module which failed. Just to be safe, just remove the whole folder, unpack the tar again and re-do it.

Note that at least one of the modules we're compiling needs root privilege or it can't install (just compile).

Code:
cd  
cs # 'cs' is a bash function, click here to learn more
mkdir KDE && cd KDE

unpack all tars here

install kdelib

Code:
cd  
cs # 'cs' is a bash function, click here to learn more
mkdir KDE && cd KDE
cd kdelibs-4.0.1
cmakekde


install kdepimlibs

Code:
cs KDE # 'cs' is a bash function, click here to learn more
cd kdepimlibs-4.0.1
cmakekde


install kdebase, and then the rest. The commands are similar to how you installed kdelib and kdepimlibs.

Sometimes I got compilation errors for some weird reasons. I changed ~/.bashrc and replaced the 'make -jX' (X = digit) with 'make -j1' (or 'make') so that only one C++ compiler is compiling at the same time. Remember to exit the terminal and open a new one for the changes to take effect.

See this page on how to start KDE4: http://techbase.kde.org/index.php?title=...evelopment
I tested it by changing /etc/inittab setting default to '3' instead of '5'. Then restarted and then as kde-devel user:

Code:
X :1 & export DISPLAY=:1
startkde

02-12-2008 08:07 PM
Find all posts by this user Quote this message in a reply
ragingpanda
Junior Member
**


Posts: 1
Group: Registered
Joined: Mar 2008
Status: Offline
Reputation: 0
Post: #3
RE: Installing KDE 4 on Centos

Hi,

I'd be interested in knowing whether anyone has managed to install KDE4 on a vanilla Centos installation - or is installing a more recent kernel the only way to get things to work??

Also, I'm fairly new to centos - are there likely to be any rpm's available to make KDE installation easy? Or will users have to wait until Centos6?

Basically, I'm just a normal (i.e. lazy) user who has in the past "rolled his own" kernel, but now just wants the easy life. Cool

Cheers, Jon

03-29-2008 12:01 AM
Find all posts by this user Quote this message in a reply
ggalt
Junior Member
**


Posts: 1
Group: Registered
Joined: May 2008
Status: Offline
Reputation: 0
Post: #4
RE: Installing KDE 4 on Centos

ragingpanda Wrote:
Hi,

I'd be interested in knowing whether anyone has managed to install KDE4 on a vanilla Centos installation - or is installing a more recent kernel the only way to get things to work??

Also, I'm fairly new to centos - are there likely to be any rpm's available to make KDE installation easy? Or will users have to wait until Centos6?

Basically, I'm just a normal (i.e. lazy) user who has in the past "rolled his own" kernel, but now just wants the easy life. Cool

Cheers, Jon


I was able to install Qt4.4 and KDE 4.0.4 on the latest CentOS kernel (2.6.18-53.1.21.el5) using the instructions above (plus a little luck). I've posted some more details to Rex Dieter's kde-redhat yum repo mailing list. Hopefully he'll come up with packages soon.

George

05-29-2008 12:33 PM
Find all posts by this user Quote this message in a reply
angrypanda
Junior Member
**


Posts: 1
Group: Registered
Joined: Mar 2008
Status: Offline
Reputation: 0
Post: #5
RE: Installing KDE 4 on Centos

ggalt Wrote:
I was able to install Qt4.4 and KDE 4.0.4 on the latest CentOS kernel (2.6.18-53.1.21.el5) using the instructions above (plus a little luck). I've posted some more details to Rex Dieter's kde-redhat yum repo mailing list. Hopefully he'll come up with packages soon.

George


That's cool - I'm slightly stuck with my installation as all the assumed paths point to /usr/local - and this is a network mount point at my work (and I can't write there). Do you see there being problems with trying to install to /opt ? Including all the trolltech qt stuff?

Sorry for the lame question - I am a novice at this hacking lark.

Cheers, Jon

06-05-2008 12:15 AM
Find all posts by this user Quote this message in a reply
newuser
Junior Member
**


Posts: 2
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Post: #6
RE: Installing KDE 4 on Centos

This is how I installed it from a minimum CentOS 5.2 install. There were some problems, read the comments below if something fails.

If you have KDE 3 installed, uninstall it first because I will install everything in /usr. If it's not uninstalled you may get some weird problems when you run KDE 4.

Install CentOS 5.2, unticking everything so you install the minimum crap
possible.

I assume you'll be root all the time, but you usually only need to be root
when installing the apps or running yum, not when compiling.

# Compile in parallel. Change the "2" to your number of CPUs.
export MAKEOPTS="-j2"
alias makeinst='make $MAKEOPTS && make install && echo done'

# We'll do all the dirty stuff in ~/work
cd
mkdir work
cd work

# Install rpmforge because it has some packages not in the centos repos.
# Modify the link if it's an x86-64 machine. The latest release can be found
# here: http://dag.wieers.com/rpm/packages/rpmforge-release/. Grab the *.el5.*
# rpm package, i386 for 32-bit systems or x86_64 for 64-bit systems.
wget http://dag.wieers.com/rpm/packages/rpmfo...f.i386.rpm
rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum update

# We need X
yum groupinstall "X Software Development" "X Window System"

# Install some needed programs/libs
yum install expat expat-devel gettext gettext-devel hal-devel \
curl-devel intltool bison freeglut freeglut-devel libnl-devel \
xmms xmms-devel libXtst-devel cyrus-sasl cyrus-sasl-devel \
cyrus-sasl-gssapi cyrus-sasl-ldap cyrus-sasl-md5 cyrus-sasl-ntlm \
cyrus-sasl-plain openldap-devel gnokii gnokii-devel gnokii-gui \
gphoto2-devel sane-backends-devel sane-frontends chmlib chmlib-devel \
libXxf86vm-devel libmusicbrainz libmusicbrainz-devel cdparanoia \
cdparanoia-devel flac-devel ffmpeg ffmpeg-devel libotr libotr-devel \
gmp-devel ocaml readline-devel libqalculate libqalculate-devel \
cln-devel xscreensaver 'xscreensaver-*' ggz-client-libs libjpeg-devel \
ggz-client-libs-devel system-config-printer subversion-devel libjpeg \
install gcc gcc-c++ dbus-glib-devel cups-devel libXinerama-devel \
gnome-vfs2-devel sqlite-devel python-devel boost boost-devel bzip2-devel \
pcre-devel libxslt-devel aspell-devel enchant enchant-devel giflib-devel \
avahi-devel avahi-glib-devel openexr openexr-devel xine-lib xine-lib-devel \
libraw1394 libraw1394-devel libXrandr libXrandr-devel bluez-libs-devel \
lm_sensors lm_sensors-devel libxklavier libxklavier-devel libxkbfile-devel \
gpgme gpgme-devel exiv2 exiv2-devel lcms-devel

# Install latest DBus. The one you have is too old for some programs.
cd ~/work
wget http://dbus.freedesktop.org/releases/dbu...2.3.tar.gz
tar xzf dbus-1.2.3.tar.gz
cd dbus-1.2.3
./configure --prefix=/usr --exec-prefix=/ --libexecdir=/usr/libexec \
--bindir=/bin --libdir=/lib --includedir=/usr/include \
--localstatedir=/var --sysconfdir=/etc --with-xml=expat
makeinst
dbus-uuidgen --ensure
# Make sure the pkg-config file is where it should be, overwriting the old
# dbus v1.0 file.
mv -f /lib/pkgconfig/dbus-1.pc /usr/lib/pkgconfig/dbus-1.pc
cd ~/work
wget http://dbus.freedesktop.org/releases/dbu....76.tar.gz
tar xzf dbus-glib-0.76.tar.gz
cd dbus-glib-0.76
./configure --prefix=/usr && makeinst

# Install CMake
cd ~/work
wget http://www.cmake.org/files/v2.6/cmake-2.6.1.tar.gz
tar xzf cmake-2.6.1.tar.gz
cd cmake-2.6.1
./bootstrap --prefix=/usr && makeinst

# Install flex >= 2.5.31
cd ~/work
wget http://prdownloads.sourceforge.net/flex/...35.tar.bz2
tar xjf flex-2.5.35.tar.bz2
cd flex-2.5.35
./configure --prefix=/usr && makeinst

# Install iconv
cd ~/work
wget http://ftp.gnu.org/pub/gnu/libiconv/libi....12.tar.gz
tar xzf libiconv-1.12.tar.gz
cd libiconv-1.12
./configure --prefix=/usr && makeinst

# Install libxml2
cd ~/work
wget ftp://xmlsoft.org/libxml2/libxml2-sources-2.6.32.tar.gz
tar xzf libxml2-sources-2.6.32.tar.gz
cd libxml2-2.6.32
./configure --prefix=/usr && makeinst

# Install liboil
cd ~/work
wget http://liboil.freedesktop.org/download/l....15.tar.gz
tar xzf liboil-0.3.15.tar.gz
cd liboil-0.3.15
./configure --prefix=/usr && makeinst

# Install gstreamer:
cd ~/work
wget http://gstreamer.freedesktop.org/src/gst....20.tar.gz
tar xzf gstreamer-0.10.20.tar.gz

cd gstreamer-0.10.20
./configure --disable-failing-tests --prefix=/usr && makeinst

# Install gstreamer plugin (base)
cd ~/work
wget http://gstreamer.freedesktop.org/src/gst....20.tar.gz
tar xzf gst-plugins-base-0.10.20.tar.gz
cd gst-plugins-base-0.10.20
./configure --prefix=/usr && makeinst

# Install latest Qt4
cd ~/work
wget http://wftp.tu-chemnitz.de/pub/Qt/qt/sou...4.1.tar.gz
tar xzf qt-x11-opensource-src-4.4.1.tar.gz
cd qt-x11-opensource-src-4.4.1
./configure -qt-gif -release -fast -dbus-linked -nomake examples -nomake demos -prefix /usr
makeinst
# Make sure QT4 bins are used before QT3 bins
export PATH=/usr/bin:$PATH

# Install clucene
cd ~/work
wget http://downloads.sourceforge.net/clucene....20.tar.gz
tar xzf clucene-core-0.9.20.tar.gz
cd clucene-core-0.9.20
./configure --prefix=/usr && makeinst

# Install shared-mime-info
cd ~/work
wget http://freedesktop.org/~hadess/shared-mi...51.tar.bz2
tar xjf shared-mime-info-0.51.tar.bz2
cd shared-mime-info-0.51
./configure --prefix=/usr && makeinst

# Install Jasper
cd ~/work
wget http://www.ece.uvic.ca/~mdadams/jasper/s....900.1.zip
unzip jasper-1.900.1.zip
cd jasper-1.900.1
./configure --prefix=/usr && makeinst

# Install wireless-tools
cd ~/work
wget http://www.hpl.hp.com/personal/Jean_Tour....29.tar.gz
tar xzf wireless_tools.29.tar.gz
cd wireless_tools.29
make PREFIX=/usr
make PREFIX=/usr install

# Install Network Manager 0.6.5
cd ~/work
wget http://ftp.gnome.org/pub/GNOME/sources/N....5.tar.bz2
tar xjf NetworkManager-0.6.5.tar.bz2
cd NetworkManager-0.6.5
./configure --prefix=/usr --without-gnome && makeinst

# install pciutils
# (kdebase didn't detect it so this could be useless)
cd ~/work
wget ftp://atrey.karlin.mff.cuni.cz/pub/linux...0.0.tar.gz
tar xzf pciutils-3.0.0.tar.gz
cd pciutils-3.0.0
edit makefile, set PREFIX to /usr
make ZLIB=yes DNS=yes SHARED=yes && make install-lib && make install && echo done

# Install libassuan
cd ~/work
wget ftp://ftp.gnupg.org/gcrypt/libassuan/lib....4.tar.bz2
tar xjf libassuan-1.0.4.tar.bz2
cd libassuan-1.0.4
./configure --prefix=/usr && makeinst

# Install opensync
cd ~/work
wget http://www.opensync.org/download/release....36.tar.gz
tar xzf libopensync-0.36.tar.gz
cd libopensync-0.36
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr `pwd`/.. -Wno-dev && makeinst

# Install PyQt4 and SIP. Latest versions here:
# http://www.riverbankcomputing.com/software/sip/download
# http://www.riverbankcomputing.com/softwa...t/download
cd ~/work
wget http://www.riverbankcomputing.com/static...7.7.tar.gz
tar xzf sip-4.7.7.tar.gz
cd sip-4.7.7
python configure.py && makeinst
cd ~/work
wget http://www.riverbankcomputing.com/static...4.3.tar.gz
tar xzf PyQt-x11-gpl-4.4.3.tar.gz
cd PyQt-x11-gpl-4.4.3
python configure.py && makeinst

# Install poppler
cd ~/work
wget http://poppler.freedesktop.org/poppler-d...2.0.tar.gz
tar xzf poppler-data-0.2.0.tar.gz
cd poppler-data-0.2.0
edit Makefile and change prefix to /usr from /usr/local
makeinst
cd ~/work
wget http://poppler.freedesktop.org/poppler-0.8.5.tar.gz
tar xzf poppler-0.8.5.tar.gz
cd poppler-0.8.5
./configure --prefix=/usr --enable-zlib --enable-poppler-qt4 && makeinst

# Install raptor
cd ~/work
wget http://download.librdf.org/source/raptor-1.4.18.tar.gz
tar xzf raptor-1.4.18.tar.gz
cd raptor-1.4.18
./configure --prefix=/usr && makeinst

# Install redland
cd ~/work
wget http://download.librdf.org/source/redland-1.0.8.tar.gz
tar xzf redland-1.0.8.tar.gz
cd redland-1.0.8
./configure --prefix=/usr && makeinst

# Install rasqal
cd ~/work
wget http://download.librdf.org/source/rasqal-0.9.16.tar.gz
tar xzf rasqal-0.9.16.tar.gz
cd rasqal-0.9.16
./configure --prefix=/usr && makeinst

# Install ghostscript
cd ~/work
wget http://ghostscript.com/releases/ghostscr...62.tar.bz2
tar xjf ghostscript-8.62.tar.bz2
cd ghostscript-8.62
./configure --prefix=/usr --enable-dynamic --disable-gtk --with-jasper --with-x --with-libiconv=gnu && makeinst
make -j2 soinstall && echo done

# Install libspectre
cd ~/work
wget http://libspectre.freedesktop.org/releas...2.0.tar.gz
tar xzf libspectre-0.2.0.tar.gz
cd libspectre-0.2.0
./configure --prefix=/usr && makeinst

# Install DjVuLibre
cd ~/work
wget http://downloads.sourceforge.net/djvu/dj...0-5.tar.gz
tar xzf djvulibre-3.5.20-5.tar.gz
cd djvulibre-3.5.20
./configure --prefix=/usr && makeinst

# Install libzip
cd ~/work
wget http://www.nih.at/libzip/libzip-0.9.tar.bz2
tar xjf libzip-0.9.tar.bz2
cd libzip-0.9
./configure --prefix=/usr && makeinst

# Install ebook-tools
cd ~/work
wget http://downloads.sourceforge.net/ebook-t...1.1.tar.gz
tar xzf ebook-tools-0.1.1.tar.gz
cd ebook-tools-0.1.1
cmake -DCMAKE_INSTALL_PREFIX=/usr . -Wno-dev && makeinst

# Install QCA
cd ~/work
wget http://delta.affinix.com/download/qca/2.....1.tar.bz2
tar xjf qca-2.0.1.tar.bz2
cd qca-2.0.1
./configure --prefix=/usr --disable-tests && makeinst

# Install libvncserver
cd ~/work
wget http://downloads.sourceforge.net/libvncs...9.1.tar.gz
tar xzf LibVNCServer-0.9.1.tar.gz
cd LibVNCServer-0.9.1
./configure --prefix=/usr && makeinst

# Install Decibel
# Can't get this to work anymore. Fails when building telepathy-qt. Used to work.
# Decibel is optional so forget it if it won't compile.
cd ~/work
svn co https://svn.sourceforge.net/svnroot/tapi...lepathy-qt
cd telepathy-qt
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr `pwd`/.. -Wno-dev && makeinst
cd ~/work
svn co https://svn.sourceforge.net/svnroot/tapi...tapioca-qt
cd tapioca-qt
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr `pwd`/.. -Wno-dev && makeinst
cd ~/work
wget http://decibel.kde.org/fileadmin/downloa...5.0.tar.gz
tar xzf decibel-0.5.0.tar.gz
cd decibel-0.5.0
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr `pwd`/.. -Wno-dev && makeinst

# Install libfacile
cd ~/work
wget http://www.recherche.enac.fr/log/facile/...1.1.tar.gz
tar xzf facile-1.1.tar.gz
cd facile-1.1
./configure && makeinst

# Install OpenBabel
cd ~/work
wget http://downloads.sourceforge.net/openbab...2.0.tar.gz
tar xzf openbabel-2.2.0.tar.gz
cd openbabel-2.2.0
./configure --prefix=/usr && makeinst

# Install cfitsio
cd ~/work
wget ftp://heasarc.gsfc.nasa.gov/software/fit...090.tar.gz
tar xzf cfitsio3090.tar.gz
cd cfitsio
./configure --prefix=/usr && makeinst

# Install indilib
cd ~/work
wget http://downloads.sourceforge.net/indi/in...0.5.tar.gz
tar xzf indilib-0.5.tar.gz
cd indi
./configure --prefix=/usr && makeinst

# Install libnova
cd ~/work
wget http://downloads.sourceforge.net/libnova...2.2.tar.gz
tar xzf libnova-0.12.2.tar.gz
cd libnova-0.12.2
./configure --prefix=/usr && makeinst

# Install gmm++
cd ~/work
wget http://download.gna.org/getfem/stable/ge...0.3.tar.gz
tar xzf getfem++-3.0.3.tar.gz
cd getfem++-3.0.3
./configure --prefix=/usr --enable-boost && makeinst

# Install GSL
cd ~/work
wget ftp://ftp.gnu.org/gnu/gsl/gsl-1.11.tar.gz
tar xzf gsl-1.11.tar.gz
cd gsl-1.11
./configure --prefix=/usr && makeinst

# Install libarchive
cd ~/work
wget http://people.freebsd.org/~kientzle/liba...5.5.tar.gz
tar xzf libarchive-2.5.5.tar.gz
cd libarchive-2.5.5
./configure --prefix=/usr && makeinst

# Install libxcb. The latest version requires python > the version we have
# so install an earlier version. I chose v1.1 but it's possible a later
# version also works.
cd ~/work
wget http://www.paldo.org/paldo/sources/pthre....1.tar.bz2
tar xjf libpthread-stubs-0.1.tar.bz2
cd libpthread-stubs-0.1
./configure --prefix=/usr && makeinst
cd ~/work
wget http://xcb.freedesktop.org/dist/xcb-proto-1.1.tar.gz
tar xzf xcb-proto-1.1.tar.gz
cd xcb-proto-1.1
./configure --prefix=/usr && makeinst
cd ~/work
wget http://xcb.freedesktop.org/dist/libxcb-1.1.tar.gz
tar xzf libxcb-1.1.tar.gz
cd libxcb-1.1
./configure --prefix=/usr && makeinst

# Hack for kdesupport. It can't find this include file.
cp /usr/lib/glib-2.0/include/glibconfig.h /usr/include/

# Install kdesupport
mkdir ~/work/kde
cd ~/work/kde
svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/
mkdir -p build/kdesupport
cd build/kdesupport
cmake ../../kdesupport/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release -Wno-dev
makeinst

# Download all KDE files. We're building everything whether you like it or not.
# Go here http://www.kde.org/download/#v4.1 and pick a closer mirror than .se
cd ~/work/kde
for f in kdeaccessibility kdelibs kdeadmin kdemultimedia \
kdeartwork kdenetwork kdebase kdepim \
kdebase-runtime kdepimlibs kdebase-workspace kdeplasma-addons \
kdebindings kdesdk kdeedu kdetoys kdegames kdeutils \
kdegraphics kdewebdev
do
wget http://ftp.sunet.se/pub/kde/stable/4.1.0....0.tar.bz2
tar xjf ${f}-4.1.0.tar.bz2
mv ${f}-4.1.0 $f
rm -f ${f}-4.1.0.tar.bz2
mkdir build/$f
done

# Fix some kdebase dirs
mv kdebase-runtime/ kdebase/runtime
mv kdebase-workspace/ kdebase/workspace

# Build first part of KDE 4.1
for i in kdelibs kdebase kdepimlibs
do
cd ~/work/kde
cd build/$i
cmake ../../$i/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release -Wno-dev && \
make $MAKEOPTS install && echo done
done

# Install PyKDE4
# This doesn't work anymore
cd ~/work
wget http://www.riverbankcomputing.co.uk/stat...-1.tar.bz2
tar xjf PyKDE4-4.0.2-1.tar.bz2
cd PyKDE4-4.0.2-1
python configure.py && makeinst

# Build the rest of KDE 4.1
# kdebindings will fail, but worked before. Just remove it if it fails.
for i in kdeaccessibility kdeadmin kdeartwork kdebindings \
kdeedu kdegames kdegraphics kdemultimedia kdenetwork kdepim \
kdeplasma-addons kdesdk kdetoys kdeutils kdewebdev
do
cd ~/work/kde
cd build/$i
cmake ../../$i/ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release -Wno-dev && \
make $MAKEOPTS install && echo done
done
cd ~/work/kde
echo DONE


Now to start KDE 4.
echo startkde > ~/.xinitrc
startx

This post was last modified: 08-10-2008 07:55 AM by newuser.

08-10-2008 07:42 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:


hit counter