INSTALL 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  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-tk' [WARNING: X code is not released]
  108. This option enables including the Tcl/Tk version.
  109. `--with-tk-includes=DIR' [WARNING: X code is not released]
  110. Lets you specify the place where you have your Tcl/Tk headers installed.
  111. It should be a directory containing tcl.h and tk.h.
  112. `--with-tk-libraries=DIR' [WARNING: X code is not released]
  113. Lets you specify the place where you have your Tcl/Tk libraries -
  114. libtcl and libtk.
  115. `--with-xview' [WARNING: X code is not released]
  116. This option enables including the XView version.
  117. `--with-xview-includes=DIR' [WARNING: X code is not released]
  118. Lets you specify the place where you have your xview headers installed.
  119. It should be the directory, which has subdirectories xview and
  120. hopefuly xview_private.
  121. `--with-xview-libraries=DIR' [WARNING: X code is not released]
  122. Lets you specify the place where you have your xview libraries -
  123. libolgx and libxview.
  124. `--with-xv-bindir=DIR' [WARNING: X code is not released]
  125. Lets you specify the place where program mxc will be installed.
  126. Default is somewhere in your XView binaries directory,
  127. $OPENWINHOME/bin.
  128. `--with-tm-x-support'
  129. This option enables minimal X Window support in the text edition. It
  130. enables MC to query the status of the modifiers CONTROL and SHIFT
  131. when invoked in a terminal emulation under X11. That's necessary
  132. to recognice key combinations like C-HOME or S-Cursor key.
  133. `--without-vfs'
  134. This option disables the Virtual File System switch code in the
  135. Midnight Commander and uses the standard file system calls for
  136. file access. If you specify this option you will not get the
  137. transparent tar File system manipulation as well nor the
  138. networked Midnight Commander file system.
  139. You may also tell configure which display manager you want to use with
  140. the Midnight Commander. The configure script will use SLang as default,
  141. but you can override this by using any of the following flags (please
  142. note that slang is included as part of the distribution),
  143. `--with-slang' (default)
  144. This is used to configure the program to use the SLang screen
  145. manager. This is included as part of the Midnight Commander,
  146. you don't need it installed on your system. If SLang is installed
  147. on your system it will be used if possible. You can force usage of
  148. the included SLang with the `--with-included-slang' option.
  149. Slang is the only library that will let you resize the Midnight
  150. Commander window on an xterm.
  151. This option will usually try to use the terminfo database if it
  152. is available, otherwise it will use the termcap database. At
  153. compile time, you may force the use the terminal database with
  154. the `--with-termcap' and `--with-terminfo' options (both options
  155. automaticly turn `--with-included-slang' on).
  156. `--with-ncurses[=directory]'
  157. Use this flag (either with or without the =directory part), if
  158. you want to compile with ncurses instead of the default SLang.
  159. Use the =directory part if your ncurses is not installed in any of the
  160. places configure will check (/usr/include, /usr/include/ncurses,
  161. /usr/local/include and /usr/local/include/ncurses).
  162. The argument to this flag is the base directory where the ncurses
  163. files are located. The configure will append lib and include to
  164. find the libncurses.a and ncurses.h file respectively. For
  165. example, if you have installed ncurses under /gnu/lib and
  166. /gnu/include, you specify: --with-ncurses=/gnu
  167. You will need the ncurses package only if your system does not
  168. provide a compatible curses. If after compiling, the program
  169. says that it can't resolve the has_colors function, then you need
  170. the ncurses package or you may always go back to the included SLang
  171. screen manager.
  172. `--with-vcurses[=directory]'
  173. Use this flag to force the Midnight Commander to use a SystemV
  174. type ncurses, the optional directory specifies where should
  175. the C compiler find the include files.
  176. `--with-sunos-curses'
  177. You use this flag on SunOS machines if you want to use SunOS 4.x
  178. curses instead of ncurses. You don't need this flag if you don't
  179. have ncurses installed: it's only needed to force the usage of
  180. SunOS curses over ncurses.
  181. `configure' also accepts and ignores some other options.
  182. On systems that require unusual options for compilation or linking
  183. that the package's `configure' script does not know about, you can give
  184. `configure' initial values for variables by setting them in the
  185. environment. In Bourne-compatible shells, you can do that on the
  186. command line like this:
  187. CC='gcc -traditional' LIBS=-lposix ./configure
  188. On systems that have the `env' program, you can do it like this:
  189. env CC='gcc -traditional' LIBS=-lposix ./configure
  190. Here are the `make' variables that you might want to override with
  191. environment variables when running `configure'.
  192. For these variables, any value given in the environment overrides the
  193. value that `configure' would choose:
  194. - Variable: CC
  195. C compiler program. The default is `cc'.
  196. - Variable: CFLAGS
  197. The default flags used to build the program.
  198. - Variable: INSTALL
  199. Program to use to install files. The default is `install' if you
  200. have it, `cp' otherwise.
  201. For these variables, any value given in the environment is added to
  202. the value that `configure' chooses:
  203. - Variable: LIBS
  204. Libraries to link with, in the form `-lfoo -lbar...'.
  205. If you need to do unusual things to compile the package, we encourage
  206. you to figure out how `configure' could check whether to do them, and
  207. mail diffs or instructions to the address given in the README so we
  208. can include them in the next release.
  209. 2. Type `make' to compile the package.
  210. 3. If the package comes with self-tests and you want to run them,
  211. type `make check'. If you're not sure whether there are any, try it;
  212. if `make' responds with something like
  213. make: *** No way to make target `check'. Stop.
  214. then the package does not come with self-tests.
  215. 4. Type `make install' to install programs, data files, and
  216. documentation.
  217. If your system is Linux, then install installs the Linux console screen
  218. saver as well.
  219. 5. You can remove the program binaries and object files from the
  220. source directory by typing `make clean'. To also remove the
  221. Makefile(s), the header file containing system-dependent definitions
  222. (if the package uses one), and `config.status' (all the files that
  223. `configure' created), type `make realclean'. If you want to clean the source
  224. tree completely, so that it contains only those files that should be
  225. packaged in the archive, issue `make distclean'. If you've run configure in
  226. a different directory than the source tree, distclean won't remove your *.o
  227. and linked programs in that directory.
  228. 6. The Midnight Commander allows you to be kept on the directory you
  229. were when you quit the program, this is done with a shell function,
  230. the man page has more information about this. If you want to let the
  231. install program make the change to your /etc/profile or your
  232. ~/.profile or ~/.bashrc, then type: `make mcfninstall'.
  233. The file `configure.in' is used to create `configure' by a program
  234. called `autoconf'. You only need it if you want to regenerate
  235. `configure' using a newer version of `autoconf'.
  236. Compiling under NeXTStep
  237. ------------------------
  238. These instructions were provided by Gregor Hoffleit
  239. <flight@mathi.uni-heidelberg.DE>, he recommends configuring the
  240. program like this:
  241. export CC="cc -posix"
  242. configure --without-subshell --with-termcap
  243. Edie config.h and make sure you have #undef HAVE_GETWD
  244. make
  245. - Where to get more information on the Midnight Commander
  246. ---------------------------------------------------------
  247. Janne Kukonlehto set up a WWW page, here is the URL:
  248. http://mc.blackdown.org/mc/
  249. We also a set of mailing lists for the program:
  250. mc-announce: Announcements of new version of the Midnight Commander.
  251. mc-digest: Digest version of the mc list.
  252. mc-patches: Patches by mail (also on the ftp site).
  253. mc: Discussion on the Midnight Commander file manager.
  254. mc-devel: For discussion between the developers of the program.
  255. to subscribe to the mailing lists, send a message to:
  256. majordomo@roxanne.nuclecu.unam.mx
  257. with the following text in the body of the message:
  258. subscribe <list-name> [address]
  259. The address is optional and list-name is one of the above list names
  260. (mc, mc-announce, mc-patches or mc-digest).
  261. Notes about the Midnight Commander installation
  262. ------------------------------------------------
  263. The Midnight Commander has been run in the following configurations:
  264. i386-*-linux
  265. sparc-*-linux
  266. alpha-*-linux
  267. mips-dec-ultrix4.3
  268. mips-dec-{open,net}bsd1.0
  269. mips-sgi-irix5.2
  270. mips-sgi-irix5.3
  271. rs6000-ibm-aix3.2.5
  272. sparc-sun-sunos4.1
  273. sparc-sun-netbsd1.0
  274. sparc-sun-solaris2.3
  275. hppa-hp-hpux9
  276. hppa-hp-hpux7
  277. m68k-apple-aux
  278. mc88110-aviion-dgux5.4
  279. i386-*-{bsdi2,freebsd}
  280. Since the Midnight Commander is configured via the GNU autoconf
  281. program, it's not difficult to run it in other operating systems.
  282. If you're using AIX, with the cc6000 compiler, you have to specify the
  283. `--with-mmap' command line option.
  284. You will need GNU C (or an ANSI C Compiler) and optionally a color
  285. curses library (ncurses is a good choice). The Midnight Commander now
  286. comes with the Slang screen manager, a fast screen manager, so ncurses
  287. is not required anymore unless you want to use it.
  288. Many Linux systems ship with ncurses version 1.9.9e, however, we recommend
  289. ncurses 4.1 or above, since the former version does not support resizing
  290. of the xterm window.
  291. Since version 0.9 the Midnight Commander comes with mouse support on
  292. xterms and in the Linux console. In order to take advantage of the
  293. mouse support on the Linux console you will need the gpm mouse server
  294. (see the section "Obtaining the Missing Pieces" in this file).
  295. Once you get the Mouse Server, compile it and install it, then you
  296. will have to specify the `--with-gpm-mouse' flag to the configure
  297. program if you installed it in a non-standard directory. If you
  298. installed the gpm package under /usr or /usr/local, you don't need to
  299. specify this flag; configure will find gpm for you. The support for
  300. mice on xterms is always compiled in.
  301. We are working on further enhancements to the program, but we're not
  302. sure which ones must go first. If you would like to point us in the
  303. Right Direction we will be glad to hear from you (you could check the
  304. file TODO included with this distribution for the current projects).
  305. If you happen to find an undocumented feature that doesn't do what you
  306. expected, please drop us a note telling us as much as you can about
  307. the problem you're experiencing (to miguel@roxanne.nuclecu.unam.mx).
  308. Porting the program
  309. -------------------
  310. Random notes on porting to other architectures.
  311. The Midnight Commander uses now by default the SLang library for
  312. handling the display. You may want to download the latest version of
  313. SLang or use a slightly modified SLang version 0.99.38 included with
  314. the Midnight Commander. The later is very stable and has been used
  315. for years without problems. You shouldn't expect any problems porting
  316. SLang to your platform.
  317. Another possibility is to download and install ncurses on your OS.
  318. The Midnight Commander can use ncurses as well as the display engine.
  319. However, you may encounter minor differences, for instance, you will
  320. be unable to force the color mode by giving the "-c" switch to the
  321. Midnight Commander.
  322. As the last resort, you may try to use the curses library supplied with
  323. your OS. Beware that some systems, e.g. SystemV Release 4, include the
  324. curses library with bugs critical to the Midnight Commander. You may
  325. try to recompile all your source code with the symbol BUGGY_CURSES
  326. defined, i.e.
  327. make clean; make CFLAGS="-g -O -DBUGGY_CURSES"
  328. Obtaining the missing pieces of the Midnight Commander
  329. ------------------------------------------------------
  330. The Midnight Commander will build without requiring you to get any
  331. other software packages, however, you may be interested in enhancing
  332. the Midnight Commander environment with some of these:
  333. o Terminal database
  334. There are many incomplete terminal databases out there, however, a
  335. complete terminfo is bundled with ncurses. (It is simple to generate
  336. the termcap database using the infocmp utility in ncurses).
  337. Some terminfo data are included with the mc distribution (lib/*.ti).
  338. Particularly linux, xterm and vt100. Use e.g. ''tic linux.ti'' to
  339. use them.
  340. If you want to run mc on xterm/color_xterm/ansi_xterm (not rxvt), then
  341. you might read lib/README.xterm for further information.
  342. o In the past the Midnight Commander required the NCurses library to
  343. build, now it's optional. You can get Ncurses from
  344. ftp.gnu.org:/pub/gnu
  345. ftp.clark.net:/pub/dickey/ncurses
  346. o The GPM Mouse Server is available at:
  347. iride.unipv.it:/pub/gpm
  348. o The X Windows System libraries are only used if you are going to
  349. build the X11 versions of the program. Please note that this code
  350. is not finished, so it's only useful if you want to look at what we
  351. are doing or want to help in one of the two X11 versions.
  352. o The XView library can be obtained from (currently the newest is
  353. XView3.2p1-X11R6.tar.gz):
  354. ftp.nuclecu.unam.mx:/Midnight/devel/XView.libs
  355. ftp.x.org:/contrib/libraries
  356. ftp.cvut.cz:/pub/x11/contrib/libraries
  357. - Linux/ELF shared binaries:
  358. sunsite.unc.edu:/pub/Linux/libs/X/xview
  359. ftp.cvut.cz:/pub/linux/sunsite/libs/X/xview
  360. o The Tcl/Tk libraries can be obtained from:
  361. ftp.smli.com:/pub/tcl
  362. ftp.aud.alcatel.com:/tcl/ftp.smli.com
  363. ftp.cvut.cz:/pub/tcl/ftp.smli.com
  364. - Linux/ELF shared binaries:
  365. ftp.ods.com:/pub/linux
  366. ftp.cvut.cz:/pub/linux/ods
  367. o The Xpm library (used by the XView version) can be obtained from
  368. (currently xpm-3.4f.tar.gz):
  369. koala.inria.fr:/pub/xpm
  370. ftp.x.org:/contrib/libraries
  371. ftp.cvut.cz:/pub/x11/contrib/libraries
  372. - Linux/ELF shared binaries:
  373. ftp.ctd.comsat.com:/pub/linux/ELF
  374. ftp.cvut.cz:/pub/linux/comsat
  375. To get the mouse support working on the Linux console:
  376. If you're using Linux version >= 1.1.34, then you will have to choose yes
  377. to selection when you compile your kernel. If your Linux version is
  378. older than this one, you may try to apply one of the patches included in
  379. the gpm package.
  380. And the GNU C Compiler may be obtained from the following sites:
  381. ASIA: ftp.cs.titech.ac.jp, utsun.s.u-tokyo.ac.jp:/ftpsync/prep,
  382. cair.kaist.ac.kr:/pub/gnu
  383. AUSTRALIA: archie.au:/gnu (archie.oz or archie.oz.au for ACSnet)
  384. AFRICA: ftp.sun.ac.za:/pub/gnu
  385. MIDDLE-EAST: ftp.technion.ac.il:/pub/unsupported/gnu
  386. EUROPE: ftp.cvut.cz:/pub/gnu, irisa.irisa.fr:/pub/gnu,
  387. ftp.univ-lyon1.fr:pub/gnu, ftp.mcc.ac.uk,
  388. unix.hensa.ac.uk:/pub/uunet/systems/gnu,
  389. src.doc.ic.ac.uk:/gnu, ftp.win.tue.nl, ugle.unit.no,
  390. ftp.denet.dk, ftp.informatik.rwth-aachen.de:/pub/gnu,
  391. ftp.informatik.tu-muenchen.de, ftp.eunet.ch,
  392. nic.switch.ch:/mirror/gnu, nic.funet.fi:/pub/gnu, isy.liu.se,
  393. ftp.stacken.kth.se, ftp.luth.se:/pub/unix/gnu, archive.eu.net
  394. CANADA: ftp.cs.ubc.ca:/mirror2/gnu
  395. USA: wuarchive.wustl.edu:/mirrors/gnu, labrea.stanford.edu,
  396. ftp.kpc.com:/pub/mirror/gnu, ftp.cs.widener.edu, uxc.cso.uiuc.edu,
  397. col.hp.com:/mirrors/gnu, ftp.cs.columbia.edu:/archives/gnu/prep,
  398. gatekeeper.dec.com:/pub/GNU, ftp.uu.net:/systems/gnu
  399. Unsupported options to configure:
  400. ---------------------------------
  401. `--with-bsd-curses'
  402. If you don't want to use ncurses and are using an Ultrix box, you
  403. can use this switch. Be aware that ncurses is a better option
  404. than the curses included in Ultrix.