1 Read the INSTALL file for the complete instructions.
3 GNU Midnight Commander requires glib. Currently only the 1.2.x series
4 are fully supported. You may already have glib installed, but if you
5 don't, take it from ftp://ftp.gtk.org/pub/gtk/v1.2/
7 GNU Midnight Commander uses the S-Lang screen library by default. It
8 tries the S-Lang library installed on the system. If it's not found,
9 the included S-Lang sources are used. It is also possible to use
10 ncurses as the screen library.
12 1. Configure the package for your system.
14 Normally, you just `cd' to the package main directory and type
17 The most often needed options to configure are following:
20 By default, `make install' will install the package's files
21 in `/usr/local/bin', `/usr/local/man', etc. or to `/usr/bin',
22 `/usr/man', etc. depending on the location of an old mc binary.
23 If you have none in your system, default will be `/usr/local'.
24 You can specify an installation prefix other than default by
25 giving `configure' the option `--prefix=PATH'.
27 `--with-included-slang'
28 Use the included S-Lang sources rather than any installed
29 S-Lang library. The included library is rather old, but it
30 works fine on most terminals.
32 `--with-ncurses[=PATH]'
33 Use the flag without =PATH if you want to compile with ncurses
34 Use this flag with =PATH part if you want to compile with
35 ncurses, and your ncurses is not installed in any of the places
36 configure normally checks. The configure script will append
37 `lib' and `include' to find the libncurses.a and ncurses.h files
40 `--with-gpm-mouse[=PATH]'
41 Use this flag if your GPM mouse package cannot be detected by the
42 configure. Use =PATH if it is installed in a non-standard place.
43 The configure will append `lib' and `include' to find the libgpm.a
44 and gpm.h files respectively. Note that GPM is only available on
47 You may also want to specify CFLAGS for the compiler, even if it finds
48 itself some defaults by typing e.g.
50 ./configure CFLAGS=-O3
52 2. Type `make' to compile the package.
54 3. Type `make install' to install programs, data files, and
55 documentation. You may need to run this command as root.
57 If you're on a GNU/Linux system, this will install the `cons.saver'
58 utility, which allows the Midnight Commander to save and restore the
59 screen contents. This utility can be installed setuid root, but it's
60 only needed on systems where users cannot access /dev/vcsaN, where N is
61 the virtual console number, on which the uses is logged on.
63 If you're making a mc binary distribution for other people and want to
64 package the whole installed tree, use `make install DESTDIR=PATH', which
65 will make PATH the root for installation.
67 4. Type `mc' and enjoy!