INSTALL 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. Build requirements for GNU Midnight Commander
  2. ---------------------------------------------
  3. - glibc
  4. - gcc
  5. - make
  6. - autoconf >= 2.64
  7. - automake >= 1.14
  8. - libtool
  9. - glib2 >= 2.32
  10. - slang2 or ncurses
  11. - gettext >= 0.18.2
  12. - libssh2 >= 1.2.8 is required only for sftp vfs
  13. - libaspell to support spell checking in the internal editor
  14. - ext2fs >= 1.42.4 to support ext{2,3,4}fs extended attributes
  15. Installation instructions for GNU Midnight Commander
  16. ----------------------------------------------------
  17. Midnight Commander is written in a portable manner and uses GNU Autoconf
  18. for configuration, so it is expected to compile without changes on many
  19. other operating systems.
  20. If you are installing from an official tarball, it already contains
  21. pre-bootstrapped autotools build system (specifically the `configure'
  22. script). In the case that you are installing from a version control
  23. checkout, you need to bootstrap the build system yourself first using
  24. the `autogen.sh' script. Note that to do this you would need to install
  25. the autotools suite first and not only direct mc build dependencies.
  26. The `configure' shell script attempts to guess correct values for
  27. various system-dependent variables used during compilation, and creates
  28. the makefiles. It also creates a file `config.status' that you can run
  29. in the future to recreate the current configuration.
  30. To compile this package:
  31. 1. Configure the package for your system.
  32. Normally, you just `cd' to the directory containing the package's source
  33. code and type `./configure'.
  34. To compile the package in a different directory than the one containing
  35. the source code, you must use a version of `make' supporting the `VPATH'
  36. variable, such as GNU `make'. Change to the directory where you want
  37. the object files and executables to go and run the `configure' script
  38. with the full path. If for some reason `configure' cannot find the
  39. source code directory, run `configure' with the option `--srcdir=DIR',
  40. where DIR is the directory that contains the source code.
  41. By default, `make install' will install the package's files in
  42. `/usr/local/bin', `/usr/local/man', etc. You can specify an
  43. installation prefix other than `/usr/local' by giving `configure' the
  44. option `--prefix=PATH'.
  45. If compiled on GNU/Linux, Midnight Commander detects if you have the gpm
  46. library installed. If you installed the gpm mouse library in a
  47. non-standard place, you will need to use the --with-gpm-mouse flag with
  48. the directory base where you installed the gpm package.
  49. `configure' recognizes the following options (the list may be
  50. incomplete, use `configure --help' to get the full list):
  51. `--help'
  52. Print a summary of the options to `configure' and exit.
  53. `--quiet'
  54. `--silent'
  55. Do not print messages saying which checks are being made.
  56. `--version'
  57. Print the version of Autoconf used to generate the `configure'
  58. script, and exit.
  59. `--without-edit'
  60. Configure GNU Midnight Commander to be compiled without the
  61. built-in file editor. The built-in editor is compiled in by
  62. default.
  63. `--enable-aspell[=prefix]'
  64. This option adds spell check support to the internal editor using
  65. libaspell and optionally sets path to libaspell installation prefix
  66. [default=/usr]. Disabled by default.
  67. `--without-gpm-mouse'
  68. Use this flag to disable gpm mouse support (e.g. if you want to
  69. use mouse only on X terminals).
  70. `--with-glib-static'
  71. Force linking against glib statically. This option is intended for
  72. building binaries for distribution purposes and may not work on
  73. some operating systems.
  74. `--with-subshell[=optional]', `--without-subshell'
  75. The subshell support is by default turned on, you can disable
  76. this by using the --without-subshell option. If you pass the
  77. =optional parameter, then the subshell support is turned off by
  78. default. To turn it on, specify the `-U' option to the program.
  79. `--without-x'
  80. By default, the Midnight Commander tries to connect to the X Window
  81. System events to query the status of the keyboard modifiers, such
  82. as Control, Shift and Alt, when invoked in a terminal emulator
  83. under X11. This is necessary (but not always sufficient) to
  84. recognize some optional but handy key combinations like Ctrl-Home
  85. and Shift-Cursor keys. Use `--without-x' if the dependency on
  86. X11 libraries is not desired.
  87. `--disable-largefile'
  88. This option disables support for large files (2 gigabytes and more)
  89. on the systems where file operations use 32-bit offsets by default,
  90. but support for 64-bit offsets is available. May be useful for
  91. slow processors and embedded systems.
  92. `--enable-charset'
  93. This option adds support for selecting character set of the text in
  94. the internal viewer and editor and converting it on the fly. The
  95. implementation of this option is currently incomplete.
  96. `--disable-background'
  97. This option disables support for background operations. Background
  98. operations allow to perform some tasks such as copying files in a
  99. separate background process. Any messages from the background
  100. process are forwarded to the foreground process. More advanced
  101. dialogs cannot be forwarded yet, so the background process uses the
  102. default. Background code is known to be less stable than the rest
  103. of the code, so you may want to disable it at the compile time.
  104. `--with-homedir'
  105. This option allow users to place user config directories in any
  106. place. By default value is 'XDG', this mean, mc will respect XDG
  107. standards. If other value is specified, this will used as directory
  108. name (relative to $HOME if path is relative, or as is if path is
  109. absolute).
  110. VFS options:
  111. - - - - - -
  112. `--disable-vfs'
  113. This option disables the Virtual File System switch code in the
  114. Midnight Commander and uses the standard file system calls for
  115. file access. If you specify this option, you won't get the
  116. transparent access to archives and remote directories.
  117. `--enable-vfs-cpio'
  118. (on by default)
  119. Support for cpio filesystem
  120. `--enable-vfs-tar'
  121. (on by default)
  122. Support for tar filesystem
  123. `--enable-vfs-ftp'
  124. (on by default)
  125. Support for FTP vfs
  126. `--enable-vfs-shell'
  127. (on by default)
  128. Support for SHELL vfs
  129. `--enable-vfs-sftp'
  130. (auto)
  131. Support for SFTP vfs
  132. `--enable-vfs-extfs'
  133. (on by default)
  134. Support for extfs
  135. `--enable-vfs-sfs`
  136. (on by default)
  137. Support for sfs
  138. `--enable-vfs-undelfs'
  139. (off by default)
  140. Support for ext2 undelete filesystem.
  141. On systems that use the ext2 or ext3 file system and have the
  142. libext2fs library available, this option adds support for
  143. recovering deleted files (the undel virtual file system).
  144. Screen library:
  145. - - - - - - - -
  146. You may also tell configure which screen library you want to use with
  147. the Midnight Commander. The configure script will use S-Lang as
  148. default, and prefers an already installed S-Lang library over the
  149. included one, but you can override this by using the following flag
  150. (please note that since S-Lang is default, it is tested better than
  151. ncurses):
  152. `--with-screen={slang|ncurses}'
  153. Choose the library used to manage interaction with the terminal.
  154. `slang' means S-Lang library already installed on the system,
  155. `ncurses' means ncurses library already installed on the system.
  156. The S-Lang library is used by default if found.
  157. `--with-ncurses-includes=[DIR]'
  158. Set path to ncurses includes [default=/usr/include]; make
  159. sense only if --with-screen=ncurses is used;
  160. for /usr/local/include/ncurses specify /usr/local/include.
  161. `--with-ncurses-libs=[DIR]'
  162. Set path to ncurses library [default=/usr/lib]; make sense
  163. only if --with-screen=ncurses is used.
  164. On systems that require unusual options for compilation or linking that
  165. the package's `configure' script does not know about, you can give
  166. `configure' initial values for variables by placing them in the command
  167. line:
  168. ./configure CC='gcc -traditional' LIBS=-lposix
  169. 2. Type `make' to compile the package.
  170. 3. Type `make install' to install programs, data files, and the
  171. documentation.
  172. If you're on a GNU/Linux system, this will install the `cons.saver'
  173. utility, which allows the Midnight Commander to save and restore the
  174. console contents. This utility can be installed setuid root, but it's
  175. only needed on systems where users cannot access /dev/vcsaN, where N is
  176. the virtual console number, on which the uses is logged on.
  177. Obtaining related software
  178. --------------------------
  179. glib
  180. ----
  181. The only "hard" dependency of GNU Midnight Commander is glib. You can
  182. get glib from
  183. * https://download.gnome.org/sources/glib/
  184. Minimal version of glib: 2.32.0
  185. Recommended version: 2.32.x and higher.
  186. Newer versions may work, but haven't been tested.
  187. PCRE
  188. ----
  189. Both PCRE and PCRE2 libraries are supported. You can get PCRE from
  190. * https://www.pcre.org
  191. Terminal database
  192. -----------------
  193. There are many incomplete terminal databases out there, however, a
  194. complete terminfo is bundled with ncurses. (It is simple to generate
  195. the termcap database using the infocmp utility in ncurses).
  196. Some terminfo data are included with the mc distribution (lib/*.ti).
  197. Particularly linux, xterm and vt100. Use e.g. ''tic linux.ti'' to use
  198. them.
  199. If you want to run mc on xterm/color_xterm/ansi_xterm (not rxvt), then
  200. you might read lib/README.xterm for further information.
  201. Screen libraries
  202. ----------------
  203. GNU Midnight Commander can use the included version of S-Lang, but you
  204. can get the latest version here:
  205. * https://www.jedsoft.org/slang/
  206. Alternatively, you can use ncurses:
  207. * https://invisible-island.net/ncurses/announce.html
  208. Mouse support
  209. -------------
  210. The general purpose mouse (gpm) daemon is available from
  211. * https://www.nico.schottelius.org/software/gpm/
  212. Porting
  213. -------
  214. Some less widespread UNIX systems like AIX or Solaris often come with their own
  215. implementations of make and relevant parts of the toolchain necessary to build
  216. mc. While autotools abstract a lot of platform specific issues, you might
  217. encounter unresolved problems while using the native toolchain.
  218. Often, GNU tools are shipped as a part of an additional software collection
  219. (/opt/freeware on AIX, or OpenCSW on Solaris). These tools are usually prefixed
  220. with the letter `g', e.g. `gmake' instead of `make'. If you are not really
  221. interested in building with the native toolchain, try to override tools causing
  222. problems like this:
  223. ./configure MAKE=gmake AR=gar
  224. gmake