INSTALL 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. This file contains:
  2. - Installation instructions and notes for GNU Midnight Commander
  3. - Where to get more information on GNU Midnight Commander
  4. - Common problems
  5. - Information on porting the program
  6. - Obtaining the missing pieces of GNU Midnight Commander
  7. Installation instructions for GNU Midnight Commander
  8. ----------------------------------------------------
  9. The `configure' shell script attempts to guess correct values for
  10. various system-dependent variables used during compilation, and creates
  11. the makefiles. It also creates a file `config.status' that you can run in
  12. the future to recreate the current configuration.
  13. NeXTStep users, make sure you read the "Compiling under NeXTStep" section.
  14. To compile this package:
  15. 1. Configure the package for your system.
  16. Normally, you just `cd' to the directory containing the package's
  17. source code and type `./configure'. If you're using `csh' on an old
  18. version of SystemV, you might need to type `sh configure' instead to
  19. prevent `csh' from trying to execute `configure' itself. Under AIX, you
  20. may need to use ksh instead of sh.
  21. Running `configure' takes a while. While it is running, it
  22. prints some messages that tell what it is doing. If you don't want to
  23. see any messages, run `configure' with the `--quiet' option.
  24. To compile the package in a different directory than the one containing
  25. the source code, you must use a version of `make' supporting the `VPATH'
  26. variable, such as GNU `make'. `cd' to the directory where you want the
  27. object files and executables to go and run the `configure' script with the
  28. path to it. If for some reason `configure' is not in the source code
  29. directory that you are configuring, then it will report that it can't find
  30. the source code. In that case, run `configure' with the option
  31. `--srcdir=DIR', where DIR is the directory that contains the source code.
  32. By default, `make install' will install the package's files in
  33. `/usr/local/bin', `/usr/local/man', etc. You can specify an installation
  34. prefix other than `/usr/local' by giving `configure' the option
  35. `--prefix=PATH'. Alternately, you can do so by consistently giving a
  36. value for the `prefix' variable when you run `make', e.g.,
  37. make prefix=/usr/gnu
  38. make prefix=/usr/gnu install
  39. You can specify separate installation prefixes for architecture
  40. specific files and architecture-independent files. If you give
  41. `configure' the option `--exec-prefix=PATH' or set the `make' variable
  42. `exec_prefix' to PATH, the package will use PATH as the prefix for
  43. installing programs and libraries. Data files and documentation will
  44. still use the regular prefix. Normally, all files are installed using the
  45. same prefix.
  46. If run on GNU/Linux, Midnight Commander detects if you have the gpm
  47. library installed. If you installed the gpm mouse library in a
  48. non-standard place, you will need to use the --with-gpm-mouse flag with
  49. the directory base where you installed the gpm package.
  50. `configure' also recognizes the following options:
  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. `--verbose'
  57. Print the results of the checks.
  58. `--version'
  59. Print the version of Autoconf used to generate the `configure'
  60. script, and exit.
  61. `--with-mad'
  62. Enables the built-in memory allocation debugger. This option is only
  63. intended for the developers.
  64. `--without-edit'
  65. Configures the program to be compiled without the built-in file
  66. editor. The built-in editor is compiled in by default.
  67. `--with-ext2undel[=PATH]'
  68. On systems that use the Extended 2 file system and have the
  69. libext2fs.a library available, this compiles into the Midnight
  70. Commander the support code for recovering deleted files (the
  71. undel virtual file system).
  72. Use =PATH if libext2fs.a is installed in a non-standard place.
  73. The configure will append `lib' and `include' to find the ext2fs
  74. libraries and include files respectively.
  75. `--with-gpm-mouse[=PATH]'
  76. Use this flag if your gpm mouse package cannot be detected by the
  77. configure. Use =PATH if it is installed in a non-standard place.
  78. The configure will append `lib' and `include' to find the libgpm.a
  79. and gpm.h files respectively.
  80. `--without-gpm-mouse'
  81. Use this flag to disable gpm mouse support (e.g. if you want to
  82. use mouse only on X terminals).
  83. `--with-hsc'
  84. Compiles support for HSC firewall into the ftp virtual file system.
  85. `--with-mmap', `--without-mmap'
  86. Force using or not using the mmap function. It is currently used
  87. in the internal viewer. `--with-mmap' may be useful on some
  88. versions of AIX where the `configure' script decides that mmap is
  89. broken, but it's actually suitable for the internal viewer.
  90. `--with-subshell[=optional]', `--without-subshell'
  91. The subshell support is by default turned on, you can disable
  92. this by using the --without-subshell option. If you pass the
  93. =optional parameter, then the subshell support is turned off by
  94. default. To turn it on, specify the `-U' option to the program.
  95. `--with-termnet'
  96. Enables the network support with the Term package.
  97. `--with-tm-x-support'
  98. This option enables minimal X Window support in the text edition. It
  99. enables MC to query the status of the modifiers CONTROL and SHIFT
  100. when invoked in a terminal emulator under X11. That's necessary
  101. to recognize some optional but handy key combinations like Ctrl-Home
  102. and Shift-Cursor key.
  103. `--without-vfs'
  104. This option disables the Virtual File System switch code in the
  105. Midnight Commander and uses the standard file system calls for
  106. file access. If you specify this option you will not get the
  107. transparent tar File system manipulation as well nor the
  108. networked Midnight Commander file system.
  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. You may also tell configure which display library you want to use with the
  115. Midnight Commander. The configure script will use S-Lang as default, but
  116. you can override this by using any of the following flags (please note
  117. that S-Lang is included as part of the distribution and is tested much
  118. better than everything else),
  119. `--with-slang' (default)
  120. This is used to configure the program to use the S-Lang screen
  121. library. This is included as part of GNU Midnight Commander,
  122. you don't need it installed on your system. If S-Lang is installed
  123. on your system it will be used if possible. You can force usage of
  124. the included S-Lang with the `--with-included-slang' option.
  125. This option will usually try to use the terminfo database if it
  126. is available, otherwise it will use the termcap database. At
  127. compile time, you may force the use the terminal database with
  128. the `--with-termcap' and `--with-terminfo' options (both options
  129. automatically turn `--with-included-slang' on).
  130. `--with-ncurses[=directory]'
  131. Use this flag (either with or without the =directory part), if
  132. you want to compile with ncurses instead of the default S-Lang.
  133. Use the =directory part if your ncurses is not installed in any of the
  134. places configure will check (/usr/include, /usr/include/ncurses,
  135. /usr/local/include and /usr/local/include/ncurses).
  136. The argument to this flag is the base directory where the ncurses
  137. files are located. The configure will append lib and include to
  138. find the libncurses.a and ncurses.h file respectively. For
  139. example, if you have installed ncurses under /gnu/lib and
  140. /gnu/include, you specify: --with-ncurses=/gnu
  141. Run `configure --help' to see the full list of options.
  142. On systems that require unusual options for compilation or linking
  143. that the package's `configure' script does not know about, you can give
  144. `configure' initial values for variables by setting them in the
  145. environment. In Bourne-compatible shells, you can do that on the
  146. command line like this:
  147. CC='gcc -traditional' LIBS=-lposix ./configure
  148. On systems that have the `env' program, you can do it like this:
  149. env CC='gcc -traditional' LIBS=-lposix ./configure
  150. Here are the `make' variables that you might want to override with
  151. environment variables when running `configure'.
  152. For these variables, any value given in the environment overrides the
  153. value that `configure' would choose:
  154. - Variable: CC
  155. C compiler program. The default is `cc'.
  156. - Variable: CFLAGS
  157. The default flags used to build the program.
  158. - Variable: INSTALL
  159. Program to use to install files. The default is `install' if you
  160. have it, `cp' otherwise.
  161. For these variables, any value given in the environment is added to
  162. the value that `configure' decides to use:
  163. - Variable: LIBS
  164. Libraries to link with, in the form `-lfoo -lbar...'.
  165. If you need to do unusual things to compile the package, we encourage
  166. you to figure out how `configure' could check whether to do them, and mail
  167. diffs or instructions to the address given in the README so we can include
  168. them in the next release.
  169. 2. Type `make' to compile the package.
  170. 3. If the package comes with self-tests and you want to run them,
  171. type `make check'. If you're not sure whether there are any, try it;
  172. if `make' responds with something like
  173. make: *** No way to make target `check'. Stop.
  174. then the package does not come with self-tests.
  175. 4. Type `make install' to install programs, data files, and the
  176. documentation. On GNU/Linux the console screen saver is installed as
  177. well.
  178. 5. You can remove the program binaries and object files from the source
  179. directory by typing `make clean'. If you want to clean the source tree
  180. completely, so that it contains only those files that should be packaged
  181. in the archive, issue `make distclean'. If you've run configure in a
  182. different directory than the source tree, distclean won't remove your *.o
  183. and linked programs in that directory.
  184. 6. GNU Midnight Commander allows you to stay in the last current
  185. directory after exiting MC. This is done with a shell function, the man
  186. page has more information about this. If you want to let the install
  187. program make the change to your /etc/profile or your ~/.profile or
  188. ~/.bashrc, then type: `make mcfninstall'.
  189. The file `configure.in' is used to create `configure' by a program
  190. called `autoconf'. You only need it if you want to regenerate
  191. `configure' using a newer version of `autoconf'.
  192. Compiling under NeXTStep
  193. ------------------------
  194. These instructions were provided by Gregor Hoffleit
  195. <flight@mathi.uni-heidelberg.DE>, he recommends configuring the
  196. program like this:
  197. export CC="cc -posix"
  198. configure --without-subshell --with-termcap
  199. Where to get more information on GNU Midnight Commander
  200. -------------------------------------------------------
  201. There are two mailing lists for the program:
  202. mc: Discussion on GNU Midnight Commander file manager.
  203. mc-devel: For discussion between the developers of the program.
  204. to subscribe to the mailing lists, visit their respective pages:
  205. http://mail.gnome.org/mailman/listinfo/mc/
  206. http://mail.gnome.org/mailman/listinfo/mc-devel/
  207. Notes about GNU Midnight Commander installation
  208. ------------------------------------------------
  209. GNU Midnight Commander has been run in the following configurations:
  210. i386-*-linux
  211. sparc-*-linux
  212. alpha-*-linux
  213. powerpc-*-linux
  214. mips-dec-ultrix4.3
  215. mips-dec-{open,net}bsd1.0
  216. mips-sgi-irix5.2
  217. mips-sgi-irix5.3
  218. rs6000-ibm-aix3.2.5
  219. sparc-sun-sunos4.1
  220. sparc-sun-netbsd1.0
  221. sparc-sun-solaris2.3
  222. hppa-hp-hpux9
  223. hppa-hp-hpux7
  224. m68k-apple-aux
  225. mc88110-aviion-dgux5.4
  226. i386-*-bsdi2
  227. i386-*-freebsd4.3
  228. i386-*-openbsd2.9
  229. Midnight Commander is written in a portable manner and uses GNU Autoconf
  230. for configuration, so it is expected to compile without changes on many
  231. other operating systems.
  232. You will need GNU C (or an ANSI C Compiler) and glib library version
  233. 1.2.x to compile the source. GNU Midnight Commander now comes with the
  234. S-Lang screen manager, a fast screen manager, so don't need to worry
  235. about screen libraries.
  236. If you insist on using ncurses, it's recommended to use ncurses 4.1 and
  237. above, since the older versions don't support resizing of the xterm
  238. window.
  239. GNU Midnight Commander comes with the mouse support on xterms and in the
  240. Linux console. In order to take advantage of the mouse support on the
  241. Linux console you will need the gpm mouse server (see the section
  242. "Obtaining the missing pieces of GNU Midnight Commander" in this file).
  243. Once you get the Mouse Server, compile it and install it, then you
  244. will have to specify the `--with-gpm-mouse' flag to the configure
  245. program if you installed it in a non-standard directory. If you
  246. installed the gpm package under /usr or /usr/local, you don't need to
  247. specify this flag; configure will find gpm for you. The support for
  248. mice on xterms is always compiled in.
  249. We are working on further enhancements to the program, but we're not sure
  250. which ones must go first. If you would like to point us in the Right
  251. Direction we will be glad to hear from you (you could check the file TODO
  252. included with this distribution for the current projects).
  253. If you happen to find an undocumented feature that doesn't do what you
  254. expected, please write to mc@gnome.org telling as much as you can about
  255. the problem you're experiencing. Please don't send personal messages to
  256. the maintainers.
  257. Porting the program
  258. -------------------
  259. Random notes on porting to other architectures.
  260. GNU Midnight Commander uses by default the S-Lang library for handling
  261. the display. You may want to download the latest version of S-Lang
  262. or use a slightly modified S-Lang version 0.99.38 included with the
  263. Midnight Commander. The included library is very stable and has been
  264. used for years without problems. You shouldn't expect any problems
  265. porting S-Lang to your platform.
  266. Another possibility is to download and install ncurses on your OS.
  267. GNU Midnight Commander can use ncurses as well as the display engine.
  268. However, you may encounter minor differences, for instance, you will
  269. be unable to force the color mode by giving the "-c" switch to GNU
  270. Midnight Commander.
  271. Obtaining the missing pieces of GNU Midnight Commander
  272. ------------------------------------------------------
  273. GNU Midnight Commander will build without requiring you to get any other
  274. software packages, however, you may be interested in enhancing the
  275. Midnight Commander environment with some of these:
  276. o Terminal database
  277. There are many incomplete terminal databases out there, however, a
  278. complete terminfo is bundled with ncurses. (It is simple to generate
  279. the termcap database using the infocmp utility in ncurses).
  280. Some terminfo data are included with the mc distribution (lib/*.ti).
  281. Particularly linux, xterm and vt100. Use e.g. ''tic linux.ti'' to
  282. use them.
  283. If you want to run mc on xterm/color_xterm/ansi_xterm (not rxvt), then
  284. you might read lib/README.xterm for further information.
  285. o GLib
  286. Midnight Commander requires GLib. You can get GLib from
  287. ftp://ftp.gtk.org/pub/gtk/
  288. Note that only versions 1.2.x are supported. Older versions won't
  289. even be detected. Newer versions won't be detected either - they use a
  290. new package system that is not supported yet by GNU Midnight Commander.
  291. o In the past GNU Midnight Commander required the ncurses library to
  292. build, now it's optional. You can get ncurses from
  293. ftp://ftp.gnu.org/gnu/ncurses/
  294. ftp://dickey.his.com/ncurses/
  295. o The general purpose mouse (gpm) daemon is available at:
  296. ftp://ftp.systemy.it/pub/develop/
  297. And the GNU Compiler Collection may be obtained from the following sites:
  298. ftp://gcc.gnu.org/pub/gcc/releases/
  299. ftp://ftp.gnu.org/gnu/gcc/
  300. http://gcc.gnu.org/mirrors.html