INSTALL.FAST 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. -*-text-*-
  2. Read the INSTALL file for the complete instructions.
  3. GNU Midnight Commander requires glib. Currently only the 1.2.x
  4. series are supported. You may already have glib installed, but if you
  5. don't, take it from ftp://ftp.gtk.org/pub/gtk/v1.2/
  6. GNU Midnight Commander by default will use the S-Lang screen manager.
  7. It tries the S-Lang library installed on the system, but if it's not
  8. found, the included S-Lang sources are used. It is also possible to
  9. use ncurses as the screen manager. Note that syntax highlighting in
  10. the editor is currently unavailable with ncurses.
  11. 1. Configure the package for your system.
  12. Normally, you just `cd' to the package main directory and type
  13. `./configure'.
  14. The most often needed options to configure are following:
  15. `--prefix=PATH'
  16. By default, `make install' will install the package's files
  17. in `/usr/local/bin', `/usr/local/man', etc. or to `/usr/bin',
  18. `/usr/man', etc. depending on the location of an old mc binary.
  19. If you have none in your system, default will be `/usr/local'.
  20. You can specify an installation prefix other than default by
  21. giving `configure' the option `--prefix=PATH'.
  22. `--with-included-slang'
  23. Don't try the S-Lang library installed in the system - use the
  24. included S-Lang sources. The included library is rather old,
  25. by it works very well on many terminals.
  26. `--with-ncurses[=PATH]'
  27. Use the flag without =PATH if you want to compile with ncurses
  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 places configure
  30. checks (/usr/include, /usr/include/ncurses, /usr/local/include and
  31. /usr/local/include/ncurses). The configure script will append
  32. `lib' and `include' to find the libncurses.a and ncurses.h
  33. 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. Note that GPM is only available on
  39. GNU/Linux systems.
  40. You may also want to specify CFLAGS for the compiler, even if it finds
  41. itself some defaults by typing e.g.
  42. `CFLAGS=-O2 ./configure'
  43. 2. Type `make' to compile the package.
  44. 3. Type `make install' (as root) to install programs, data files, and
  45. documentation. If you're on a GNU/Linux system, this will install the
  46. `cons.saver' utility, which allows the Midnight Commander to save and
  47. restore the screen contents. If you're making a mc binary distribution
  48. for other people and want to tar the whole binary later, you may want
  49. to specify `make install DESTDIR=PATH', which will make PATH the root
  50. for installation.
  51. 3a. Type `make mcfninstall' to get an interactive program check if you
  52. want to define an useful alias for the Midnight Commander.
  53. 4. Type `mc' and enjoy!