INSTALL.FAST 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.
  10. 1. Configure the package for your system.
  11. Normally, you just `cd' to the package main directory and type
  12. `./configure'.
  13. The most often needed options to configure are following:
  14. `--prefix=PATH'
  15. By default, `make install' will install the package's files
  16. in `/usr/local/bin', `/usr/local/man', etc. or to `/usr/bin',
  17. `/usr/man', etc. depending on the location of an old mc binary.
  18. If you have none in your system, default will be `/usr/local'.
  19. You can specify an installation prefix other than default by
  20. giving `configure' the option `--prefix=PATH'.
  21. `--with-included-slang'
  22. Don't try the S-Lang library installed in the system - use the
  23. included S-Lang sources. The included library is rather old,
  24. by it works very well on many terminals.
  25. `--with-ncurses[=PATH]'
  26. Use the flag without =PATH if you want to compile with ncurses
  27. Use this flag with =PATH part if you want to compile with
  28. ncurses, and your ncurses is not installed in any of the places
  29. configure normally checks. The configure script will append
  30. `lib' and `include' to find the libncurses.a and ncurses.h files
  31. respectively.
  32. `--with-gpm-mouse[=PATH]'
  33. Use this flag if your GPM mouse package cannot be detected by the
  34. configure. Use =PATH if it is installed in a non-standard place.
  35. The configure will append `lib' and `include' to find the libgpm.a
  36. and gpm.h files respectively. Note that GPM is only available on
  37. GNU/Linux systems.
  38. You may also want to specify CFLAGS for the compiler, even if it finds
  39. itself some defaults by typing e.g.
  40. `CFLAGS=-O2 ./configure'
  41. 2. Type `make' to compile the package.
  42. 3. Type `make install' (as root) to install programs, data files, and
  43. documentation. If you're on a GNU/Linux system, this will install the
  44. `cons.saver' utility, which allows the Midnight Commander to save and
  45. restore the screen contents. If you're making a mc binary distribution
  46. for other people and want to tar the whole binary later, you may want
  47. to specify `make install DESTDIR=PATH', which will make PATH the root
  48. for installation.
  49. 4. Type `mc' and enjoy!