5 - Installation instructions and notes for the Midnight Commander
6 - Where to get more information on the Midnight Commander
8 - Information on porting the program
9 - Obtaining the missing pieces of the Midnight Commander
12 Installation instructions for the Midnight Commander
13 ----------------------------------------------------
15 The `configure' shell script attempts to guess correct values for
16 various system-dependent variables used during compilation, and creates
17 the Makefile. It also creates a file `config.status' that you can run
18 in the future to recreate the current configuration.
20 (Nextstep users, make sure you read the "Compiling under Nextstep"
23 To compile this package:
25 1. Configure the package for your system.
27 Normally, you just `cd' to the directory containing the package's
28 source code and type `./configure'. If you're using `csh' on an old
29 version of System V, you might need to type `sh configure' instead to
30 prevent `csh' from trying to execute `configure' itself (under AIX,
31 you may need to use ksh instead of sh).
33 Running `configure' takes a while. While it is running, it
34 prints some messages that tell what it is doing. If you don't want to
35 see any messages, run `configure' with its standard output redirected
36 to `/dev/null'; for example, `./configure >/dev/null'.
38 To compile the package in a different directory from the one
39 containing the source code, you must use a version of `make' that
40 supports the `VPATH' variable, such as GNU `make'. `cd' to the
41 directory where you want the object files and executables to go and run
42 the `configure' script. `configure' automatically checks for the
43 source code in the directory that `configure' is in and in `..'. If
44 for some reason `configure' is not in the source code directory that
45 you are configuring, then it will report that it can't find the source
46 code. In that case, run `configure' with the option `--srcdir=DIR',
47 where DIR is the directory that contains the source code.
49 By default, `make install' will install the package's files in
50 `/usr/local/bin', `/usr/local/man', etc. You can specify an
51 installation prefix other than `/usr/local' by giving `configure' the
52 option `--prefix=PATH'. Alternately, you can do so by consistently
53 giving a value for the `prefix' variable when you run `make', e.g.,
55 make prefix=/usr/gnu install
57 You can specify separate installation prefixes for
58 architecture-specific files and architecture-independent files. If
59 you give `configure' the option `--exec-prefix=PATH' or set the `make'
60 variable `exec_prefix' to PATH, the package will use PATH as the
61 prefix for installing programs and libraries. Data files and
62 documentation will still use the regular prefix. Normally, all files
63 are installed using the same prefix.
65 The program detects if you have the gpm library installed. If you
66 installed the gpm mouse library in a non-standard place, you will need
67 to use the --with-gpm-mouse flag with the directory base where you
68 installed the gpm package.
70 `configure' also recognizes the following options:
73 Print a summary of the options to `configure', and exit.
77 Do not print messages saying which checks are being made.
80 Print the results of the checks.
83 Print the version of Autoconf used to generate the `configure'
87 Enables the built-in memory allocation debugger and forces
88 compilation with -Wall. This is an option intended to be used by
89 the program developers.
92 Configures the program to be compiled without the built-in file
93 editor. The built-in editor is compiled in by default.
95 `--with-ext2undel[=PATH]'
96 On systems that use the Extended 2 file system and have the
97 libext2fs.a library available, this compiles into the Midnight
98 Commander the support code for recovering deleted files (the
99 undel virtual file system).
100 Use =PATH if libext2fs.a is installed in a non-standard place.
101 The configure will append `lib' and `include' to find the ext2fs
102 libraries and include files respectively.
104 `--with-gpm-mouse[=PATH]'
105 Use this flag if your GPM mouse package cannot be detected by the
106 configure. Use =PATH if it is installed in a non-standard place.
107 The configure will append `lib' and `include' to find the libgpm.a
108 and gpm.h files respectively.
110 `--without-gpm-mouse'
111 Use this flag to disable GPM mouse support (e.g. if you want to
112 use mouse only on X terminals).
115 Compiles support into the ftp virtual file system to support the
119 Needed when compiling under AIX if you want the fast viewer.
121 `--with-subshell[=optional]', `--without-subshell'
122 The subshell support is by default turned on, you can disable
123 this by using the --without-subshell option. If you pass the
124 =optional parameter, then the subshell support is turned off by
125 default, to turn it on, you have to specify the `-U' flag when
129 Enables the network support with the Term package.
131 `--with-tm-x-support'
132 This option enables minimal X Window support in the text edition. It
133 enables MC to query the status of the modifiers CONTROL and SHIFT
134 when invoked in a terminal emulation under X11. That's necessary
135 to recognice key combinations like C-HOME or S-Cursor key.
138 This option disables the Virtual File System switch code in the
139 Midnight Commander and uses the standard file system calls for
140 file access. If you specify this option you will not get the
141 transparent tar File system manipulation as well nor the
142 networked Midnight Commander file system.
145 This option enables support for large files (2 gigabytes and more)
146 on the systems where file operation use 32-bit offsets by default,
147 but support for 64-bit file operations is available.
149 You may also tell configure which display manager you want to use with
150 the Midnight Commander. The configure script will use SLang as default,
151 but you can override this by using any of the following flags (please
152 note that slang is included as part of the distribution),
154 `--with-slang' (default)
155 This is used to configure the program to use the SLang screen
156 manager. This is included as part of the Midnight Commander,
157 you don't need it installed on your system. If SLang is installed
158 on your system it will be used if possible. You can force usage of
159 the included SLang with the `--with-included-slang' option.
160 Slang is the only library that will let you resize the Midnight
161 Commander window on an xterm.
163 This option will usually try to use the terminfo database if it
164 is available, otherwise it will use the termcap database. At
165 compile time, you may force the use the terminal database with
166 the `--with-termcap' and `--with-terminfo' options (both options
167 automaticly turn `--with-included-slang' on).
169 `--with-ncurses[=directory]'
170 Use this flag (either with or without the =directory part), if
171 you want to compile with ncurses instead of the default SLang.
173 Use the =directory part if your ncurses is not installed in any of the
174 places configure will check (/usr/include, /usr/include/ncurses,
175 /usr/local/include and /usr/local/include/ncurses).
176 The argument to this flag is the base directory where the ncurses
177 files are located. The configure will append lib and include to
178 find the libncurses.a and ncurses.h file respectively. For
179 example, if you have installed ncurses under /gnu/lib and
180 /gnu/include, you specify: --with-ncurses=/gnu
182 You will need the ncurses package only if your system does not
183 provide a compatible curses. If after compiling, the program
184 says that it can't resolve the has_colors function, then you need
185 the ncurses package or you may always go back to the included SLang
188 `--with-vcurses[=directory]'
189 Use this flag to force the Midnight Commander to use a SystemV
190 type ncurses, the optional directory specifies where should
191 the C compiler find the include files.
193 `--with-sunos-curses'
194 You use this flag on SunOS machines if you want to use SunOS 4.x
195 curses instead of ncurses. You don't need this flag if you don't
196 have ncurses installed: it's only needed to force the usage of
197 SunOS curses over ncurses.
199 `configure' also accepts and ignores some other options.
201 On systems that require unusual options for compilation or linking
202 that the package's `configure' script does not know about, you can give
203 `configure' initial values for variables by setting them in the
204 environment. In Bourne-compatible shells, you can do that on the
205 command line like this:
207 CC='gcc -traditional' LIBS=-lposix ./configure
209 On systems that have the `env' program, you can do it like this:
211 env CC='gcc -traditional' LIBS=-lposix ./configure
213 Here are the `make' variables that you might want to override with
214 environment variables when running `configure'.
216 For these variables, any value given in the environment overrides the
217 value that `configure' would choose:
220 C compiler program. The default is `cc'.
223 The default flags used to build the program.
226 Program to use to install files. The default is `install' if you
227 have it, `cp' otherwise.
229 For these variables, any value given in the environment is added to
230 the value that `configure' chooses:
233 Libraries to link with, in the form `-lfoo -lbar...'.
235 If you need to do unusual things to compile the package, we encourage
236 you to figure out how `configure' could check whether to do them, and
237 mail diffs or instructions to the address given in the README so we
238 can include them in the next release.
240 2. Type `make' to compile the package.
242 3. If the package comes with self-tests and you want to run them,
243 type `make check'. If you're not sure whether there are any, try it;
244 if `make' responds with something like
245 make: *** No way to make target `check'. Stop.
246 then the package does not come with self-tests.
248 4. Type `make install' to install programs, data files, and
250 If your system is Linux, then install installs the Linux console screen
253 5. You can remove the program binaries and object files from the
254 source directory by typing `make clean'. To also remove the
255 Makefile(s), the header file containing system-dependent definitions
256 (if the package uses one), and `config.status' (all the files that
257 `configure' created), type `make realclean'. If you want to clean the source
258 tree completely, so that it contains only those files that should be
259 packaged in the archive, issue `make distclean'. If you've run configure in
260 a different directory than the source tree, distclean won't remove your *.o
261 and linked programs in that directory.
263 6. The Midnight Commander allows you to be kept on the directory you
264 were when you quit the program, this is done with a shell function,
265 the man page has more information about this. If you want to let the
266 install program make the change to your /etc/profile or your
267 ~/.profile or ~/.bashrc, then type: `make mcfninstall'.
269 The file `configure.in' is used to create `configure' by a program
270 called `autoconf'. You only need it if you want to regenerate
271 `configure' using a newer version of `autoconf'.
273 Compiling under NeXTStep
274 ------------------------
276 These instructions were provided by Gregor Hoffleit
277 <flight@mathi.uni-heidelberg.DE>, he recommends configuring the
281 export CC="cc -posix"
282 configure --without-subshell --with-termcap
286 - Where to get more information on the Midnight Commander
287 ---------------------------------------------------------
289 Janne Kukonlehto set up a WWW page, here is the URL:
290 http://mc.blackdown.org/mc/
292 We also a set of mailing lists for the program:
294 mc: Discussion on the Midnight Commander file manager.
295 mc-devel: For discussion between the developers of the program.
297 to subscribe to the mailing lists, visit their respective pages:
299 http://mail.gnome.org/mailman/listinfo/mc/
300 http://mail.gnome.org/mailman/listinfo/mc-devel/
303 Notes about the Midnight Commander installation
304 ------------------------------------------------
306 The Midnight Commander has been run in the following configurations:
312 mips-dec-{open,net}bsd1.0
322 mc88110-aviion-dgux5.4
323 i386-*-{bsdi2,freebsd}
325 Since the Midnight Commander is configured via the GNU autoconf
326 program, it's not difficult to run it in other operating systems.
328 If you're using AIX, with the cc6000 compiler, you have to specify the
329 `--with-mmap' command line option.
331 You will need GNU C (or an ANSI C Compiler) and optionally a color
332 curses library (ncurses is a good choice). The Midnight Commander now
333 comes with the Slang screen manager, a fast screen manager, so ncurses
334 is not required anymore unless you want to use it.
336 Many Linux systems ship with ncurses version 1.9.9e, however, we recommend
337 ncurses 4.1 or above, since the former version does not support resizing
340 Since version 0.9 the Midnight Commander comes with mouse support on
341 xterms and in the Linux console. In order to take advantage of the
342 mouse support on the Linux console you will need the gpm mouse server
343 (see the section "Obtaining the Missing Pieces" in this file).
345 Once you get the Mouse Server, compile it and install it, then you
346 will have to specify the `--with-gpm-mouse' flag to the configure
347 program if you installed it in a non-standard directory. If you
348 installed the gpm package under /usr or /usr/local, you don't need to
349 specify this flag; configure will find gpm for you. The support for
350 mice on xterms is always compiled in.
352 We are working on further enhancements to the program, but we're not
353 sure which ones must go first. If you would like to point us in the
354 Right Direction we will be glad to hear from you (you could check the
355 file TODO included with this distribution for the current projects).
357 If you happen to find an undocumented feature that doesn't do what you
358 expected, please drop us a note telling us as much as you can about
359 the problem you're experiencing (to miguel@roxanne.nuclecu.unam.mx).
365 Random notes on porting to other architectures.
367 The Midnight Commander uses now by default the SLang library for
368 handling the display. You may want to download the latest version of
369 SLang or use a slightly modified SLang version 0.99.38 included with
370 the Midnight Commander. The later is very stable and has been used
371 for years without problems. You shouldn't expect any problems porting
372 SLang to your platform.
374 Another possibility is to download and install ncurses on your OS.
375 The Midnight Commander can use ncurses as well as the display engine.
376 However, you may encounter minor differences, for instance, you will
377 be unable to force the color mode by giving the "-c" switch to the
380 As the last resort, you may try to use the curses library supplied with
381 your OS. Beware that some systems, e.g. SystemV Release 4, include the
382 curses library with bugs critical to the Midnight Commander. You may
383 try to recompile all your source code with the symbol BUGGY_CURSES
386 make clean; make CFLAGS="-g -O -DBUGGY_CURSES"
389 Obtaining the missing pieces of the Midnight Commander
390 ------------------------------------------------------
392 The Midnight Commander will build without requiring you to get any
393 other software packages, however, you may be interested in enhancing
394 the Midnight Commander environment with some of these:
398 There are many incomplete terminal databases out there, however, a
399 complete terminfo is bundled with ncurses. (It is simple to generate
400 the termcap database using the infocmp utility in ncurses).
402 Some terminfo data are included with the mc distribution (lib/*.ti).
403 Particularly linux, xterm and vt100. Use e.g. ''tic linux.ti'' to
406 If you want to run mc on xterm/color_xterm/ansi_xterm (not rxvt), then
407 you might read lib/README.xterm for further information.
411 Midnight Commander requires glib. You can get glib from
413 ftp://ftp.gtk.org/pub/gtk/
415 o In the past the Midnight Commander required the NCurses library to
416 build, now it's optional. You can get Ncurses from
418 ftp://ftp.gnu.org/pub/gnu/ncurses/
419 ftp://dickey.his.com/ncurses/
421 o The GPM Mouse Server is available at:
423 ftp://ftp.systemy.it/pub/develop/
425 o The X Windows System libraries are only used if you are going to
426 build the X11 versions of the program. Please note that this code
427 is not finished, so it's only useful if you want to look at what we
428 are doing or want to help in one of the two X11 versions.
430 To get the mouse support working on the Linux console:
432 If you're using Linux version >= 1.1.34, then you will have to choose yes
433 to selection when you compile your kernel. If your Linux version is
434 older than this one, you may try to apply one of the patches included in
437 And the GNU C Compiler may be obtained from the following sites:
439 ASIA: ftp.cs.titech.ac.jp, utsun.s.u-tokyo.ac.jp:/ftpsync/prep,
440 cair.kaist.ac.kr:/pub/gnu
441 AUSTRALIA: archie.au:/gnu (archie.oz or archie.oz.au for ACSnet)
442 AFRICA: ftp.sun.ac.za:/pub/gnu
443 MIDDLE-EAST: ftp.technion.ac.il:/pub/unsupported/gnu
444 EUROPE: ftp.cvut.cz:/pub/gnu, irisa.irisa.fr:/pub/gnu,
445 ftp.univ-lyon1.fr:pub/gnu, ftp.mcc.ac.uk,
446 unix.hensa.ac.uk:/pub/uunet/systems/gnu,
447 src.doc.ic.ac.uk:/gnu, ftp.win.tue.nl, ugle.unit.no,
448 ftp.denet.dk, ftp.informatik.rwth-aachen.de:/pub/gnu,
449 ftp.informatik.tu-muenchen.de, ftp.eunet.ch,
450 nic.switch.ch:/mirror/gnu, nic.funet.fi:/pub/gnu, isy.liu.se,
451 ftp.stacken.kth.se, ftp.luth.se:/pub/unix/gnu, archive.eu.net
452 CANADA: ftp.cs.ubc.ca:/mirror2/gnu
453 USA: wuarchive.wustl.edu:/mirrors/gnu, labrea.stanford.edu,
454 ftp.kpc.com:/pub/mirror/gnu, ftp.cs.widener.edu, uxc.cso.uiuc.edu,
455 col.hp.com:/mirrors/gnu, ftp.cs.columbia.edu:/archives/gnu/prep,
456 gatekeeper.dec.com:/pub/GNU, ftp.uu.net:/systems/gnu
459 Unsupported options to configure:
460 ---------------------------------
462 If you don't want to use ncurses and are using an Ultrix box, you
463 can use this switch. Be aware that ncurses is a better option
464 than the curses included in Ultrix.