INSTALL.FAST 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Read the INSTALL file for the complete instructions.
  2. GNU Midnight Commander requires glib. Currently the 1.2.x and 2.0.x
  3. series are supported. You may already have glib installed, but if you
  4. don't, take it from ftp://ftp.gtk.org/pub/gtk/
  5. GNU Midnight Commander uses the S-Lang screen library by default. It
  6. tries the S-Lang library installed on the system. If it's not found,
  7. the included S-Lang sources are used. It is also possible to use
  8. ncurses as the screen library.
  9. 1. Configure the package for your system.
  10. Normally, you just `cd' to the package main directory and type
  11. `./configure'.
  12. The most often needed options to configure are following:
  13. `--prefix=PATH'
  14. By default, `make install' will install the package's files
  15. in `/usr/local/bin', `/usr/local/man', etc. or to `/usr/bin',
  16. `/usr/man', etc. depending on the location of an old mc binary.
  17. If you have none in your system, default will be `/usr/local'.
  18. You can specify an installation prefix other than default by
  19. giving `configure' the option `--prefix=PATH'.
  20. `--with-screen={slang|mcslang|ncurses}'
  21. Choose the library used to manage interaction with the terminal.
  22. `slang' means S-Lang library already installed on the system,
  23. `mcslang' means S-Lang library included with the sources of
  24. GNU Midnight Commander, `ncurses' means ncurses library already
  25. installed on the system. The installed S-Lang library is used
  26. by default if found, otherwise the included S-Lang library is
  27. used.
  28. You may also want to specify CFLAGS for the compiler, even if it finds
  29. itself some defaults by typing e.g.
  30. ./configure CFLAGS=-O3
  31. 2. Type `make' to compile the package.
  32. 3. Type `make install' to install programs, data files, and
  33. documentation. You may need to run this command as root.
  34. If you're on a GNU/Linux system, this will install the `cons.saver'
  35. utility, which allows the Midnight Commander to save and restore the
  36. screen contents. This utility can be installed setuid root, but it's
  37. only needed on systems where users cannot access /dev/vcsaN, where N is
  38. the virtual console number, on which the uses is logged on.
  39. If you're making a mc binary distribution for other people and want to
  40. package the whole installed tree, use `make install DESTDIR=PATH', which
  41. will make PATH the root for installation.
  42. 4. Type `mc' and enjoy!