mc/INSTALL.FAST

68 lines
2.7 KiB
Plaintext
Raw Normal View History

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