INSTALL 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. -*-text-*-
  2. This file contains:
  3. - Installation instructions and notes for the Midnight Commander
  4. - Where to get more information on the Midnight Commander
  5. - Common problems
  6. - Information on porting the program
  7. - Obtaining the missing pieces of the Midnight Commander
  8. Installation instructions for the Midnight Commander
  9. ----------------------------------------------------
  10. The `configure' shell script attempts to guess correct values for
  11. various system-dependent variables used during compilation, and creates
  12. the Makefile. It also creates a file `config.status' that you can run
  13. in the future to recreate the current configuration.
  14. (Nextstep users, make sure you read the "Compiling under Nextstep"
  15. section)
  16. To compile this package:
  17. 1. Configure the package for your system.
  18. Normally, you just `cd' to the directory containing the package's
  19. source code and type `./configure'. If you're using `csh' on an old
  20. version of System V, you might need to type `sh configure' instead to
  21. prevent `csh' from trying to execute `configure' itself (under AIX,
  22. you may need to use ksh instead of sh).
  23. Running `configure' takes a while. While it is running, it
  24. prints some messages that tell what it is doing. If you don't want to
  25. see any messages, run `configure' with its standard output redirected
  26. to `/dev/null'; for example, `./configure >/dev/null'.
  27. To compile the package in a different directory from the one
  28. containing the source code, you must use a version of `make' that
  29. supports the `VPATH' variable, such as GNU `make'. `cd' to the
  30. directory where you want the object files and executables to go and run
  31. the `configure' script. `configure' automatically checks for the
  32. source code in the directory that `configure' is in and in `..'. If
  33. for some reason `configure' is not in the source code directory that
  34. you are configuring, then it will report that it can't find the source
  35. code. In that case, run `configure' with the option `--srcdir=DIR',
  36. where DIR is the directory that contains the source code.
  37. By default, `make install' will install the package's files in
  38. `/usr/local/bin', `/usr/local/man', etc. You can specify an
  39. installation prefix other than `/usr/local' by giving `configure' the
  40. option `--prefix=PATH'. Alternately, you can do so by consistently
  41. giving a value for the `prefix' variable when you run `make', e.g.,
  42. make prefix=/usr/gnu
  43. make prefix=/usr/gnu install
  44. You can specify separate installation prefixes for
  45. architecture-specific files and architecture-independent files. If
  46. you give `configure' the option `--exec-prefix=PATH' or set the `make'
  47. variable `exec_prefix' to PATH, the package will use PATH as the
  48. prefix for installing programs and libraries. Data files and
  49. documentation will still use the regular prefix. Normally, all files
  50. are installed using the same prefix.
  51. The program detects if you have the gpm library installed. If you
  52. installed the gpm mouse library in a non-standard place, you will need
  53. to use the --with-gpm-mouse flag with the directory base where you
  54. installed the gpm package.
  55. `configure' also recognizes the following options:
  56. `--help'
  57. Print a summary of the options to `configure', and exit.
  58. `--quiet'
  59. `--silent'
  60. Do not print messages saying which checks are being made.
  61. `--verbose'
  62. Print the results of the checks.
  63. `--version'
  64. Print the version of Autoconf used to generate the `configure'
  65. script, and exit.
  66. `--with-debug'
  67. Enables the built-in memory allocation debugger and forces
  68. compilation with -Wall. This is an option intended to be used by
  69. the program developers.
  70. `--without-edit'
  71. Configures the program to be compiled without the built-in file
  72. editor. The built-in editor is compiled in by default.
  73. `--with-ext2undel[=PATH]'
  74. On systems that use the Extended 2 file system and have the
  75. libext2fs.a library available, this compiles into the Midnight
  76. Commander the support code for recovering deleted files (the
  77. undel virtual file system).
  78. Use =PATH if libext2fs.a is installed in a non-standard place.
  79. The configure will append `lib' and `include' to find the ext2fs
  80. libraries and include files respectively.
  81. `--with-gpm-mouse[=PATH]'
  82. Use this flag if your GPM mouse package cannot be detected by the
  83. configure. Use =PATH if it is installed in a non-standard place.
  84. The configure will append `lib' and `include' to find the libgpm.a
  85. and gpm.h files respectively.
  86. `--without-gpm-mouse'
  87. Use this flag to disable GPM mouse support (e.g. if you want to
  88. use mouse only on X terminals).
  89. `--with-hsc'
  90. Compiles support into the ftp virtual file system to support the
  91. HSC firewall.
  92. `--with-mmap'
  93. Needed when compiling under AIX if you want the fast viewer.
  94. `--with-sco'
  95. This option is used to compile on SCO: it turns on SCO-specific
  96. code, i.e. disables the terminal resizing mechanism, uses the
  97. BSD-like pseudoterminal handling, adds screen-saving capabilities
  98. on console, etc.
  99. `--with-subshell[=optional]', `--without-subshell'
  100. The subshell support is by default turned on, you can disable
  101. this by using the --without-subshell option. If you pass the
  102. =optional parameter, then the subshell support is turned off by
  103. default, to turn it on, you have to specify the `-U' flag when
  104. running the program.
  105. `--with-termnet'
  106. Enables the network support with the Term package.
  107. `--with-tm-x-support'
  108. This option enables minimal X Window support in the text edition. It
  109. enables MC to query the status of the modifiers CONTROL and SHIFT
  110. when invoked in a terminal emulation under X11. That's necessary
  111. to recognice key combinations like C-HOME or S-Cursor key.
  112. `--without-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 will not get the
  116. transparent tar File system manipulation as well nor the
  117. networked Midnight Commander file system.
  118. You may also tell configure which display manager you want to use with
  119. the Midnight Commander. The configure script will use SLang as default,
  120. but you can override this by using any of the following flags (please
  121. note that slang is included as part of the distribution),
  122. `--with-slang' (default)
  123. This is used to configure the program to use the SLang screen
  124. manager. This is included as part of the Midnight Commander,
  125. you don't need it installed on your system. If SLang is installed
  126. on your system it will be used if possible. You can force usage of
  127. the included SLang with the `--with-included-slang' option.
  128. Slang is the only library that will let you resize the Midnight
  129. Commander window on an xterm.
  130. This option will usually try to use the terminfo database if it
  131. is available, otherwise it will use the termcap database. At
  132. compile time, you may force the use the terminal database with
  133. the `--with-termcap' and `--with-terminfo' options (both options
  134. automaticly turn `--with-included-slang' on).
  135. `--with-ncurses[=directory]'
  136. Use this flag (either with or without the =directory part), if
  137. you want to compile with ncurses instead of the default SLang.
  138. Use the =directory part if your ncurses is not installed in any of the
  139. places configure will check (/usr/include, /usr/include/ncurses,
  140. /usr/local/include and /usr/local/include/ncurses).
  141. The argument to this flag is the base directory where the ncurses
  142. files are located. The configure will append lib and include to
  143. find the libncurses.a and ncurses.h file respectively. For
  144. example, if you have installed ncurses under /gnu/lib and
  145. /gnu/include, you specify: --with-ncurses=/gnu
  146. You will need the ncurses package only if your system does not
  147. provide a compatible curses. If after compiling, the program
  148. says that it can't resolve the has_colors function, then you need
  149. the ncurses package or you may always go back to the included SLang
  150. screen manager.
  151. `--with-vcurses[=directory]'
  152. Use this flag to force the Midnight Commander to use a SystemV
  153. type ncurses, the optional directory specifies where should
  154. the C compiler find the include files.
  155. `--with-sunos-curses'
  156. You use this flag on SunOS machines if you want to use SunOS 4.x
  157. curses instead of ncurses. You don't need this flag if you don't
  158. have ncurses installed: it's only needed to force the usage of
  159. SunOS curses over ncurses.
  160. `configure' also accepts and ignores some other options.
  161. On systems that require unusual options for compilation or linking
  162. that the package's `configure' script does not know about, you can give
  163. `configure' initial values for variables by setting them in the
  164. environment. In Bourne-compatible shells, you can do that on the
  165. command line like this:
  166. CC='gcc -traditional' LIBS=-lposix ./configure
  167. On systems that have the `env' program, you can do it like this:
  168. env CC='gcc -traditional' LIBS=-lposix ./configure
  169. Here are the `make' variables that you might want to override with
  170. environment variables when running `configure'.
  171. For these variables, any value given in the environment overrides the
  172. value that `configure' would choose:
  173. - Variable: CC
  174. C compiler program. The default is `cc'.
  175. - Variable: CFLAGS
  176. The default flags used to build the program.
  177. - Variable: INSTALL
  178. Program to use to install files. The default is `install' if you
  179. have it, `cp' otherwise.
  180. For these variables, any value given in the environment is added to
  181. the value that `configure' chooses:
  182. - Variable: LIBS
  183. Libraries to link with, in the form `-lfoo -lbar...'.
  184. If you need to do unusual things to compile the package, we encourage
  185. you to figure out how `configure' could check whether to do them, and
  186. mail diffs or instructions to the address given in the README so we
  187. can include them in the next release.
  188. 2. Type `make' to compile the package.
  189. 3. If the package comes with self-tests and you want to run them,
  190. type `make check'. If you're not sure whether there are any, try it;
  191. if `make' responds with something like
  192. make: *** No way to make target `check'. Stop.
  193. then the package does not come with self-tests.
  194. 4. Type `make install' to install programs, data files, and
  195. documentation.
  196. If your system is Linux, then install installs the Linux console screen
  197. saver as well.
  198. 5. You can remove the program binaries and object files from the
  199. source directory by typing `make clean'. To also remove the
  200. Makefile(s), the header file containing system-dependent definitions
  201. (if the package uses one), and `config.status' (all the files that
  202. `configure' created), type `make realclean'. If you want to clean the source
  203. tree completely, so that it contains only those files that should be
  204. packaged in the archive, issue `make distclean'. If you've run configure in
  205. a different directory than the source tree, distclean won't remove your *.o
  206. and linked programs in that directory.
  207. 6. The Midnight Commander allows you to be kept on the directory you
  208. were when you quit the program, this is done with a shell function,
  209. the man page has more information about this. If you want to let the
  210. install program make the change to your /etc/profile or your
  211. ~/.profile or ~/.bashrc, then type: `make mcfninstall'.
  212. The file `configure.in' is used to create `configure' by a program
  213. called `autoconf'. You only need it if you want to regenerate
  214. `configure' using a newer version of `autoconf'.
  215. Compiling under NeXTStep
  216. ------------------------
  217. These instructions were provided by Gregor Hoffleit
  218. <flight@mathi.uni-heidelberg.DE>, he recommends configuring the
  219. program like this:
  220. export CC="cc -posix"
  221. configure --without-subshell --with-termcap
  222. Edie config.h and make sure you have #undef HAVE_GETWD
  223. make
  224. - Where to get more information on the Midnight Commander
  225. ---------------------------------------------------------
  226. Janne Kukonlehto set up a WWW page, here is the URL:
  227. http://mc.blackdown.org/mc/
  228. We also a set of mailing lists for the program:
  229. mc: Discussion on the Midnight Commander file manager.
  230. mc-devel: For discussion between the developers of the program.
  231. to subscribe to the mailing lists, visit their respective pages:
  232. http://mail.gnome.org/mailman/listinfo/mc/
  233. http://mail.gnome.org/mailman/listinfo/mc-devel/
  234. Notes about the Midnight Commander installation
  235. ------------------------------------------------
  236. The Midnight Commander has been run in the following configurations:
  237. i386-*-linux
  238. sparc-*-linux
  239. alpha-*-linux
  240. mips-dec-ultrix4.3
  241. mips-dec-{open,net}bsd1.0
  242. mips-sgi-irix5.2
  243. mips-sgi-irix5.3
  244. rs6000-ibm-aix3.2.5
  245. sparc-sun-sunos4.1
  246. sparc-sun-netbsd1.0
  247. sparc-sun-solaris2.3
  248. hppa-hp-hpux9
  249. hppa-hp-hpux7
  250. m68k-apple-aux
  251. mc88110-aviion-dgux5.4
  252. i386-*-{bsdi2,freebsd}
  253. Since the Midnight Commander is configured via the GNU autoconf
  254. program, it's not difficult to run it in other operating systems.
  255. If you're using AIX, with the cc6000 compiler, you have to specify the
  256. `--with-mmap' command line option.
  257. You will need GNU C (or an ANSI C Compiler) and optionally a color
  258. curses library (ncurses is a good choice). The Midnight Commander now
  259. comes with the Slang screen manager, a fast screen manager, so ncurses
  260. is not required anymore unless you want to use it.
  261. Many Linux systems ship with ncurses version 1.9.9e, however, we recommend
  262. ncurses 4.1 or above, since the former version does not support resizing
  263. of the xterm window.
  264. Since version 0.9 the Midnight Commander comes with mouse support on
  265. xterms and in the Linux console. In order to take advantage of the
  266. mouse support on the Linux console you will need the gpm mouse server
  267. (see the section "Obtaining the Missing Pieces" in this file).
  268. Once you get the Mouse Server, compile it and install it, then you
  269. will have to specify the `--with-gpm-mouse' flag to the configure
  270. program if you installed it in a non-standard directory. If you
  271. installed the gpm package under /usr or /usr/local, you don't need to
  272. specify this flag; configure will find gpm for you. The support for
  273. mice on xterms is always compiled in.
  274. We are working on further enhancements to the program, but we're not
  275. sure which ones must go first. If you would like to point us in the
  276. Right Direction we will be glad to hear from you (you could check the
  277. file TODO included with this distribution for the current projects).
  278. If you happen to find an undocumented feature that doesn't do what you
  279. expected, please drop us a note telling us as much as you can about
  280. the problem you're experiencing (to miguel@roxanne.nuclecu.unam.mx).
  281. Porting the program
  282. -------------------
  283. Random notes on porting to other architectures.
  284. The Midnight Commander uses now by default the SLang library for
  285. handling the display. You may want to download the latest version of
  286. SLang or use a slightly modified SLang version 0.99.38 included with
  287. the Midnight Commander. The later is very stable and has been used
  288. for years without problems. You shouldn't expect any problems porting
  289. SLang to your platform.
  290. Another possibility is to download and install ncurses on your OS.
  291. The Midnight Commander can use ncurses as well as the display engine.
  292. However, you may encounter minor differences, for instance, you will
  293. be unable to force the color mode by giving the "-c" switch to the
  294. Midnight Commander.
  295. As the last resort, you may try to use the curses library supplied with
  296. your OS. Beware that some systems, e.g. SystemV Release 4, include the
  297. curses library with bugs critical to the Midnight Commander. You may
  298. try to recompile all your source code with the symbol BUGGY_CURSES
  299. defined, i.e.
  300. make clean; make CFLAGS="-g -O -DBUGGY_CURSES"
  301. Obtaining the missing pieces of the Midnight Commander
  302. ------------------------------------------------------
  303. The Midnight Commander will build without requiring you to get any
  304. other software packages, however, you may be interested in enhancing
  305. the Midnight Commander environment with some of these:
  306. o Terminal database
  307. There are many incomplete terminal databases out there, however, a
  308. complete terminfo is bundled with ncurses. (It is simple to generate
  309. the termcap database using the infocmp utility in ncurses).
  310. Some terminfo data are included with the mc distribution (lib/*.ti).
  311. Particularly linux, xterm and vt100. Use e.g. ''tic linux.ti'' to
  312. use them.
  313. If you want to run mc on xterm/color_xterm/ansi_xterm (not rxvt), then
  314. you might read lib/README.xterm for further information.
  315. o In the past the Midnight Commander required the NCurses library to
  316. build, now it's optional. You can get Ncurses from
  317. ftp.gnu.org:/pub/gnu
  318. ftp.clark.net:/pub/dickey/ncurses
  319. o The GPM Mouse Server is available at:
  320. iride.unipv.it:/pub/gpm
  321. o The X Windows System libraries are only used if you are going to
  322. build the X11 versions of the program. Please note that this code
  323. is not finished, so it's only useful if you want to look at what we
  324. are doing or want to help in one of the two X11 versions.
  325. To get the mouse support working on the Linux console:
  326. If you're using Linux version >= 1.1.34, then you will have to choose yes
  327. to selection when you compile your kernel. If your Linux version is
  328. older than this one, you may try to apply one of the patches included in
  329. the gpm package.
  330. And the GNU C Compiler may be obtained from the following sites:
  331. ASIA: ftp.cs.titech.ac.jp, utsun.s.u-tokyo.ac.jp:/ftpsync/prep,
  332. cair.kaist.ac.kr:/pub/gnu
  333. AUSTRALIA: archie.au:/gnu (archie.oz or archie.oz.au for ACSnet)
  334. AFRICA: ftp.sun.ac.za:/pub/gnu
  335. MIDDLE-EAST: ftp.technion.ac.il:/pub/unsupported/gnu
  336. EUROPE: ftp.cvut.cz:/pub/gnu, irisa.irisa.fr:/pub/gnu,
  337. ftp.univ-lyon1.fr:pub/gnu, ftp.mcc.ac.uk,
  338. unix.hensa.ac.uk:/pub/uunet/systems/gnu,
  339. src.doc.ic.ac.uk:/gnu, ftp.win.tue.nl, ugle.unit.no,
  340. ftp.denet.dk, ftp.informatik.rwth-aachen.de:/pub/gnu,
  341. ftp.informatik.tu-muenchen.de, ftp.eunet.ch,
  342. nic.switch.ch:/mirror/gnu, nic.funet.fi:/pub/gnu, isy.liu.se,
  343. ftp.stacken.kth.se, ftp.luth.se:/pub/unix/gnu, archive.eu.net
  344. CANADA: ftp.cs.ubc.ca:/mirror2/gnu
  345. USA: wuarchive.wustl.edu:/mirrors/gnu, labrea.stanford.edu,
  346. ftp.kpc.com:/pub/mirror/gnu, ftp.cs.widener.edu, uxc.cso.uiuc.edu,
  347. col.hp.com:/mirrors/gnu, ftp.cs.columbia.edu:/archives/gnu/prep,
  348. gatekeeper.dec.com:/pub/GNU, ftp.uu.net:/systems/gnu
  349. Unsupported options to configure:
  350. ---------------------------------
  351. `--with-bsd-curses'
  352. If you don't want to use ncurses and are using an Ultrix box, you
  353. can use this switch. Be aware that ncurses is a better option
  354. than the curses included in Ultrix.