1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="kde4-pre-install-config">
|
---|
9 | <?dbhtml filename="pre-install-config.html"?>
|
---|
10 |
|
---|
11 | <sect1info>
|
---|
12 | <othername>$LastChangedBy$</othername>
|
---|
13 | <date>$Date$</date>
|
---|
14 | </sect1info>
|
---|
15 |
|
---|
16 | <title>KDE4 Pre-installation Configuration</title>
|
---|
17 |
|
---|
18 | <sect2><title>Dependencies</title>
|
---|
19 |
|
---|
20 | <para><application>KDE4</application> is a huge software collection
|
---|
21 | providing a desktop, tools for system and development tasks as well as
|
---|
22 | fun and educational stuff. It makes use of a tremendous amount of
|
---|
23 | non-KDE packages. While nearly all of those packages are optional,
|
---|
24 | some others are are highly recommended like <xref linkend="polkit"/>.</para>
|
---|
25 |
|
---|
26 | <para>The following list of packages should give you an overview
|
---|
27 | about those packages and you may want to consider to install them
|
---|
28 | first. Installing this packages will switch on some useful features
|
---|
29 | in the resulting <application>KDE4</application>. Nevertheless the
|
---|
30 | dependencies are shown on each of the following pages.
|
---|
31 |
|
---|
32 | <itemizedlist>
|
---|
33 | <listitem>
|
---|
34 | <para><ulink url="http://qjson.sourceforge.net">QJSON</ulink> (http://qjson.sourceforge.net) - Qt library for handling JavaScript objects. Unfortunatly, the release version 0.7.1 is to old to compile. Alternativly use the current SVN sources or apply a patch to bring the release to a usable status.</para>
|
---|
35 | <para>Compile it using <command>cmake -DCMAKE_INSTALL_PREFIX=/usr && make && make install</command> in its own build directory.</para>
|
---|
36 | </listitem>
|
---|
37 | <listitem>
|
---|
38 | <para><ulink url="http://gpsd.berlios.de/">libgps</ulink> (http://gpsd.berlios.de/) - interface to GPS devices (kdeedu)</para>
|
---|
39 | <para>Compile it the usual way <command>configure && make && make install</command>.</para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para><ulink url="http://eigen.tuxfamily.org/">eigen2</ulink> (http://eigen.tuxfamily.org/) - a C++ template library for linear algebra</para>
|
---|
43 | <para>Compile it using <command>cmake -DCMAKE_INSTALL_PREFIX=/usr && make && make install</command>.</para>
|
---|
44 | </listitem>
|
---|
45 | <listitem>
|
---|
46 | <para><xref linkend="desktop-file-utils"/> - a few command line utilities for working with desktop entries</para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para><ulink url="http://www.riverbankcomputing.com/software/sip/intro">pySIP</ulink> (http://www.riverbankcomputing.com/software/sip/intro) - Python Service Integration Platform</para>
|
---|
50 | <para>Compile it <command>python ./configure && make && make install</command>.</para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para><ulink url="http://www.riverbankcomputing.com/software/pyqt/">pyQT4</ulink> (http://www.riverbankcomputing.com/software/pyqt/) - Python interface to Qt4 (kdebindings)</para>
|
---|
54 | <para>Compile it <command>python ./configure && make && make install</command>.</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para><xref linkend="ruby"/> - Ruby language (kdebindings)</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para><xref linkend="poppler"/> - Utility and library to show PDF files (kdegraphics)</para>
|
---|
61 | <para>make sure the --enable-xpdf-headers switch is set</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para><xref linkend="libical"/> - library handling calendar entries (kdepimlibs)</para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para><ulink url="http://cyberelk.net/tim/data/pycups/">pyCUPS</ulink> (http://cyberelk.net/tim/data/pycups/) - Python interface to CUPS (kdeadmin)</para>
|
---|
68 | <para>Compile it with <command>make && make install</command>.</para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para><ulink url="http://cyberelk.net/tim/data/system-config-printer/">system-config-printer</ulink> (http://cyberelk.net/tim/data/system-config-printer/) - Printer config (kdeadmin)</para>
|
---|
72 | <para>Compile it the usual way <command>configure && make && make install</command>.</para>
|
---|
73 | </listitem>
|
---|
74 | <listitem>
|
---|
75 | <para><xref linkend="libidn"/> - en-/decode internationalized domain names (kdenetwork)</para>
|
---|
76 | </listitem>
|
---|
77 | <listitem>
|
---|
78 | <para><xref linkend="polkit"/> - Policy handling (nearly all of KDE)</para>
|
---|
79 | </listitem>
|
---|
80 | <listitem>
|
---|
81 | <para><xref linkend="consolekit"/> - Runtime dependency of polkit</para>
|
---|
82 | </listitem>
|
---|
83 | <listitem>
|
---|
84 | <para>U-tools - udisks and upower instead of HAL</para>
|
---|
85 | <para>and all of its dependencies: <xref linkend="libatasmart"/>, <xref linkend="sg3_utils"/>,
|
---|
86 | <xref linkend="libffi"/>, <xref linkend="acl"/>, <xref linkend="gobject-introspection"/>,
|
---|
87 | <xref linkend="udev"/>, <xref linkend="device-mapper"/>, <xref linkend="parted"/> and than
|
---|
88 | <xref linkend="udisks"/> and <xref linkend="upower"/></para>
|
---|
89 | </listitem>
|
---|
90 | <listitem>
|
---|
91 | <para><xref linkend="libiodbc"/> - iODBC library</para>
|
---|
92 | </listitem>
|
---|
93 | <listitem>
|
---|
94 | <para><xref linkend="virtuoso"/> - a Universal Database</para>
|
---|
95 | </listitem>
|
---|
96 | <listitem>
|
---|
97 | <para><xref linkend="exiv2"/> - Image data processing library</para>
|
---|
98 | </listitem>
|
---|
99 | <listitem>
|
---|
100 | <para>RDF tools - Handling of RDF data</para>
|
---|
101 | <para>Including: <xref linkend="raptor"/>, <xref linkend="rasqal"/> and <xref linkend="redland"/></para>
|
---|
102 | </listitem>
|
---|
103 | <listitem>
|
---|
104 | <para><xref linkend="clucene"/> - Text search engine</para>
|
---|
105 | </listitem>
|
---|
106 | <listitem>
|
---|
107 | <para><xref linkend="boost"/> - collection of free C++ libraries</para>
|
---|
108 | </listitem>
|
---|
109 | <listitem>
|
---|
110 | <para><xref linkend="qca"/> - Cryptographic library for Qt platform</para>
|
---|
111 | </listitem>
|
---|
112 | <listitem>
|
---|
113 | <para><xref linkend="libdbusmenu-qt"/> - Qt interface to D-Bus menue</para>
|
---|
114 | </listitem>
|
---|
115 | <listitem>
|
---|
116 | <para><xref linkend="soprano"/> - object-oriented C++/Qt4 framework for RDF data</para>
|
---|
117 | </listitem>
|
---|
118 | <listitem>
|
---|
119 | <para><xref linkend="strigi"/> - Desktop indexing engine</para>
|
---|
120 | </listitem>
|
---|
121 | <listitem>
|
---|
122 | <para><ulink url="http://www.grantlee.org">Grantlee</ulink> (http://www.grantlee.org) - a template system for Qt</para>
|
---|
123 | <para>Compile it using <command>cmake -DCMAKE_INSTALL_PREFIX=/usr && make && make install</command> in its own build directory.</para>
|
---|
124 | </listitem>
|
---|
125 | </itemizedlist>
|
---|
126 | </para>
|
---|
127 | </sect2>
|
---|
128 |
|
---|
129 | <sect2><title>Installing in /usr</title>
|
---|
130 | <para>One option is to put <application>KDE4</application> into the
|
---|
131 | <filename class='directory'>/usr</filename> hierarchy. This creates
|
---|
132 | a simpler setup but is more difficult to try multiple versions
|
---|
133 | of <application>KDE4</application>.</para>
|
---|
134 |
|
---|
135 | <screen><userinput>export &kde4-dir-var;=/usr</userinput></screen>
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2><title>Installing in /opt</title>
|
---|
139 | <para>A method of building multiple versions installs
|
---|
140 | <application>KDE4</application> in the <filename
|
---|
141 | class='directory'>/opt</filename> hierarchy:</para>
|
---|
142 |
|
---|
143 | <screen><userinput>export &kde4-dir-var;=/opt/kde4</userinput></screen>
|
---|
144 |
|
---|
145 | <para>If you are not installing <application>KDE4</application> in
|
---|
146 | <filename class="directory">/usr</filename>, you will need to make some
|
---|
147 | additional configuration changes. Best practice is to add those to your
|
---|
148 | system or personal profile:</para>
|
---|
149 |
|
---|
150 | <screen><userinput>cat > /etc/profile.d/kde4.sh <<"EOF"
|
---|
151 | # Begin /etc/profile.d/kde4.sh
|
---|
152 |
|
---|
153 | &kde4-dir-var;=/opt/kde4
|
---|
154 | KDE4DIR=&kde4-dir;
|
---|
155 | KDEDIR=&kde4-dir;
|
---|
156 |
|
---|
157 | pathappend &kde4-dir;/bin PATH
|
---|
158 | pathappend &kde4-dir;/lib/pkgconfig PKG_CONFIG_PATH
|
---|
159 | pathappend &kde4-dir;/share/pkgconfig PKG_CONFIG_PATH
|
---|
160 | pathappend &kde4-dir;/share XDG_DATA_DIRS
|
---|
161 | pathappend /etc/kde4/xdg XDG_CONFIG_DIRS
|
---|
162 |
|
---|
163 | export KDE4_PREFIX KDE4DIR KDEDIR
|
---|
164 | export PATH PKG_CONFIG_PATH XDG_DATA_DIRS XDG_CONFIG_DIRS
|
---|
165 |
|
---|
166 | # End /etc/profile.d/kde4.sh
|
---|
167 | EOF
|
---|
168 | </userinput></screen>
|
---|
169 |
|
---|
170 | <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
|
---|
171 |
|
---|
172 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
173 | <literal># Begin kde4 addition to /etc/ld.so.conf
|
---|
174 |
|
---|
175 | /opt/kde4/lib
|
---|
176 |
|
---|
177 | # End kde4 addition</literal>
|
---|
178 | EOF</userinput></screen>
|
---|
179 |
|
---|
180 | <indexterm zone="kde4-pre-install-config">
|
---|
181 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
182 | </indexterm>
|
---|
183 |
|
---|
184 | <para>Add to your <filename>/etc/man_db.conf</filename>:</para>
|
---|
185 |
|
---|
186 | <screen role="root"><userinput>cat >> /etc/man_db.conf << "EOF"
|
---|
187 | <literal># Begin kde4 addition to man_db.conf
|
---|
188 |
|
---|
189 | MANDATORY_MANPATH /opt/kde4/man
|
---|
190 |
|
---|
191 | # End kde4 addition to man_db.conf</literal>
|
---|
192 | EOF</userinput></screen>
|
---|
193 |
|
---|
194 | <indexterm zone="kde4-pre-install-config">
|
---|
195 | <primary sortas="e-etc-man_db.conf">/etc/man_db.conf</primary>
|
---|
196 | </indexterm>
|
---|
197 |
|
---|
198 | <tip>
|
---|
199 | <para>Sometimes, the installation pathes are patched into installed
|
---|
200 | files. This is the reason why <filename class="directory">/opt/kde4</filename>
|
---|
201 | is used as installation prefix instead of <filename class="directory">/opt/kde-&kde4-version;</filename>.
|
---|
202 | After installing <application>KDE4</application>, you may consider to
|
---|
203 | rename the directory and create a symlink:</para>
|
---|
204 |
|
---|
205 | <screen role="root"><userinput>mv /opt/kde{4,-&kde4-version;} &&
|
---|
206 | ln -v -sf kde-&kde4-version; /opt/kde4</userinput></screen>
|
---|
207 |
|
---|
208 | <para>Later on, you may want to install other versions of <application>KDE4</application>.
|
---|
209 | To do that, just remove the symlink and use <filename class="directory">/opt/kde4</filename>
|
---|
210 | as prefix again (<application>KDE4</application> must not be started). Which
|
---|
211 | version of <application>KDE4</application> you use depends only on
|
---|
212 | where the symlink points to. No other reconfiguration will be needed.</para>
|
---|
213 | </tip>
|
---|
214 |
|
---|
215 | </sect2>
|
---|
216 |
|
---|
217 | <sect2><title>The QT4DIR variable</title>
|
---|
218 | <para>Some additional packages which are based on <application>Qt4</application>
|
---|
219 | will be installed. One of them is <application>Phonon</application>, a direct
|
---|
220 | replacement of the implementation which comes with <application>Qt4</application>.
|
---|
221 | It's recommended to place such libraries in the same hierarchy where <application>Qt4</application>
|
---|
222 | itself resides. Later on, it is refered to <envar>QT4DIR</envar>. If you have placed
|
---|
223 | <application>Qt4</application> in <filename class='directory'>/usr</filename>,
|
---|
224 | set <envar>QT4DIR</envar>:</para>
|
---|
225 |
|
---|
226 | <screen><userinput>export QT4DIR=/usr</userinput></screen>
|
---|
227 |
|
---|
228 | <para>Alternativly, <application>Qt4</application> is often placed in the
|
---|
229 | <filename class='directory'>/opt</filename> hierarchy:</para>
|
---|
230 |
|
---|
231 | <screen><userinput>export QT4DIR=/opt/qt-&qt4-version;
|
---|
232 | export PATH=$QT4DIR/bin:$PATH</userinput></screen>
|
---|
233 |
|
---|
234 | </sect2>
|
---|
235 |
|
---|
236 | </sect1>
|
---|