File: ch01lev1sec5.html

package info (click to toggle)
ebook-dev-kde20 200010-3
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k, sarge
  • size: 11,428 kB
  • ctags: 2,726
  • sloc: sh: 96; makefile: 35
file content (480 lines) | stat: -rw-r--r-- 8,971 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>Obtaining and Installing KDE</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.54"/><LINK
REL="HOME"
TITLE="KDE 2.0 Development"
HREF="index.html"/><LINK
REL="UP"
TITLE="The K Desktop Environment Background"
HREF="ch01.html"/><LINK
REL="PREVIOUS"
TITLE="System Requirements"
HREF="ch01lev1sec4.html"/><LINK
REL="NEXT"
TITLE="Licenses and Legalities"
HREF="ch01lev1sec6.html"/><META
HTTP-EQUIV="Content-Style-Type"
CONTENT="text/css"/><LINK
REL="stylesheet"
HREF="kde-common.css"
TYPE="text/css"/><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=iso-8859-1"/><META
HTTP-EQUIV="Content-Language"
CONTENT="en"/><LINK
REL="stylesheet"
HREF="kde-localised.css"
TYPE="text/css"
TITLE="KDE-English"/><LINK
REL="stylesheet"
HREF="kde-default.css"
TYPE="text/css"
TITLE="KDE-Default"/></HEAD
><BODY
CLASS="section"
LINK="#336699"
VLINK="#336699"
ALINK="#336699"
BGCOLOR="#FFFFFF"
><DIV
ALIGN="RIGHT"
CLASS="NAVBAR"
><P
><A
HREF="ch01lev1sec4.html"
>Prev</A
> <A
HREF="ch01lev1sec6.html"
>Next</A
> <A
HREF="index.html"
>Table of Contents</A
></P
></DIV
><DIV
CLASS="section"
><TABLE
WIDTH="100%"
CELLPADDING="0"
CELLSPACING="0"
BORDER="0"
ALIGN="CENTER"
><TR
><TD
WIDTH="90%"
><H1
CLASS="section"
><A
NAME="ch01lev1sec5"
>1.5. Obtaining and Installing KDE</A
></H1
><P
>You can always find the latest KDE source code and binaries at <A
HREF="ftp://ftp.kde.org"
TARGET="_top"
>ftp://ftp.kde.org</A
> or one of the more than 100 mirrors (see <A
HREF="http://www.kde.org/mirrors.html"
TARGET="_top"
>http://www.kde.org/mirrors.html</A
> for a list of mirrors; you are encouraged to use a mirror site located near you.) Additionally, the support Web site for this book, <A
HREF="http://www.samspublishing.com"
TARGET="_top"
>http://www.samspublishing.com</A
>, contains links to source code and binaries.</P
><P
>To install KDE 2.0 for development, you will need, at minimum, the following packages:</P
><UL
COMPACT="COMPACT"
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>qt-2.1.0</TT
>&#8212;The Qt toolkit library</P
></LI
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdesupport</TT
>&#8212;Libraries not developed by the KDE project, but needed to run KDE applications</P
></LI
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdelibs</TT
>&#8212;The KDE libraries</P
></LI
></UL
><P
>Be sure to install these packages first and in the order given. The other packages are optional.</P
><P
>For a working desktop, you will also need</P
><UL
COMPACT="COMPACT"
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdebase</TT
>&#8212;The window manager (KWin), file manager (Konqueror), panel (Kicker), and other programs needed to create a working desktop</P
></LI
></UL
><P
>More KDE applications can be found in</P
><UL
COMPACT="COMPACT"
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdeutils</TT
>&#8212;KDE utility programs such as <TT
CLASS="literal"
>kedit</TT
>&#8212;a text editor, and <TT
CLASS="literal"
>kcalc</TT
>&#8212;a calculator</P
></LI
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdegraphics</TT
>&#8212;Utility programs for viewing image, Postscript, and PDF file and for simple manipulating of bitmapped graphics</P
></LI
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdenetwork</TT
>&#8212;KDE networking utilities, such as <TT
CLASS="literal"
>kppp</TT
>, an Internet dial-up tool</P
></LI
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdegames</TT
>&#8212;Some games for KDE, such as solitaire and mah-jongg</P
></LI
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdemultimedia</TT
>&#8212;Players for audio and video files</P
></LI
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdeadmin</TT
>&#8212;KDE administration tools, such as a user information editor (<TT
CLASS="literal"
>kuser</TT
>) and tools for installing and removing Red Hat and Debian packages (.rpm and .deb)</P
></LI
><LI
STYLE="list-style-type: none"
><P
><TT
CLASS="literal"
>kdei18n</TT
>&#8212;Internationalization information for non-English installations</P
></LI
></UL
><DIV
CLASS="section"
><TABLE
WIDTH="100%"
CELLPADDING="0"
CELLSPACING="0"
BORDER="0"
ALIGN="CENTER"
><TR
><TD
WIDTH="90%"
><H2
CLASS="section"
><A
NAME="ch01lev2sec1"
>1.5.1. Installing Binary Packages</A
></H2
><P
>On systems that use the Red Hat package manager, you should install each package using the command</P
><DIV
CLASS="informalexample"
><HR/><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>   1&nbsp;
   2&nbsp;rpm -Uvh <I
