INSTALL 10 KB

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