source: kde/kf5/kf5-intro.xml@ 2238855

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2238855 was 2238855, checked in by Pierre Labastie <pieere@…>, 9 years ago

typo

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

  • Property mode set to 100644
File size: 7.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE chapter 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 <!ENTITY kf5-download-http "&kf5-download-http;">
8 <!ENTITY kf5-download-ftp "&kf5e-download-ftp;">
9 <!ENTITY kf5-md5sum "See Below">
10 <!ENTITY kf5-size "30 MB">
11 <!ENTITY kf5-buildsize "11.7 MB">
12 <!ENTITY kf5-time "0.4 SBU">
13]>
14
15<sect1 id="kf5-intro" xreflabel="Introduction to KF5">
16 <?dbhtml filename="kf5-intro.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>KDE Frameworks 5 Pre-installation Configuration</title>
24
25 <indexterm zone="kf5">
26 <primary sortas="a-kf5">KDE Frameworks</primary>
27 </indexterm>
28
29 <para>KF5 can be installed in /usr or /opt/kf5. The BLFS editors
30 recommend the latter in the BLFS environment.
31 </para>
32
33 <sect2>
34 <title>Installing in /usr</title>
35
36 <para>
37 One option is to install <application>KDE Frameworks 5</application>
38 into the <filename class="directory">/usr</filename> hierarchy.
39 This creates a simpler setup but makes it more difficult to try
40 multiple versions of <application>KDE Frameworks</application>.
41 </para>
42
43<screen><userinput>export KF5_PREFIX=/usr</userinput></screen>
44
45 <para>
46 It is a good idea to add the following variables to your
47 system or personal profile:
48 </para>
49
50<screen role="root"><userinput>cat &gt; /etc/profile.d/kf5.sh &lt;&lt; "EOF"
51<literal># Begin /etc/profile.d/kf5.sh
52
53. /etc/profile.d/qt5.sh
54
55export KF5_PREFIX=/usr
56
57pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH
58pathappend $QT5DIR/lib/qt5/plugins QT_PLUGIN_PATH
59
60pathappend /usr/lib/qt5/qml QML_IMPORT_PATH
61pathappend $QT5DIR/lib/qt5/qml QML_IMPORT_PATH
62
63pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
64pathappend $QT5DIR/lib/qt5/qml QML2_IMPORT_PATH
65
66# End /etc/profile.d/kf5.sh</literal>
67EOF</userinput></screen>
68 <warning>
69 <para>
70 If <application>KDE4</application> is installed in
71 <filename class="directory">/usr</filename>, some packages
72 from this chapter might overwrite some programs installed
73 by <application>KDE4</application> packages.
74 </para>
75 </warning>
76
77 </sect2>
78
79 <sect2>
80 <title>Installing in /opt</title>
81
82 <para>
83 A method of building multiple versions installs
84 <application>KDE Frameworks 5</application> in the
85 <filename class="directory">/opt</filename> hierarchy:
86 </para>
87
88<screen><userinput>export KF5_PREFIX=/opt/kf5</userinput></screen>
89
90 <para>
91 If you are not installing <application>KDE Frameworks 5</application>
92 in <filename class="directory">/usr</filename>, you will need to
93 make some additional configuration changes. Best practice is to add
94 those to your system or personal profile:
95 </para>
96
97<screen role="root"><userinput>cat &gt; /etc/profile.d/kf5.sh &lt;&lt; "EOF"
98<literal># Begin /etc/profile.d/kf5.sh
99
100. /etc/profile.d/qt5.sh
101
102export KF5_PREFIX=/opt/kf5
103
104pathappend $KF5_PREFIX/bin PATH
105pathappend $KF5_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
106
107pathappend /etc/xdg XDG_CONFIG_DIRS
108pathappend $KF5_PREFIX/etc/xdg XDG_CONFIG_DIRS
109pathappend /usr/share XDG_DATA_DIRS
110pathappend $KF5_PREFIX/share XDG_DATA_DIRS
111
112pathappend /usr/lib/qt5/plugins QT_PLUGIN_PATH
113pathappend $QT5DIR/plugins QT_PLUGIN_PATH
114pathappend $KF5_PREFIX/lib/plugins QT_PLUGIN_PATH
115
116pathappend /usr/lib/qt5/qml QML_IMPORT_PATH
117pathappend $QT5DIR/qml QML_IMPORT_PATH
118pathappend $KF5_PREFIX/lib/qml QML_IMPORT_PATH
119
120pathappend /usr/lib/qt5/qml QML2_IMPORT_PATH
121pathappend $QT5DIR/qml QML2_IMPORT_PATH
122pathappend $KF5_PREFIX/lib/qml QML2_IMPORT_PATH
123
124pathappend $KF5_PREFIX/lib/python&python2-majorver;/site-packages PYTHONPATH
125# End /etc/profile.d/kf5.sh</literal>
126EOF
127
128cat &gt; /etc/profile.d/qt5.sh &lt;&lt; "EOF"
129<literal># Begin /etc/profile.d/kf5.sh
130# Begin Qt5 changes for KF5
131
132pathappend $QT5DIR/plugins QT_PLUGIN_PATH
133pathappend $QT5DIR/qml QML_IMPORT_PATH
134pathappend $QT5DIR/qml QML2_IMPORT_PATH
135
136# End Qt5 changes for KF5</literal>
137EOF</userinput></screen>
138
139 <para>
140 Expand your <filename>/etc/ld.so.conf</filename> file:
141 </para>
142
143<screen role="root"><userinput>cat &gt;&gt; /etc/ld.so.conf &lt;&lt; "EOF"
144<literal># Begin KF5 addition
145
146/opt/kf5/lib
147
148# End KF5 addition</literal>
149EOF</userinput></screen>
150
151 <indexterm zone="kf5-intro">
152 <primary sortas="e-etc-ld.so.conf">/etc/ld.so.conf</primary>
153 </indexterm>
154
155 <para>
156 Several <application>KDE Frameworks 5</application> packages install
157 files into <application>D-Bus</application> directories. When installing
158 <application>KDE Frameworks 5</application> in a location other than
159 <filename class="directory">/usr</filename>,
160 <application>D-Bus</application> needs to be able to find these files.
161 The easiest way to achieve this is to create the following symlinks (as
162 the <systemitem class="username">root</systemitem> user):
163 </para>
164
165<screen role="root"><userinput>install -v -dm755 $KF5_PREFIX/{etc,share} &amp;&amp;
166ln -sfv /etc/dbus-1 $KF5_PREFIX/etc &amp;&amp;
167ln -sfv /usr/share/dbus-1 $KF5_PREFIX/share</userinput></screen>
168
169 <para>
170 Some packages may also install icons from the "hicolor" icon set. Since that
171 icon set is used by many packages, it is a good idea to create a
172 symlink to the one in <filename class="directory">/usr/share</filename>
173 to avoid having multiple installations of <xref linkend="hicolor-icon-theme"/>.
174 Run the following commands as the <systemitem class="username">root</systemitem>
175 user:
176 </para>
177
178<screen role="root"><userinput>install -v -dm755 $KF5_PREFIX/share/icons &amp;&amp;
179ln -sfv /usr/share/icons/hicolor $KF5_PREFIX/share/icons</userinput></screen>
180
181 <tip>
182 <para>
183 Sometimes, the installation paths are hardcoded into installed files.
184 This is the reason why <filename class="directory">/opt/kf5</filename>
185 is used as installation prefix instead of <filename
186 class="directory">/opt/kf5-&kf5-version;</filename>. After installing
187 <application>KDE Frameworks</application>, you may rename the directory
188 and create a symlink:
189 </para>
190
191<screen role="root"><userinput>mv /opt/kf5{,-&kf5-version;}
192ln -sfv kf5-&kf5-version; /opt/kf5</userinput></screen>
193
194 <para>
195 Later on, you may want to install other versions of
196 <application>KDE Frameworks 5</application>. To do that, just remove
197 the symlink and use <filename class="directory">/opt/kf5</filename>
198 as the prefix again. Which version of
199 <application>KDE Frameworks 5</application> you use depends only on
200 where the symlink points. No other reconfiguration will be needed.
201 </para>
202 </tip>
203
204 </sect2>
205
206</sect1>
207
208
Note: See TracBrowser for help on using the repository browser.