INSTALL.FAST 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. -*-text-*-
  2. Read the INSTALL file for the complete instructions.
  3. The Midnight Commander by default will use the Slang screen
  4. manager, if something fails with the Slang screen manager, you may
  5. compile the program with your system curses (You will need a SysV
  6. compatible curses, in case you don't have such, read the README file
  7. for directions on getting the ncurses package, a freely available
  8. replacement for SysV curses).
  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 in
  15. `/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 giving
  19. `configure' the option `--prefix=PATH'.
  20. `--with-slang' (default)
  21. The easy way to get the Commander running: Slang is part of
  22. the distribution. This is the default screen manager, if you run
  23. configure without any --with-*curses parameter.
  24. `--with-ncurses[=PATH]'
  25. Use the flag without =PATH if you want to compile with ncurses
  26. (default is in version 3.0 the SLang screen manager included
  27. in the distribution).
  28. Use this flag with =PATH part, if you want to compile with ncurses
  29. and your ncurses is not installed in any of the
  30. places configure checks (/usr/include, /usr/include/ncurses,
  31. /usr/local/include and /usr/local/include/ncurses). The
  32. configure script will append `lib' and `include' to find the
  33. libncurses.a and ncurses.h files respectively.
  34. `--with-gpm-mouse[=PATH]'
  35. Use this flag if your GPM mouse package cannot be detected by the
  36. configure. Use =PATH if it is installed in a non-standard place.
  37. The configure will append `lib' and `include' to find the libgpm.a
  38. and gpm.h files respectively.
  39. `--with-sco'
  40. If you are compiling on a SCO machine.
  41. You may also want to specify CFLAGS for the compiler, even if it finds
  42. itself some defaults by typing e.g.
  43. `CFLAGS=-O2 ./configure'
  44. 2. Type `make' to compile the package.
  45. 3. Type `make install' (as root) to install programs, data files, and
  46. documentation. If you're on a Linux system, this will install the
  47. `cons.saver' utility, which allows the Midnight Commander to save and
  48. restore the screen contents. If you're making a mc binary distribution for
  49. other people and want to tar the whole binary later, you may want to specify
  50. `make install DESTDIR=PATH', which will make PATH the root for installation
  51. (but in the installed stuff will be still stored only --prefix).
  52. 3a. Type `make mcfninstall' to get an interactive program check if you
  53. want to define an useful alias for the Midnight Commander.
  54. 4. Type `mc' and enjoy!