source: kde/core/pre-install-config.xml@ 2f1eeaf

10.0 10.1 11.0 11.1 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus nosym perl-modules qt5new trunk upgradedb xry111/intltool xry111/test-20220226
Last change on this file since 2f1eeaf was 2f1eeaf, checked in by Pierre Labastie <pieere@…>, 6 years ago

Missing role="root" in KDE pre-installation instructions. Fixed in both trunk
and systemd. Note that there are still slight differences between both files.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16864 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.3 KB
Line 
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="kde-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 <note><para>If you did not install <application>Xorg</application> in
19 <filename class="directory">/usr</filename>, some of the
20 <application>CMake</application> modules in <application>KDE</application>
21 look for packages at hard coded locations. To accommodate this issue,
22 create the following symbolic link (as the root user):</para>
23
24<screen role="root"><userinput>ln -sv $XORG_PREFIX /usr/X11R6</userinput></screen>
25 </note>
26
27 <sect2><title>Installing in /usr</title>
28
29 <para>One option is to put <application>KDE</application> into the
30 <filename class='directory'>/usr</filename> hierarchy. This creates a
31 simpler setup but makes it more difficult to try multiple versions of
32 <application>KDE</application>.</para>
33
34<screen><userinput>export &kde-dir-var;=/usr</userinput></screen>
35 </sect2>
36
37 <sect2><title>Installing in /opt</title>
38
39 <para>A method of building multiple versions installs
40 <application>KDE</application> in the <filename
41 class='directory'>/opt</filename> hierarchy:</para>
42
43<screen><userinput>export &kde-dir-var;=/opt/kde</userinput></screen>
44
45 <para>If you are not installing <application>KDE</application> in
46 <filename class="directory">/usr</filename>, you will need to make some
47 additional configuration changes. Best practice is to add those to your
48 system (as <systemitem class="username">root</systemitem>) or personal
49 profile:</para>
50
51<screen role="root"><userinput>cat &gt; /etc/profile.d/kde.sh &lt;&lt; 'EOF'
52<literal># Begin /etc/profile.d/kde.sh
53
54&kde-dir-var;=/opt/kde
55KDEDIR=&kde-dir;
56
57pathappend &kde-dir;/bin PATH
58pathappend &kde-dir;/lib/pkgconfig PKG_CONFIG_PATH
59pathappend &kde-dir;/share/pkgconfig PKG_CONFIG_PATH
60pathappend &kde-dir;/share XDG_DATA_DIRS
61pathappend &kde-dir;/share/man MANPATH
62pathappend /etc/kde/xdg XDG_CONFIG_DIRS
63
64export &kde-dir-var; KDEDIR
65
66# End /etc/profile.d/kde.sh</literal>
67EOF
68</userinput></screen>
69
70 <para>Add to your <filename>/etc/ld.so.conf</filename>:</para>
71
72<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; EOF
73<literal># Begin kde addition
74
75/opt/kde/lib
76
77# End kde addition</literal>
78EOF</userinput></screen>
79
80 <indexterm zone="kde-pre-install-config">
81 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
82 </indexterm>
83
84 <para>Several KDE packages install files into D-Bus and polkit directories.
85 When installing KDE in a location other than <filename class="directory">/usr</filename>,
86 D-Bus and polkit need to find these files. The easiest way to achieve this is to create
87 the following symlinks (as the <systemitem class="username">root</systemitem> user):</para>
88
89<screen role="root"><userinput>install -d &kde-dir;/share &amp;&amp;
90ln -svf /usr/share/dbus-1 &kde-dir;/share &amp;&amp;
91ln -svf /usr/share/polkit-1 &kde-dir;/share</userinput></screen>
92
93 <tip>
94 <para>Sometimes, the installation paths are coded into installed files.
95 This is the reason why <filename class="directory">/opt/kde</filename>
96 is used as installation prefix instead of <filename
97 class="directory">/opt/kde-&kde-version;</filename>. After installing
98 <application>KDE</application>, you may rename the directory and create
99 a symlink:</para>
100
101<screen role="root"><userinput>mv /opt/kde{,-&kde-version;} &amp;&amp;
102ln -svf kde-&kde-version; /opt/kde</userinput></screen>
103
104 <para>Later on, you may want to install other versions of
105 <application>KDE</application>. To do that, just remove the symlink and
106 use <filename class="directory">/opt/kde</filename> as the prefix again
107 (<application>KDE</application> must not be started). Which version of
108 <application>KDE</application> you use depends only on where the symlink
109 points to. No other reconfiguration will be needed.</para>
110
111 </tip>
112
113 </sect2>
114</sect1>
Note: See TracBrowser for help on using the repository browser.