CLASS="emphasis"
>packagename</I
>.rpm</PRE
></TD
></TR
></TABLE
><HR/></DIV
><P
>Some RPM-based distributions are Red Hat, SuSE, and Caldera.</P
><P
>Users of the Debian distribution (or a Debian-based distribution, such as Corel Linux) can install packages with</P
><DIV
CLASS="informalexample"
><HR/><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>   1&nbsp;
   2&nbsp;dkpg -install <I
CLASS="emphasis"
>packagename</I
>.deb</PRE
></TD
></TR
></TABLE
><HR/></DIV
><P
>Some binary TAR archive binary packages are also available. They should be installed according to the accompanying documentation.</P
></TD
><TD
WIDTH="10%"
VALIGN="BOTTOM"
ALIGN="CENTER"
><ANNMARK
NAME="ch01lev2sec1"/></TD
></TR
><ANNOTATION
NAME="ch01lev2sec1"
TITLE="Installing Binary Packages"/></TABLE
></DIV
><DIV
CLASS="section"
><TABLE
WIDTH="100%"
CELLPADDING="0"
CELLSPACING="0"
BORDER="0"
ALIGN="CENTER"
><TR
><TD
WIDTH="90%"
><H2
CLASS="section"
><A
NAME="ch01lev2sec2"
>1.5.2. Installing Source Packages</A
></H2
><P
>You may also compile Qt/KDE packages from their source code and install them on your system. All the packages work the following way: first, you need to unpack the package with</P
><DIV
CLASS="informalexample"
><HR/><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>   1&nbsp;
   2&nbsp;gzip -d packagename.tar.gz
   3&nbsp;tar -xvf packagename.tar.gz</PRE
></TD
></TR
></TABLE
><HR/></DIV
><P
>This creates a new subdirectory in your current directory called <I
CLASS="emphasis"
>packagename</I
>.</P
><P
>Next, to compile the source code for installation in the default locations, type</P
><DIV
CLASS="informalexample"
><HR/><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>   1&nbsp;
   2&nbsp;cd packagename
   3&nbsp;./configure
   4&nbsp;make</PRE
></TD
></TR
></TABLE
><HR/></DIV
><P
>The default locations generally require <TT
CLASS="literal"
>root</TT
> (superuser) access to the machine on which the code is being installed. You may choose to install in an alternative location by passing the option <TT
CLASS="literal"
>&#8212;prefix=</TT
><I
CLASS="emphasis"
><TT
CLASS="literal"
>newlocation</TT
></I
> to the <TT
CLASS="literal"
>configure</TT
> script. For example, I install my Qt and KDE packages in <TT
CLASS="literal"
>$HOME/KDE/HEAD</TT
>, so I use</P
><DIV
CLASS="informalexample"
><HR/><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>   1&nbsp;
   2&nbsp;cd packagename
   3&nbsp;./configure &#8212;prefix=$HOME/KDE/HEAD/qt
   4&nbsp;make</PRE
></TD
></TR
></TABLE
><HR/></DIV
><P
>when building the Qt library, and</P
><DIV
CLASS="informalexample"
><HR/><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>   1&nbsp;
   2&nbsp;cd packagename
   3&nbsp;./configure &#8212;prefix=$HOME/KDE/HEAD/kde &#8212;with-qt-dir=$HOME/KDE/HEAD/qt
   4&nbsp;make</PRE
></TD
></TR
></TABLE
><HR/></DIV
><P
>when building the KDE library.</P
><P
>To install the compiled code, type</P
><DIV
CLASS="informalexample"
><HR/><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="programlisting"
>   1&nbsp;
   2&nbsp;<I
CLASS="emphasis"
>make install</I
></PRE
></TD
></TR
></TABLE
><HR/></DIV
><P
>You will need to have write permission for the directories in which you have chosen to install Qt/KDE when entering this command. For example, you will (typically) need to log in as <TT
CLASS="literal"
>root</TT
> before typing <I
CLASS="emphasis"
><TT
CLASS="literal"
>make install</TT
></I
> to install in the default locations.</P
></TD
><TD
WIDTH="10%"
VALIGN="BOTTOM"
ALIGN="CENTER"
><ANNMARK
NAME="ch01lev2sec2"/></TD
></TR
><ANNOTATION
NAME="ch01lev2sec2"
TITLE="Installing Source Packages"/></TABLE
></DIV
></TD
><TD
WIDTH="10%"
VALIGN="BOTTOM"
ALIGN="CENTER"
><ANNMARK
NAME="ch01lev1sec5"/></TD
></TR
><ANNOTATION
NAME="ch01lev1sec5"
TITLE="Obtaining and Installing KDE"/></TABLE
></DIV
><DIV
ALIGN="RIGHT"
CLASS="NAVBAR"
><P
><A
HREF="ch01lev1sec4.html"
>Prev</A
> <A
HREF="ch01lev1sec6.html"
>Next</A
> <A
HREF="index.html"
>Table of Contents</A
></P
></DIV
><HR
WIDTH="100%"
SIZE="2"
ALIGN="CENTER"
NOSHADE="NOSHADE"/></BODY
></HTML
>