0
|
1 XEmacs Installation Guide
|
|
2 Copyright (c) 1994, 1995, 1996 Board of Trustees, University of Illinois
|
357
|
3 Copyright (c) 1994-1999 Free Software Foundation, Inc.
|
0
|
4
|
70
|
5 Synched up with: FSF 19.30.
|
|
6
|
0
|
7 Permission is granted to anyone to make or distribute verbatim copies
|
|
8 of this document as received, in any medium, provided that the
|
|
9 copyright notice and permission notice are preserved,
|
|
10 and that the distributor grants the recipient permission
|
|
11 for further redistribution as permitted by this notice.
|
|
12
|
|
13 Permission is granted to distribute modified versions
|
|
14 of this document, or of portions of it,
|
|
15 under the above conditions, provided also that they
|
|
16 carry prominent notices stating who last changed them,
|
|
17 and that any new or changed statements about the activities
|
|
18 of the Free Software Foundation are approved by the Foundation.
|
|
19
|
|
20
|
253
|
21 BUILDING AND INSTALLATION (Unix and Cygwin, see the file nt/README
|
|
22 for instructions on building under Microsoft Windows):
|
0
|
23
|
|
24 1) Make sure your system has enough swapping space allocated to handle
|
149
|
25 a program whose pure code is 900k bytes and whose data area is at
|
357
|
26 least 400k and can reach 8Mb or more. Note that a typical XEmacs
|
|
27 build is much bigger. If the swapping space is
|
149
|
28 insufficient, you will get an error in the command `temacs -batch
|
|
29 -l loadup dump', found in `./src/Makefile.in.in', or possibly when
|
|
30 running the final dumped XEmacs.
|
272
|
31
|
357
|
32 Verify that your users have a high enough stack limit. On some
|
|
33 systems such as OpenBSD and OSF/Tru64 the default is 2MB which is
|
|
34 too low. See 'PROBLEMS' for details.
|
|
35
|
|
36 Building XEmacs requires about 100 Mb of disk space (including the
|
|
37 XEmacs sources). Once installed, XEmacs occupies between 20 and 100 Mb
|
|
38 in the file system where it is installed; this includes the executable files,
|
|
39 Lisp libraries, miscellaneous data files, and on-line documentation. The
|
|
40 exact amount depends greatly on the number of extra lisp packages that are
|
|
41 installed
|
149
|
42
|
255
|
43 XEmacs requires an ANSI C compiler, such as GCC. If you wish to build
|
|
44 the documentation yourself, you will need at least version 1.68 of
|
|
45 makeinfo (GNU texinfo-3.11).
|
149
|
46
|
|
47
|
|
48 2) Decide on what other software packages you would like to use with
|
|
49 XEmacs, but are not yet available on your system. On some systems,
|
|
50 Motif and CDE are optional additions. On Solaris, the SUNWaudmo
|
|
51 package enables native sound support. There are also a number of free
|
|
52 software packages that XEmacs can use. If these are not yet available
|
|
53 on your system, obtain, build and install those external packages
|
|
54 before building XEmacs. The packages XEmacs can use are:
|
0
|
55
|
272
|
56 Xaw3d, XPM, JPEG, compface, PNG, zlib, GNU DBM, Berkeley DB, socks,
|
|
57 term, NAS, Canna, Kinput2, SJ3, Wnn.
|
149
|
58
|
|
59 You can get (most of) them from the XEmacs ftp site at
|
243
|
60 ftp://ftp.xemacs.org/pub/xemacs/aux
|
0
|
61
|
149
|
62 If you want users on other systems to be able to use the XEmacs you
|
|
63 have built, try to build those packages so that the generated
|
|
64 libraries are statically linked.
|
|
65
|
|
66 Use the --site-includes and --site-libraries options when building
|
272
|
67 XEmacs to allow configure to find the external software packages.
|
201
|
68 If you link with dynamic (``.so'') external package libraries, which
|
|
69 is not recommended, you will also need to add the library directories
|
357
|
70 to the --site-runtime-libraries option. For your convenience these can
|
|
71 be set together by using the --with-site-prefix command. This will set
|
|
72 these variables as needed assuming your libraries are organised as a
|
|
73 typical /usr tree.
|
0
|
74
|
357
|
75 3) [N.B. Most of this section can be done during or after the
|
|
76 compilation of the core source code, but is present early to catch
|
|
77 your attention.]
|
|
78
|
|
79 Decide what Initial Lisp you need with XEmacs. XEmacs is
|
|
80 distributed separately from most of its runtime environment. This is
|
269
|
81 done to make it easier for administrators to tune an installation for
|
357
|
82 what the local users need. Note that while XEmacs will compile and
|
|
83 install without any packages present at least some additional lisp
|
|
84 packages are needed to bring XEmacs up to "normal" editor
|
|
85 functionality. Installation and upgrading of the packages can be done
|
|
86 almost automatically when from inside XEmacs when it has been compiled
|
|
87 and installed.
|
|
88
|
|
89 More information and suggestions for which packages to install see the
|
|
90 file README.packages.
|
|
91
|
|
92 IMPORTANT! The file README.packages contain information vital to have
|
|
93 a fully working XEmacs. This information was not included in this file
|
|
94 only because it is too large for this terse INSTALL. Please read
|
|
95 README.packages now!
|
|
96
|
|
97 By default, packages will be searched for in the path
|
243
|
98
|
318
|
99 ~/.xemacs::$prefix/lib/xemacs-${version}/mule-packages:$prefix/lib/xemacs/mule-packages:$prefix/lib/xemacs-${version}/xemacs-packages:$prefix/lib/xemacs/xemacs-packages
|
269
|
100
|
|
101 This may be changed by specifying a different value with the
|
|
102 --package-path configuration option.
|
243
|
103
|
314
|
104 IMPORTANT NOTE: In a future version of XEmacs, the user-specific
|
|
105 package hierarchy will move from ~/.xemacs to ~/.xemacs/packages.
|
|
106
|
357
|
107
|
|
108
|
243
|
109 4) In the top level directory of the XEmacs distribution, run the
|
149
|
110 program `configure' as follows:
|
0
|
111
|
149
|
112 ./configure [CONFIGURATION-NAME] [--OPTION[=VALUE]] ...
|
0
|
113
|
243
|
114 Almost always, you should let `configure' (actually the shell script
|
|
115 `config.guess') guess your host type, by omitting the
|
149
|
116 CONFIGURATION-NAME argument. If you like to experiment, specify a
|
|
117 configuration name in the form MACHINE-VENDOR-OPSYS, for example:
|
|
118
|
|
119 sparc-sun-solaris2.6
|
|
120
|
|
121 See config.guess and configure.in for valid values for MACHINE,
|
|
122 VENDOR, and OPSYS. Also check `./etc/MACHINES' for advice on building
|
|
123 on particular machines.
|
0
|
124
|
272
|
125 If you don't want X support, specify `--without-x'. If you omit this
|
149
|
126 option, `configure' will try to autodetect whether your system has X,
|
|
127 and arrange to use it if present.
|
0
|
128
|
|
129 The `--x-includes=DIR' and `--x-libraries=DIR' options tell the build
|
|
130 process where the compiler should look for the include files and
|
|
131 object libraries used with the X Window System. Normally, `configure'
|
|
132 is able to find them; these options are necessary if you have your X
|
|
133 Window System files installed in unusual places.
|
|
134
|
|
135 The `--site-includes=DIR' and `--site-libraries=DIR' options allow you
|
|
136 to specify additional places the compiler should look for include
|
|
137 files and object libraries. You may specify multiple DIR's by
|
149
|
138 enclosing the list in quotes. All the external packages you want to
|
272
|
139 use with XEmacs (e.g. xpm, wnn, ...) described later should have their
|
149
|
140 include and library directories defined using these options.
|
|
141
|
201
|
142 The `--site-runtime-libraries=DIR' option specifies directories to
|
|
143 search for shared libraries at run time. This may be necessary if you
|
|
144 link with dynamic libraries that are installed in non-standard
|
|
145 directories, or if you expect some of the libraries used to build
|
|
146 XEmacs to be in a different directory at run time than at build time.
|
|
147 Usually this will add a `-R' to each directory specified and use that
|
|
148 when linking XEmacs. If you use this option, you must specify ALL of
|
|
149 the directories containing shared libraries at run time, including
|
|
150 system directories.
|
|
151
|
|
152 Rationale: Some people think that directories in --site-libraries
|
|
153 should be automatically used to update --site-runtime-libraries.
|
|
154 Here's a real-life scenario that explains why this is not done: You
|
|
155 build binaries for your company using static libs in
|
|
156 /net/toy/hack/lib. XEmacs adds /net/toy/hack/lib to the runpath of
|
|
157 the executable you've built. Since there are only static libs there,
|
|
158 the system runtime loader will look in this dir, and ignore it,
|
|
159 causing only a .01 second delay in starting XEmacs. You leave the
|
|
160 company for a job at a small Silicon Valley startup. Time passes.
|
|
161 The next guy who inherits your machine objects to working on a machine
|
|
162 named `toy', and gets the sysadmin to rename the machine `godzilla'.
|
|
163 The SA forgets to remove the old entry for `toy' from the hosts file.
|
|
164 Now the system loader will still try to access /net/toy/, and the
|
|
165 automounter will hang trying to access /net/toy. XEmacs suddenly
|
|
166 takes 30 seconds longer to start up, no one can figure out why, and
|
|
167 everyone at your old company curses your name, thinking that you've
|
|
168 put a time bomb into XEmacs. And they're right!
|
0
|
169
|
|
170 The `--with-gcc' option specifies that the build process should
|
149
|
171 compile XEmacs using GCC. The `--compiler' option allows you to
|
|
172 specify some other compiler to be used to compile XEmacs. If neither
|
|
173 option is specified, the environment variable CC is used instead.
|
|
174 Otherwise the compiler will then default to 'cc'.
|
0
|
175
|
|
176 The `--cflags' option specifies the CFLAGS the build process should
|
149
|
177 use when compiling XEmacs. Otherwise the value of the environment
|
|
178 variable CFLAGS is consulted. If that is also undefined, CFLAGS
|
|
179 defaults to "-g -O" for gcc and "-g" for all other compilers.
|
0
|
180
|
|
181 The `--with-gnu-make' option specifies that Makefiles should be
|
|
182 written to take advantage of special features of GNU Make. GNU Make
|
|
183 works fine on Makefiles even without this option. This flag just
|
|
184 allows for simultaneous in-place and --srcdir building.
|
|
185
|
|
186 The `--dynamic' option specifies that configure should try to link
|
|
187 emacs dynamically rather than statically.
|
|
188
|
|
189 The `--const-is-losing' option is for use if you have trouble
|
272
|
190 compiling due to the `const' storage class in C. This is defined by
|
0
|
191 default. Most users should have no need to change this.
|
|
192
|
|
193 You can build XEmacs for several different machine types from a single
|
|
194 source directory. To do this, you must use a version of `make' that
|
|
195 supports the `VPATH' variable, such as GNU `make'. Make separate
|
|
196 build directories for the different configuration types, and in each
|
|
197 one, run the XEmacs `configure' script. `configure' looks for the
|
|
198 Emacs source code in the directory that `configure' is in.
|
|
199
|
|
200 The `--prefix=PREFIXDIR' option specifies where the installation process
|
|
201 should put XEmacs and its data files. This defaults to `/usr/local'.
|
|
202 - XEmacs (and the other utilities users run) go in PREFIXDIR/bin
|
|
203 (unless the `--exec-prefix' option says otherwise).
|
|
204 - The architecture-independent files go in PREFIXDIR/lib/xemacs-VERSION
|
276
|
205 (where VERSION is the version number of XEmacs, like `21.0').
|
0
|
206 - The architecture-dependent files go in
|
243
|
207 PREFIXDIR/lib/xemacs-VERSION/CONFIGURATION-NAME
|
|
208 (where CONFIGURATION-NAME is the host type, like mips-dec-ultrix4.2),
|
0
|
209 unless the `--exec-prefix' option says otherwise.
|
|
210
|
|
211 The `--exec-prefix=EXECDIR' option allows you to specify a separate
|
|
212 portion of the directory tree for installing architecture-specific
|
|
213 files, like executables and utility programs. If specified,
|
|
214 - XEmacs (and the other utilities users run) go in EXECDIR/bin, and
|
|
215 - The architecture-dependent files go in
|
243
|
216 EXECDIR/lib/xemacs-VERSION/CONFIGURATION-NAME.
|
0
|
217 EXECDIR/bin should be a directory that is normally in users' PATHs.
|
|
218
|
|
219 For example, the command
|
|
220
|
149
|
221 ./configure mips-dec-ultrix --with-x11=yes
|
0
|
222
|
|
223 configures XEmacs to build for a DECstation running Ultrix, with
|
|
224 support for the X11 window system.
|
|
225
|
|
226 The `--with-menubars=TYPE' option allows you to specify which X
|
|
227 toolkit you wish to use for the menubar. The valid options are
|
149
|
228 `lucid', `motif' and `no'. The default is `lucid' which is a
|
0
|
229 Motif-lookalike menubar. We highly recommend its usage over the real
|
|
230 Motif menubar. (In fact, the Motif menubar is currently broken.) If
|
149
|
231 `no' is specified then support for menubars will not be compiled in.
|
0
|
232
|
|
233 The `--with-scrollbars=TYPE' option allows you to specify which X
|
|
234 toolkit you wish to use for the scrollbars. The valid options are
|
149
|
235 `lucid', `motif', `athena', `athena3d', and `no'. The default is
|
|
236 `lucid' which is a Motif-lookalike scrollbar. If `no' is specified
|
104
|
237 then support for scrollbars will not be compiled in.
|
0
|
238
|
|
239 The `--with-dialogs=TYPE' option allows you to specify which X toolkit
|
219
|
240 you wish to use for the dialog boxes. The valid options are `athena',
|
243
|
241 `athena3d', `motif, and `no. The `lucid' option is accepted and will
|
|
242 result in the `athena' toolkit being used. If the Motif toolkit can be
|
|
243 found the default is `motif'. Otherwise, the default is `athena'. If
|
149
|
244 `no' is specified then support for dialog boxes will not be compiled
|
0
|
245 in.
|
|
246
|
|
247 The `--with-toolbars' option allows you to enable or disable toolbar
|
|
248 support. The default is `yes' as long as support for a windowing
|
|
249 system is included.
|
|
250
|
149
|
251 The `--with-xpm' option specifies that XEmacs should support X11
|
0
|
252 Pixmaps. `configure' will attempt to detect if you have the Xpm
|
|
253 libraries and define `--with-xpm' for you.
|
|
254
|
|
255 The `--with-xface' option specifies that XEmacs should support
|
|
256 X-Faces. `configure' will attempt to detect if you have the compface
|
|
257 library and define `--with-xface' for you.
|
|
258
|
|
259 The `--with-database' option specifies that XEmacs should be built
|
|
260 with additional database support. The valid options are `no' or a
|
|
261 comma-separated list of one or more of `dbm', `gnudbm' or `berkdb'.
|
|
262 `configure' will attempt to detect the necessary libraries and header
|
|
263 files and define `--with-database' for you.
|
|
264
|
|
265 The `--with-socks' option specifies that XEmacs should be built with
|
149
|
266 SOCKS support. This requires the libsocks library.
|
0
|
267
|
|
268 The `--with-tooltalk' option specifies that XEmacs should be built
|
|
269 with ToolTalk support for interconnecting with other applications.
|
243
|
270 ToolTalk is not yet supported on all architectures. If you use this
|
|
271 option, you should have the tooltalk package (see etc/PACKAGES)
|
|
272 installed prior to building XEmacs.
|
0
|
273
|
|
274 The `--with-sparcworks' option specifies that XEmacs should be built
|
149
|
275 with support for Sun Sparcworks 3.0.1 and up (including Sun WorkShop).
|
|
276 This functionality is only of use on SunOS 4.1.x and Solaris 2.x
|
272
|
277 systems. If you use this option, you should have the Sun package (see
|
243
|
278 etc/PACKAGES) installed prior to building XEmacs.
|
0
|
279
|
149
|
280 The `--with-cde' option allows you to enable or disable CDE drag and
|
0
|
281 drop support. `configure' will attempt to detect this option and
|
|
282 define `--with-cde' for you.
|
|
283
|
272
|
284 The `--with-offix' option allows you to enable or disable OffiX drag
|
|
285 and drop support. This requires no external library support, so if
|
|
286 X11 support is available, then this option defaults to `yes'. OffiX
|
274
|
287 support can be explicitly disabled via the `--with-offix=no' option.
|
2
|
288
|
0
|
289 The `--external-widget' option specifies that XEmacs should be built
|
149
|
290 with support for being used as a widget by other X11 applications.
|
|
291 This functionality should be considered beta.
|
0
|
292
|
272
|
293 The `--without-xmu' option can be used if your vendor doesn't ship
|
0
|
294 the Xmu library.
|
|
295
|
|
296 The `--puresize' option can be used to change the amount of purespace
|
104
|
297 allocated for the dumped XEmacs. As of XEmacs 20.1 usage of this
|
243
|
298 parameter is deprecated and will be ignored.
|
0
|
299
|
|
300 The `--with-sound=TYPE' option specifies that XEmacs should be built
|
|
301 with sound support. Native (`--with-sound=native') sound support is
|
|
302 currently available only on Sun SparcStations, SGI's, HP9000s, and
|
149
|
303 systems (such as Linux) with soundcard.h. Network Audio Support (NAS)
|
|
304 (`--with-sound=nas' or `--with-sound=both') is an extension to X that
|
|
305 you may or may not have for your system. For NAS, you will probably
|
|
306 need to provide the paths to the nas include and library directories
|
|
307 to configure. If `--with-sound' is not specified, `configure' will
|
|
308 attempt to determine if your configuration supports native sound and
|
0
|
309 define --with-sound for you. If your native sound library is not in a
|
149
|
310 standard location you can specify it with the `--native-sound-lib=LIB'
|
|
311 flag. For Linux, `/dev/audio' is required for SunAudio files and
|
|
312 `/dev/dsp' is required for raw data and WAVE format files.
|
0
|
313
|
|
314 The `--rel-alloc' option can be used to either enable or disable use
|
151
|
315 of the relocating allocator. Turning on --rel-alloc will allow XEmacs
|
|
316 to return unused memory to the operating system, thereby reducing its
|
|
317 memory footprint. However, it may make XEmacs runs more slowly,
|
363
|
318 especially if your system's `mmap' implementation is missing or
|
151
|
319 inefficient. Generally, it's best to go with the default
|
|
320 configuration for your system. You can tweak this based on how you
|
|
321 use XEmacs, and the memory and cpu resources available on your system.
|
0
|
322
|
357
|
323 The `--with-system-malloc' option can be use to either enable or
|
149
|
324 disable use of the system malloc. Generally, it's best to go with the
|
|
325 default configuration for your system. Note that on many systems
|
|
326 using the system malloc disables the use of the relocating allocator.
|
0
|
327
|
357
|
328 The `--with-debug-malloc' option can be used to link a special debugging
|
177
|
329 version of malloc. Debug Malloc is not included with XEmacs, is
|
|
330 intended for use only by the developers and may be obtained from
|
|
331 <URL:http://www.letters.com/dmalloc/>.
|
|
332
|
0
|
333 The `--debug' and `--error-checking' options are intended for use only
|
|
334 by the developers. `--debug' adds code to be compiled in for
|
|
335 performing various tests. `--error-checking' adds additional tests to
|
|
336 many of the commonly used macros.
|
|
337
|
|
338 The `--verbose' and `--extra-verbose' options are intended for use
|
|
339 only by the developers. `--verbose' causes the results of all
|
149
|
340 configure tests to be displayed. `--extra-verbose' displays
|
|
341 additional information, useful for debugging. Another help for
|
|
342 determining configure failures is the file `config.log', which
|
|
343 contains the results of the compile and link tests used by configure.
|
|
344
|
|
345 The `--with-mule' option enables (MUlti-Lingual Emacs) support, needed
|
363
|
346 to support non-Latin-1 (including Asian) languages. The Mule support
|
243
|
347 is not yet as stable or efficient as the `Latin1' support. Enabling
|
|
348 Mule support requires the mule-base package installed prior to
|
|
349 building XEmacs. The following options require Mule support:
|
149
|
350
|
|
351 The `--with-xim' option enables use of the X11 XIM mechanism to allow
|
|
352 an input method to input text into XEmacs. The input method is shared
|
|
353 among all the X applications sharing an X display and using the same
|
151
|
354 language. The XIM support comes in two flavors: `motif' and `xlib'.
|
|
355 The Motif support (the XmIm* functions) is preferred when available.
|
243
|
356 The xlib XIM support works reasonably well so long as the X11 libraries
|
|
357 are recent enough. It has been fairly well tested on Linux with glibc
|
|
358 2.0.5 and 2.0.6 and Kinput2 as an XIM server. In this configuration
|
|
359 X11 must be recompiled with X_LOCALE defined because glibc is lacking
|
|
360 localization for Japanese. The XIM support defaults to `no' except
|
|
361 when Motif is detected where it is stable with OSF libraries. The XIM
|
|
362 support in Lesstif (a Free Motif replacement) does not work as of
|
|
363 v0.82. If you enable this option, you will probably wish to install
|
|
364 the `locale' package which contains localized Splash screens and
|
|
365 Menubars.
|
|
366
|
272
|
367 The `--with-xfs' option enables use of a multilingual Menubar. At the
|
243
|
368 present time, only Japanese and French locales are supported. In
|
272
|
369 order to use a multilingual Menubar you must have the `locale' package
|
243
|
370 installed. The `locale' package does not have to be installed when
|
|
371 building XEmacs.
|
149
|
372
|
|
373 The `--with-canna' option enables the use of the Canna Japanese input
|
243
|
374 method. This is stable code and fairly well tested. In order to use
|
|
375 it, you will have to have the Canna server installed and running.
|
|
376 Canna versions 3.2pl2 and 3.5b2 are known to work. Version 3.2pl2 is
|
|
377 considered most stable than version 3.5b2. If Canna is already
|
|
378 installed, configure will autodetect it, so you never need to
|
|
379 explicitly use this option unless your Canna libraries are somewhere
|
|
380 strange. Canna run time support is currently bundled with the
|
272
|
381 `mule-base' package so there is nothing additional to install in order
|
243
|
382 to use it.
|
0
|
383
|
243
|
384 The `--with-wnn' and `--with-wnn6' options are for compiling with the Wnn
|
|
385 multi-language input method. `--with-wnn' is for compiling with Wnn-4.2,
|
|
386 the Free version of WNN. `--with-wnn6' is for compiling against WNN6,
|
|
387 the commercial version of WNN available from OMRON Corporation. This is
|
|
388 stable code and fairly well tested. In order to build with this
|
|
389 option, you will need to have the `egg-its' lisp package already
|
|
390 installed.
|
|
391
|
|
392 Please note that it is safe to build with as many of the options
|
|
393 `--with-xim', `--with-canna' and `--with-wnn' as your system
|
|
394 supports.
|
104
|
395
|
149
|
396 `configure' doesn't do any compilation or installation itself. It
|
|
397 just creates the files that influence those things: `./src/config.h',
|
|
398 and all the Makefile's in the build tree.
|
104
|
399
|
126
|
400 The `--with-pop', `--with-hesiod', and `--with-kerberos' options are used
|
|
401 in conjunction with movemail. As of XEmacs 20.1, movemail is identical
|
|
402 to the one used in Emacs.
|
|
403
|
0
|
404 When it is done, `configure' prints a description of what it did and
|
|
405 creates a shell script `config.status' which, when run, recreates the
|
|
406 same configuration. If `configure' exits with an error after
|
|
407 disturbing the status quo, it removes `config.status'.
|
|
408
|
357
|
409 5) Look at `./lisp/paths.el'; if some of those values are not right
|
0
|
410 for your system, set up the file `./lisp/site-init.el' with XEmacs
|
|
411 Lisp code to override them; it is not a good idea to edit paths.el
|
|
412 itself. YOU MUST USE THE LISP FUNCTION `setq' TO ASSIGN VALUES,
|
|
413 rather than `defvar', as used by `./lisp/paths.el'. For example,
|
|
414
|
|
415 (setq news-inews-program "/usr/bin/inews")
|
|
416
|
|
417 is how you would override the default value of the variable
|
|
418 news-inews-program (which is "/usr/local/inews").
|
|
419
|
|
420 Before you override a variable this way, *look at the value* that the
|
|
421 variable gets by default! Make sure you know what kind of value the
|
|
422 variable should have. If you don't pay attention to what you are
|
|
423 doing, you'll make a mistake.
|
|
424
|
333
|
425 Things may malfunction if the variable `directory-abbrev-alist' is not
|
|
426 set up to translate "temporary" automounter mount points into the
|
|
427 canonical form. XEmacs tries to detect how your automounter is
|
|
428 configured. If you have an unusual automounter configuration that
|
|
429 XEmacs cannot detect, you may need to change the value of
|
|
430 `directory-abbrev-alist'.
|
0
|
431
|
357
|
432 6) Put into `./lisp/site-init.el' or `./lisp/site-load.el' any Emacs
|
0
|
433 Lisp code you want XEmacs to load before it is dumped out. Use
|
|
434 site-load.el for additional libraries if you arrange for their
|
|
435 documentation strings to be in the lib-src/DOC file (see
|
|
436 src/Makefile.in.in if you wish to figure out how to do that). For all
|
|
437 else, use site-init.el.
|
|
438
|
|
439 If you set load-path to a different value in site-init.el or
|
|
440 site-load.el, XEmacs will use *precisely* that value when it starts up
|
|
441 again. If you do this, you are on your own!
|
|
442
|
|
443 Note that, on some systems, the code you place in site-init.el must
|
|
444 not use expand-file-name or any other function which may look
|
|
445 something up in the system's password and user information database.
|
|
446 See `./PROBLEMS' for more details on which systems this affects.
|
|
447
|
|
448 The `site-*.el' files are nonexistent in the distribution. You do not
|
|
449 need to create them if you have nothing to put in them.
|
|
450
|
357
|
451 7) Refer to the file `./etc/TERMS' for information on fields you may
|
0
|
452 wish to add to various termcap entries. The files `./etc/termcap.ucb'
|
|
453 and `./etc/termcap.dat' may already contain appropriately-modified
|
|
454 entries.
|
|
455
|
357
|
456 8) Run `make' in the top directory of the XEmacs distribution to finish
|
0
|
457 building XEmacs in the standard way. The final executable file is
|
|
458 named `src/emacs'. You can execute this file "in place" without
|
|
459 copying it, if you wish; then it automatically uses the sibling
|
|
460 directories ../lisp, ../lib-src, ../info.
|
|
461
|
|
462 Or you can "install" the executable and the other XEmacs into their
|
|
463 installed locations, with `make install'. By default, XEmacs's files
|
|
464 are installed in the following directories:
|
|
465
|
|
466 By default, XEmacs installs its files in the following directories:
|
|
467
|
|
468 `/usr/local/bin' holds the executable programs users normally run -
|
|
469 `xemacs', `etags', `ctags', `b2m', `emacsclient',
|
|
470 `gnuclient', `gnudoit', `gnuattach', and `rcs-checkin'.
|
|
471
|
|
472 `/usr/local/lib/xemacs-VERSION/lisp' holds the Emacs Lisp libraries;
|
|
473 `VERSION' stands for the number of the XEmacs version
|
|
474 you are installing, like `18.59' or `19.14'. Since
|
|
475 the lisp libraries change from one version of XEmacs to
|
|
476 another, including the version number in the path
|
|
477 allows you to have several versions of XEmacs installed
|
|
478 at the same time; this means that you don't have to
|
|
479 make XEmacs unavailable while installing a new version.
|
|
480
|
|
481 XEmacs searches for its lisp files in these
|
|
482 directories, and then in
|
|
483 `/usr/local/lib/xemacs/site-lisp/*'.
|
|
484
|
|
485 `/usr/local/lib/xemacs-VERSION/etc' holds the XEmacs tutorial, the
|
|
486 `yow' database, and other architecture-independent
|
|
487 files XEmacs might need while running. VERSION is as
|
|
488 specified for `.../lisp'.
|
|
489
|
|
490 `/usr/local/lib/xemacs/lock' contains files indicating who is
|
|
491 editing what, so XEmacs can detect editing clashes
|
|
492 between users.
|
|
493
|
|
494 `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME' contains executable
|
|
495 programs used by XEmacs that users are not expected to
|
|
496 run themselves, and the DOC file. `VERSION' is the
|
|
497 number of the XEmacs version you are installing, and
|
243
|
498 `CONFIGURATION-NAME' is the host type of your system.
|
|
499 Since these files are specific to the version of
|
|
500 XEmacs, operating system, and architecture in use,
|
|
501 including the configuration name in the path allows
|
|
502 you to have several versions of XEmacs for any mix of
|
|
503 machines and operating systems installed at the same
|
|
504 time; this is useful for sites at which different
|
|
505 kinds of machines share the file system XEmacs is
|
|
506 installed on.
|
0
|
507
|
|
508 `/usr/local/lib/xemacs-VERSION/info' holds the on-line documentation
|
|
509 for XEmacs, known as "info files".
|
|
510
|
|
511 `/usr/local/man/man1' holds the man pages for the programs installed
|
|
512 in `/usr/local/bin'.
|
|
513
|
|
514 If these directories are not what you want, you can specify where to
|
|
515 install XEmacs's libraries and data files or where XEmacs should search
|
|
516 for its lisp files by giving values for `make' variables as part of
|
|
517 the command. See the section below called `MAKE VARIABLES' for more
|
|
518 information on this.
|
|
519
|
357
|
520 9) If your system uses lock files to interlock access to mailer inbox
|
|
521 files, then you might need to make the movemail program setuid or
|
|
522 setgid to enable it to write the lock files. We believe this is safe.
|
0
|
523 The setuid/setgid bits need not be set on any other XEmacs-related
|
|
524 executables.
|
|
525
|
357
|
526 10) You are done with the hard part! You can remove executables and
|
243
|
527 object files from the build directory by typing `make clean'. To also
|
|
528 remove the files that `configure' created (so you can compile XEmacs
|
|
529 for a different configuration), type `make distclean'.
|
0
|
530
|
357
|
531 11) You should now go to the XEmacs web page at http://www.xemacs.org/
|
243
|
532 and decide what additional Lisp support you wish to have.
|
0
|
533
|
|
534 MAKE VARIABLES
|
|
535
|
|
536 You can change where the build process installs XEmacs and its data
|
|
537 files by specifying values for `make' variables as part of the `make'
|
|
538 command line. For example, if you type
|
|
539
|
|
540 make install bindir=/usr/local/gnubin
|
|
541
|
|
542 the `bindir=/usr/local/gnubin' argument indicates that the XEmacs
|
|
543 executable files should go in `/usr/local/gnubin', not
|
|
544 `/usr/local/bin'.
|
|
545
|
|
546 Here is a complete list of the variables you may want to set.
|
|
547
|
|
548 `bindir' indicates where to put executable programs that users can
|
|
549 run. This defaults to /usr/local/bin.
|
|
550
|
|
551 `datadir' indicates where to put the architecture-independent
|
|
552 read-only data files that XEmacs refers to while it runs; it
|
|
553 defaults to /usr/local/lib. We create the following
|
|
554 subdirectories under `datadir':
|
|
555 - `xemacs-VERSION/lisp', containing the XEmacs lisp libraries, and
|
|
556
|
|
557 - `xemacs-VERSION/etc', containing the XEmacs tutorial and the
|
|
558 `yow' database.
|
|
559 `VERSION' is the number of the XEmacs version you are installing,
|
|
560 like `18.59' or `19.14'. Since these files vary from one version
|
|
561 of XEmacs to another, including the version number in the path
|
|
562 allows you to have several versions of XEmacs installed at the
|
|
563 same time; this means that you don't have to make XEmacs
|
|
564 unavailable while installing a new version.
|
|
565
|
|
566 `statedir' indicates where to put architecture-independent data files
|
|
567 that XEmacs modifies while it runs; it defaults to
|
|
568 /usr/local/lib as well. We create the following
|
|
569 subdirectories under `statedir':
|
|
570 - `xemacs/lock', containing files indicating who is editing
|
|
571 what, so XEmacs can detect editing clashes between
|
|
572 users.
|
|
573
|
|
574 `libdir' indicates where to put architecture-specific data files that
|
|
575 XEmacs refers to as it runs; it too defaults to `/usr/local/lib'.
|
|
576 We create the following subdirectories under `libdir':
|
|
577 - `xemacs-VERSION/CONFIGURATION-NAME', containing executable
|
|
578 programs used by XEmacs that users are not expected to run
|
|
579 themselves and the DOC file.
|
|
580 `VERSION' is the number of the XEmacs version you are installing,
|
243
|
581 and `CONFIGURATION-NAME' is the host type of your system.
|
|
582 Since these files are specific to the version of XEmacs,
|
|
583 operating system, and architecture in use, including the
|
|
584 configuration name in the path allows you to have several
|
|
585 versions of XEmacs for any mix of machines and operating
|
|
586 systems installed at the same time; this is useful for sites
|
|
587 at which different kinds of machines share the file system
|
|
588 XEmacs is installed on.
|
0
|
589
|
|
590 `infodir' indicates where to put the info files distributed with
|
|
591 XEmacs; it defaults to `/usr/local/lib/xemacs-VERSION/info'.
|
|
592
|
|
593 `mandir' indicates where to put the man pages for XEmacs and its
|
|
594 utilities (like `etags'); it defaults to
|
|
595 `/usr/local/man/man1'.
|
|
596
|
|
597 `prefix' doesn't give a path for any specific part of XEmacs; instead,
|
|
598 its value is used to determine the defaults for all the
|
|
599 architecture-independent path variables - `datadir',
|
|
600 `statedir', `infodir', and `mandir'. Its default value is
|
|
601 `/usr/local'; the other variables add on `lib' or `man' to it
|
|
602 by default.
|
|
603
|
|
604 For example, suppose your site generally places GNU software
|
|
605 under `/usr/users/software/gnusoft' instead of `/usr/local'.
|
|
606 By including
|
|
607 `prefix=/usr/users/software/gnusoft'
|
|
608 in the arguments to `make', you can instruct the build process
|
|
609 to place all of the XEmacs data files in the appropriate
|
|
610 directories under that path.
|
|
611
|
|
612 `exec_prefix' serves the same purpose as `prefix', but instead
|
|
613 determines the default values for the architecture-dependent
|
|
614 path variables - `bindir' and `libdir'.
|
|
615
|
|
616 The above variables serve analogous purposes in the makefiles for all
|
|
617 GNU software; here are some variables specific to XEmacs.
|
|
618
|
|
619 `lispdir' indicates where XEmacs installs and expects its lisp
|
|
620 libraries. Its default value, based on `datadir' (see above),
|
|
621 is `/usr/local/lib/xemacs-VERSION/lisp' (where `VERSION' is as
|
|
622 described above).
|
|
623
|
|
624 `sitelispdir' indicates where XEmacs should search for lisp libraries
|
|
625 specific to your site. XEmacs checks them in order before
|
|
626 checking `lispdir'. Its default value, based on `datadir'
|
|
627 (see above), is `/usr/local/lib/xemacs/site-lisp'.
|
|
628
|
|
629 `etcdir' indicates where XEmacs should install and expect the rest of
|
|
630 its architecture-independent data, like the tutorial and yow
|
|
631 database. Its default value, based on `datadir'
|
|
632 (see above), is `/usr/local/lib/xemacs-VERSION/etc' (where
|
|
633 `VERSION' is as described above).
|
|
634
|
|
635 `lockdir' indicates the directory where XEmacs keeps track of its
|
|
636 locking information. Its default value, based on `statedir'
|
|
637 (see above), is `/usr/local/lib/xemacs/lock'.
|
|
638
|
|
639 `archlibdir' indicates where XEmacs installs and expects the
|
|
640 executable files and other architecture-dependent data it uses
|
|
641 while running. Its default value, based on `libdir' (see
|
|
642 above), is `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME'
|
|
643 (where VERSION and CONFIGURATION-NAME are as described above).
|
|
644
|
|
645 Remember that you must specify any variable values you need each time
|
|
646 you run `make' in the top directory. If you run `make' once to build
|
|
647 xemacs, test it, and then run `make' again to install the files, you
|
|
648 must provide the same variable settings each time. To make the
|
|
649 settings persist, you can edit them into the `Makefile' in the top
|
|
650 directory, but be aware that running the `configure' program erases
|
|
651 `Makefile' and rebuilds it from `Makefile.in'.
|
|
652
|
|
653 The top-level Makefile stores the variable settings it used in the
|
|
654 Makefiles for the subdirectories, so you don't have to specify them
|
|
655 when running make in the subdirectories.
|
|
656
|
|
657
|
|
658 CONFIGURATION BY HAND
|
|
659
|
|
660 Instead of running the `configure' program, you have to perform the
|
|
661 following steps.
|
|
662
|
|
663 1) Copy `./src/config.h.in' to `./src/config.h'.
|
|
664
|
|
665 2) Consult `./etc/MACHINES' to see what configuration name you should
|
|
666 use for your system. Look at the code of the `configure' script to
|
|
667 see which operating system and architecture description files from
|
|
668 `src/s' and `src/m' should be used for that configuration name. Edit
|
|
669 `src/config.h', and change the two `#include' directives to include
|
|
670 the appropriate system and architecture description files.
|
|
671
|
357
|
672 3) Edit `./src/config.h' to set the right options for your system. If
|
0
|
673 you need to override any of the definitions in the s/*.h and m/*.h
|
|
674 files for your system and machine, do so by editing config.h, not by
|
|
675 changing the s/*.h and m/*.h files. Occasionally you may need to
|
|
676 redefine parameters used in `./lib-src/movemail.c'.
|
|
677
|
357
|
678 4) If you're going to use the make utility to build XEmacs, you will
|
0
|
679 still need to run `configure' first, giving the appropriate values for
|
|
680 the variables in the sections entitled "Things `configure' Might Edit"
|
|
681 and "Where To Install Things." Note that you may only need to change
|
|
682 the variables `prefix' and `exec_prefix', since the rest of the
|
|
683 variables have reasonable defaults based on them. For each Makefile
|
|
684 variable of this type, there is a corresponding configure option; for
|
|
685 example, to change the location of the lock directory, you might use
|
|
686
|
|
687 ./configure --lockdir=/nfs/xemacslock
|
|
688
|
|
689 The `configure' script is built from `configure.in' by the `autoconf'
|
|
690 program. However, since XEmacs has configuration requirements that
|
185
|
691 autoconf can't meet, `configure.in' uses a marriage of custom-baked
|
0
|
692 configuration code and autoconf macros. New versions of autoconf
|
|
693 could very well break this arrangement, so it may be wise to avoid
|
|
694 rebuilding `configure' from `configure.in' when possible.
|
|
695
|
|
696
|
|
697 BUILDING XEMACS BY HAND
|
|
698
|
|
699 Once XEmacs is configured, running `make' in the top directory performs
|
|
700 the following steps.
|
|
701
|
|
702 1) Run `make src/paths.h' in the top directory. This produces
|
|
703 `./src/paths.h' from the template file `./src/paths.h.in', changing
|
|
704 the paths to the values specified in `./Makefile'.
|
|
705
|
|
706 2) Cd to `./lib-src' and run `make'. This creates executables named
|
|
707 `ctags' and `etags' and `wakeup' and `make-docfile' and `digest-doc'
|
|
708 and `test-distrib'. And others.
|
|
709
|
|
710 3) Cd to `./src' and Run `make'. This refers to files in the `./lisp'
|
|
711 and `./lib-src' subdirectories using names `../lisp' and
|
|
712 `../lib-src'.
|
|
713
|
|
714 This creates a file `./src/xemacs' which is the runnable XEmacs,
|
|
715 assigning it a new build version number by incrementing the build
|
|
716 version stored in `./lisp/version.el'.
|
|
717
|
|
718 It also creates a file in `./lib-src' whose name is `DOC' followed by
|
|
719 the current XEmacs version. This file contains documentation strings
|
|
720 for all the functions in XEmacs. Each time you run make to make a new
|
|
721 xemacs, a new DOC file with a new name is made. You must keep the DOC
|
|
722 file for an XEmacs version as long as you keep using that XEmacs
|
|
723 version.
|
|
724
|
|
725
|
|
726 INSTALLATION BY HAND
|
|
727
|
|
728 The steps below are done by running `make install' in the main
|
|
729 directory of the XEmacs distribution.
|
|
730
|
|
731 1) Copy `./lisp' and its subdirectories, `./etc', and the executables
|
|
732 in `./lib-src' to their final destinations, as selected in `./src/paths.h'.
|
|
733
|
|
734 Strictly speaking, not all of the executables in `./lib-src' need be copied.
|
|
735 - The programs `cvtmail', `emacsserver', `env', `fakemail', `hexl',
|
|
736 `movemail', `timer', `vcdiff', `wakeup', and `yow' are used by
|
|
737 XEmacs; they do need to be copied.
|
|
738 - The programs `etags', `ctags', `emacsclient', `b2m', `rcs2log',
|
|
739 `gnuclient', `gnudoit', and `gnuattach' are intended to be run
|
|
740 by users; they are handled below.
|
|
741 - The programs `make-docfile' and `test-distrib' were
|
|
742 used in building XEmacs, and are not needed any more.
|
|
743 - The programs `digest-doc' and `sorted-doc' convert a `DOC' file into
|
|
744 a file for users to read. There is no important reason to move them.
|
|
745
|
|
746 2) Copy the files in `./info' to the place specified in
|
|
747 `./lisp/site-init.el' or `./lisp/paths.el'. Note that if the
|
|
748 destination directory already contains a file named `dir', you
|
|
749 probably don't want to replace it with the `dir' file in the XEmacs
|
|
750 distribution. Instead, you should make sure that the existing `dir'
|
|
751 file contains an appropriate menu entry for the XEmacs info.
|
|
752
|
|
753 3) Create a directory for XEmacs to use for clash detection, named as
|
|
754 indicated by the PATH_LOCK macro in `./src/paths.h'.
|
|
755
|
|
756 4) Copy `./src/xemacs' to `/usr/local/bin', or to some other directory
|
|
757 in users' search paths. `./src/xemacs' has an alternate name
|
|
758 `./src/emacs-EMACSVERSION'; you may wish to make a symbolic link named
|
|
759 `/usr/local/bin/xemacs' pointing to that alternate name, as an easy way
|
|
760 of installing different versions.
|
|
761
|
|
762 You can delete `./src/temacs'.
|
|
763
|
|
764 5) Copy the programs `b2m', `emacsclient', `ctags', `etags', `rcs2log',
|
|
765 `gnuclient', `gnudoit', and `gnuattach' from `./lib-src' to
|
|
766 `/usr/local/bin'. These programs are intended for users to run.
|
|
767
|
|
768 6) Copy the man pages in `./etc' for xemacs, ctags, etags, and gnuserv
|
|
769 into the appropriate man directories.
|
|
770
|
|
771 7) The files in the `./src' subdirectory, except for `xemacs', are not
|
|
772 used by XEmacs once it is built. The source would be handy for
|
|
773 debugging.
|
|
774
|
|
775
|
|
776 PROBLEMS
|
|
777
|
357
|
778 The most likely problem is that you forgot to read and follow the
|
|
779 directions in README.packages. You can not have a working XEmacs
|
|
780 without downloading some additional packages.
|
|
781
|
0
|
782 See the file PROBLEMS in this directory for a list of various
|
|
783 problems sometimes encountered, and what to do about them.
|
70
|
784
|
|
785
|
179
|
786 If all else fails, please see etc/InstallGuide courtesy
|
|
787 of Jonathan Seth Hayward.
|