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