[0e25c32] | 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 |
|
---|
[00785d8] | 20 | <para><application>KDE4</application> is a huge software collection
|
---|
| 21 | providing a desktop, tools for system and development tasks, and fun and
|
---|
| 22 | educational programs. It makes use of a tremendous amount of non-KDE
|
---|
| 23 | packages. While nearly all of those packages are optional, some others are
|
---|
| 24 | are highly recommended.</para>
|
---|
| 25 |
|
---|
| 26 | <para>The following list of packages should give you an overview about
|
---|
| 27 | those packages and you may want to consider installing them first.
|
---|
| 28 | Installing these packages will enable some useful features in the resulting
|
---|
| 29 | <application>KDE4</application> suite. Nevertheless the dependencies are
|
---|
| 30 | shown on each of the following pages.
|
---|
[0e25c32] | 31 |
|
---|
| 32 | <itemizedlist>
|
---|
| 33 | <listitem>
|
---|
[00785d8] | 34 |
|
---|
| 35 | <para><ulink url="http://qjson.sourceforge.net">QJSON</ulink>
|
---|
| 36 | (http://qjson.sourceforge.net) - Qt library for handling JavaScript
|
---|
| 37 | objects. Unfortunatly, the release version 0.7.1 is to old to compile.
|
---|
| 38 | Alternativly use the current SVN sources or apply a patch to bring the
|
---|
| 39 | release to a usable status.</para>
|
---|
| 40 |
|
---|
| 41 | <para>Compile it using <command>cmake -DCMAKE_INSTALL_PREFIX=/usr
|
---|
| 42 | && make && make install</command> in its own build
|
---|
| 43 | directory.</para>
|
---|
| 44 |
|
---|
[0e25c32] | 45 | </listitem>
|
---|
[00785d8] | 46 |
|
---|
[0e25c32] | 47 | <listitem>
|
---|
[00785d8] | 48 |
|
---|
| 49 | <para><ulink url="http://gpsd.berlios.de/">libgps</ulink>
|
---|
| 50 | (http://gpsd.berlios.de/) - interface to GPS devices (kdeedu)</para>
|
---|
| 51 | <para>Compile it the usual way <command>configure && make
|
---|
| 52 | && make install</command>.</para>
|
---|
| 53 |
|
---|
[0e25c32] | 54 | </listitem>
|
---|
[00785d8] | 55 |
|
---|
[0e25c32] | 56 | <listitem>
|
---|
[00785d8] | 57 |
|
---|
| 58 | <para><ulink url="http://eigen.tuxfamily.org/">eigen2</ulink>
|
---|
| 59 | (http://eigen.tuxfamily.org/) - a C++ template library for linear
|
---|
| 60 | algebra</para>
|
---|
| 61 |
|
---|
| 62 | <para>Compile it using <command>cmake -DCMAKE_INSTALL_PREFIX=/usr
|
---|
| 63 | && make && make install</command>.</para>
|
---|
| 64 |
|
---|
[0e25c32] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[00785d8] | 67 |
|
---|
| 68 | <para><xref linkend="desktop-file-utils"/> - a few command line
|
---|
| 69 | utilities for working with desktop entries</para>
|
---|
| 70 |
|
---|
[0e25c32] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[00785d8] | 73 |
|
---|
| 74 | <para><ulink
|
---|
| 75 | url="http://www.riverbankcomputing.com/software/sip/intro">pySIP</ulink>
|
---|
| 76 | (http://www.riverbankcomputing.com/software/sip/intro) - Python Service
|
---|
| 77 | Integration Platform</para>
|
---|
| 78 |
|
---|
| 79 | <para>Compile it <command>python ./configure && make &&
|
---|
| 80 | make install</command>.</para>
|
---|
| 81 |
|
---|
[0e25c32] | 82 | </listitem>
|
---|
| 83 | <listitem>
|
---|
[00785d8] | 84 |
|
---|
| 85 | <para><ulink
|
---|
| 86 | url="http://www.riverbankcomputing.com/software/pyqt/">pyQT4</ulink>
|
---|
| 87 | (http://www.riverbankcomputing.com/software/pyqt/) - Python interface
|
---|
| 88 | to Qt4 (kdebindings)</para>
|
---|
| 89 |
|
---|
| 90 | <para>Compile it <command>python ./configure && make &&
|
---|
| 91 | make install</command>.</para> </listitem>
|
---|
| 92 |
|
---|
[0e25c32] | 93 | <listitem>
|
---|
[00785d8] | 94 |
|
---|
[0e25c32] | 95 | <para><xref linkend="ruby"/> - Ruby language (kdebindings)</para>
|
---|
[00785d8] | 96 |
|
---|
[0e25c32] | 97 | </listitem>
|
---|
| 98 | <listitem>
|
---|
[00785d8] | 99 |
|
---|
| 100 | <para><xref linkend="poppler"/> - Utility and library to show PDF files
|
---|
| 101 | (kdegraphics)</para>
|
---|
| 102 |
|
---|
[0e25c32] | 103 | <para>make sure the --enable-xpdf-headers switch is set</para>
|
---|
[00785d8] | 104 |
|
---|
[0e25c32] | 105 | </listitem>
|
---|
| 106 | <listitem>
|
---|
[00785d8] | 107 |
|
---|
| 108 | <para><xref linkend="libical"/> - library handling calendar entries
|
---|
| 109 | (kdepimlibs)</para>
|
---|
| 110 |
|
---|
[0e25c32] | 111 | </listitem>
|
---|
[00785d8] | 112 |
|
---|
[0e25c32] | 113 | <listitem>
|
---|
[00785d8] | 114 |
|
---|
| 115 | <para><ulink url="http://cyberelk.net/tim/data/pycups/">pyCUPS</ulink>
|
---|
| 116 | (http://cyberelk.net/tim/data/pycups/) - Python interface to CUPS
|
---|
| 117 | (kdeadmin)</para>
|
---|
| 118 |
|
---|
| 119 | <para>Compile it with <command>make && make
|
---|
| 120 | install</command>.</para>
|
---|
| 121 |
|
---|
[0e25c32] | 122 | </listitem>
|
---|
| 123 | <listitem>
|
---|
[00785d8] | 124 |
|
---|
| 125 | <para><ulink
|
---|
| 126 | url="http://cyberelk.net/tim/data/system-config-printer/">system-config-printer</ulink>
|
---|
| 127 | (http://cyberelk.net/tim/data/system-config-printer/) - Printer config
|
---|
| 128 | (kdeadmin)</para>
|
---|
| 129 |
|
---|
| 130 | <para>Compile it the usual way <command>configure && make
|
---|
| 131 | && make install</command>.</para>
|
---|
| 132 |
|
---|
| 133 |
|
---|
[0e25c32] | 134 | </listitem>
|
---|
| 135 | <listitem>
|
---|
[00785d8] | 136 |
|
---|
| 137 | <para><xref linkend="libidn"/> - en-/decode internationalized domain
|
---|
| 138 | names (kdenetwork)</para>
|
---|
| 139 |
|
---|
[0e25c32] | 140 | </listitem>
|
---|
| 141 | <listitem>
|
---|
[00785d8] | 142 |
|
---|
| 143 | <para><xref linkend="polkit"/> - Policy handling (nearly all of
|
---|
| 144 | KDE)</para>
|
---|
| 145 |
|
---|
[0e25c32] | 146 | </listitem>
|
---|
| 147 | <listitem>
|
---|
[00785d8] | 148 |
|
---|
| 149 | <para><xref linkend="consolekit"/> - Runtime dependency of
|
---|
| 150 | polkit</para>
|
---|
| 151 |
|
---|
[0e25c32] | 152 | </listitem>
|
---|
| 153 | <listitem>
|
---|
[00785d8] | 154 |
|
---|
[0e25c32] | 155 | <para>U-tools - udisks and upower instead of HAL</para>
|
---|
[00785d8] | 156 |
|
---|
| 157 | <para>and all of its dependencies:
|
---|
| 158 | <xref linkend="libatasmart"/>,
|
---|
| 159 | <xref linkend="sg3_utils"/>,
|
---|
| 160 | <xref linkend="libffi"/>,
|
---|
| 161 | <xref linkend="acl"/>,
|
---|
| 162 | <xref linkend="gobject-introspection"/>,
|
---|
| 163 | <xref linkend="udev"/>,
|
---|
[8bc3edae] | 164 | <xref linkend="lvm2"/>,
|
---|
[00785d8] | 165 | <xref linkend="parted"/> and than
|
---|
| 166 | <xref linkend="udisks"/> and
|
---|
| 167 | <xref linkend="upower"/>
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
[0e25c32] | 170 | </listitem>
|
---|
| 171 | <listitem>
|
---|
[00785d8] | 172 |
|
---|
[0e25c32] | 173 | <para><xref linkend="libiodbc"/> - iODBC library</para>
|
---|
[00785d8] | 174 |
|
---|
[0e25c32] | 175 | </listitem>
|
---|
[00785d8] | 176 |
|
---|
[0e25c32] | 177 | <listitem>
|
---|
[00785d8] | 178 |
|
---|
[0e25c32] | 179 | <para><xref linkend="virtuoso"/> - a Universal Database</para>
|
---|
[00785d8] | 180 |
|
---|
[0e25c32] | 181 | </listitem>
|
---|
| 182 | <listitem>
|
---|
[00785d8] | 183 |
|
---|
[0e25c32] | 184 | <para><xref linkend="exiv2"/> - Image data processing library</para>
|
---|
[00785d8] | 185 |
|
---|
[0e25c32] | 186 | </listitem>
|
---|
| 187 | <listitem>
|
---|
[00785d8] | 188 |
|
---|
[0e25c32] | 189 | <para>RDF tools - Handling of RDF data</para>
|
---|
[00785d8] | 190 |
|
---|
| 191 | <para>Including: <xref linkend="raptor"/>, <xref linkend="rasqal"/> and
|
---|
| 192 | <xref linkend="redland"/></para>
|
---|
| 193 |
|
---|
[0e25c32] | 194 | </listitem>
|
---|
| 195 | <listitem>
|
---|
[00785d8] | 196 |
|
---|
[0e25c32] | 197 | <para><xref linkend="clucene"/> - Text search engine</para>
|
---|
[00785d8] | 198 |
|
---|
[0e25c32] | 199 | </listitem>
|
---|
| 200 | <listitem>
|
---|
[00785d8] | 201 |
|
---|
[0e25c32] | 202 | <para><xref linkend="boost"/> - collection of free C++ libraries</para>
|
---|
[00785d8] | 203 |
|
---|
[0e25c32] | 204 | </listitem>
|
---|
| 205 | <listitem>
|
---|
[00785d8] | 206 |
|
---|
| 207 | <para><xref linkend="qca"/> - Cryptographic library for Qt
|
---|
| 208 | platform</para>
|
---|
| 209 |
|
---|
[0e25c32] | 210 | </listitem>
|
---|
| 211 | <listitem>
|
---|
[00785d8] | 212 |
|
---|
| 213 | <para><xref linkend="libdbusmenu-qt"/> - Qt interface to D-Bus
|
---|
| 214 | menue</para>
|
---|
| 215 |
|
---|
[0e25c32] | 216 | </listitem>
|
---|
| 217 | <listitem>
|
---|
[00785d8] | 218 |
|
---|
| 219 | <para><xref linkend="soprano"/> - object-oriented C++/Qt4 framework for
|
---|
| 220 | RDF data</para>
|
---|
| 221 |
|
---|
[0e25c32] | 222 | </listitem>
|
---|
[00785d8] | 223 |
|
---|
[0e25c32] | 224 | <listitem>
|
---|
[00785d8] | 225 |
|
---|
[0e25c32] | 226 | <para><xref linkend="strigi"/> - Desktop indexing engine</para>
|
---|
[00785d8] | 227 |
|
---|
[0e25c32] | 228 | </listitem>
|
---|
| 229 | <listitem>
|
---|
[00785d8] | 230 |
|
---|
| 231 | <para><ulink url="http://www.grantlee.org">Grantlee</ulink>
|
---|
| 232 | (http://www.grantlee.org) - a template system for Qt</para>
|
---|
| 233 |
|
---|
| 234 | <para>Compile it using <command>cmake -DCMAKE_INSTALL_PREFIX=/usr
|
---|
| 235 | && make && make install</command> in its own build
|
---|
| 236 | directory.</para>
|
---|
| 237 |
|
---|
[0e25c32] | 238 | </listitem>
|
---|
| 239 | </itemizedlist>
|
---|
| 240 | </para>
|
---|
| 241 | </sect2>
|
---|
| 242 |
|
---|
| 243 | <sect2><title>Installing in /usr</title>
|
---|
[00785d8] | 244 |
|
---|
[0e25c32] | 245 | <para>One option is to put <application>KDE4</application> into the
|
---|
[00785d8] | 246 | <filename class='directory'>/usr</filename> hierarchy. This creates a
|
---|
| 247 | simpler setup but is more difficult to try multiple versions of
|
---|
| 248 | <application>KDE4</application>.</para>
|
---|
[0e25c32] | 249 |
|
---|
| 250 | <screen><userinput>export &kde4-dir-var;=/usr</userinput></screen>
|
---|
| 251 | </sect2>
|
---|
| 252 |
|
---|
| 253 | <sect2><title>Installing in /opt</title>
|
---|
[00785d8] | 254 |
|
---|
[0e25c32] | 255 | <para>A method of building multiple versions installs
|
---|
| 256 | <application>KDE4</application> in the <filename
|
---|
| 257 | class='directory'>/opt</filename> hierarchy:</para>
|
---|
| 258 |
|
---|
| 259 | <screen><userinput>export &kde4-dir-var;=/opt/kde4</userinput></screen>
|
---|
| 260 |
|
---|
| 261 | <para>If you are not installing <application>KDE4</application> in
|
---|
| 262 | <filename class="directory">/usr</filename>, you will need to make some
|
---|
[00785d8] | 263 | additional configuration changes. Best practice is to add those to your
|
---|
[0e25c32] | 264 | system or personal profile:</para>
|
---|
| 265 |
|
---|
| 266 | <screen><userinput>cat > /etc/profile.d/kde4.sh <<"EOF"
|
---|
| 267 | # Begin /etc/profile.d/kde4.sh
|
---|
| 268 |
|
---|
| 269 | &kde4-dir-var;=/opt/kde4
|
---|
| 270 | KDE4DIR=&kde4-dir;
|
---|
| 271 | KDEDIR=&kde4-dir;
|
---|
| 272 |
|
---|
[e9f77617] | 273 | pathappend &kde4-dir;/bin PATH
|
---|
| 274 | pathappend &kde4-dir;/lib/pkgconfig PKG_CONFIG_PATH
|
---|
| 275 | pathappend &kde4-dir;/share/pkgconfig PKG_CONFIG_PATH
|
---|
| 276 | pathappend &kde4-dir;/share XDG_DATA_DIRS
|
---|
| 277 | pathappend /etc/kde4/xdg XDG_CONFIG_DIRS
|
---|
[0e25c32] | 278 |
|
---|
| 279 | export KDE4_PREFIX KDE4DIR KDEDIR
|
---|
| 280 |
|
---|
| 281 | # End /etc/profile.d/kde4.sh
|
---|
| 282 | EOF
|
---|
| 283 | </userinput></screen>
|
---|
| 284 |
|
---|
| 285 | <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
|
---|
| 286 |
|
---|
| 287 | <screen role="root"><userinput>cat >> /etc/ld.so.conf << "EOF"
|
---|
| 288 | <literal># Begin kde4 addition to /etc/ld.so.conf
|
---|
| 289 |
|
---|
| 290 | /opt/kde4/lib
|
---|
| 291 |
|
---|
| 292 | # End kde4 addition</literal>
|
---|
| 293 | EOF</userinput></screen>
|
---|
| 294 |
|
---|
| 295 | <indexterm zone="kde4-pre-install-config">
|
---|
| 296 | <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 |
|
---|
| 299 | <para>Add to your <filename>/etc/man_db.conf</filename>:</para>
|
---|
| 300 |
|
---|
| 301 | <screen role="root"><userinput>cat >> /etc/man_db.conf << "EOF"
|
---|
| 302 | <literal># Begin kde4 addition to man_db.conf
|
---|
| 303 |
|
---|
| 304 | MANDATORY_MANPATH /opt/kde4/man
|
---|
| 305 |
|
---|
| 306 | # End kde4 addition to man_db.conf</literal>
|
---|
| 307 | EOF</userinput></screen>
|
---|
| 308 |
|
---|
| 309 | <indexterm zone="kde4-pre-install-config">
|
---|
| 310 | <primary sortas="e-etc-man_db.conf">/etc/man_db.conf</primary>
|
---|
| 311 | </indexterm>
|
---|
| 312 |
|
---|
| 313 | <tip>
|
---|
[00785d8] | 314 |
|
---|
| 315 | <para>Sometimes, the installation paths are coded into installed files.
|
---|
| 316 | This is the reason why <filename class="directory">/opt/kde4</filename>
|
---|
| 317 | is used as installation prefix instead of <filename
|
---|
| 318 | class="directory">/opt/kde-&kde4-version;</filename>. After installing
|
---|
| 319 | <application>KDE4</application>, you may rename the directory and create
|
---|
| 320 | a symlink:</para>
|
---|
[0e25c32] | 321 |
|
---|
| 322 | <screen role="root"><userinput>mv /opt/kde{4,-&kde4-version;} &&
|
---|
[00785d8] | 323 | ln -vsf kde-&kde4-version; /opt/kde4</userinput></screen>
|
---|
| 324 |
|
---|
| 325 | <para>Later on, you may want to install other versions of
|
---|
| 326 | <application>KDE4</application>. To do that, just remove the symlink and
|
---|
| 327 | use <filename class="directory">/opt/kde4</filename> as ithe prefix again
|
---|
| 328 | (<application>KDE4</application> must not be started). Which version of
|
---|
| 329 | <application>KDE4</application> you use depends only on where the symlink
|
---|
| 330 | points to. No other reconfiguration will be needed.</para>
|
---|
[0e25c32] | 331 |
|
---|
| 332 | </tip>
|
---|
| 333 |
|
---|
| 334 | </sect2>
|
---|
| 335 |
|
---|
| 336 | <sect2><title>The QT4DIR variable</title>
|
---|
[00785d8] | 337 |
|
---|
| 338 | <para>Some additional packages which are based on
|
---|
| 339 | <application>Qt4</application> will be installed. One of them is
|
---|
| 340 | <application>Phonon</application>, a direct replacement of the implementation
|
---|
| 341 | which comes with <application>Qt4</application>. It's recommended placing
|
---|
| 342 | such libraries in the same hierarchy where <application>Qt4</application>
|
---|
| 343 | itself resides. Later on, it is refered to as <envar>QT4DIR</envar>. If you have
|
---|
| 344 | placed <application>Qt4</application> in <filename
|
---|
| 345 | class='directory'>/usr</filename>, set <envar>QT4DIR</envar>:</para>
|
---|
[0e25c32] | 346 |
|
---|
| 347 | <screen><userinput>export QT4DIR=/usr</userinput></screen>
|
---|
| 348 |
|
---|
| 349 | <para>Alternativly, <application>Qt4</application> is often placed in the
|
---|
| 350 | <filename class='directory'>/opt</filename> hierarchy:</para>
|
---|
| 351 |
|
---|
| 352 | <screen><userinput>export QT4DIR=/opt/qt-&qt4-version;
|
---|
| 353 | export PATH=$QT4DIR/bin:$PATH</userinput></screen>
|
---|
| 354 |
|
---|
| 355 | </sect2>
|
---|
| 356 |
|
---|
| 357 | </sect1>
|
---|