INSTALL.FAST 2.0 KB

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