INSTALL 10 KB

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