📄 install
字号:
can include them in the next release.
2. Type `make' to compile the package.
3. If the package comes with self-tests and you want to run them,
type `make check'. If you're not sure whether there are any, try it;
if `make' responds with something like
make: *** No way to make target `check'. Stop.
then the package does not come with self-tests.
4. Type `make install' to install programs, data files, and
documentation.
If your system is Linux, then install installs the Linux console screen
saver as well.
5. You can remove the program binaries and object files from the
source directory by typing `make clean'. To also remove the
Makefile(s), the header file containing system-dependent definitions
(if the package uses one), and `config.status' (all the files that
`configure' created), type `make realclean'. If you want to clean the source
tree completely, so that it contains only those files that should be
packaged in the archive, issue `make distclean'. If you've run configure in
a different directory than the source tree, distclean won't remove your *.o
and linked programs in that directory.
6. The Midnight Commander allows you to be kept on the directory you
were when you quit the program, this is done with a shell function,
the man page has more information about this. If you want to let the
install program make the change to your /etc/profile or your
~/.profile or ~/.bashrc, then type: `make mcfninstall'.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need it if you want to regenerate
`configure' using a newer version of `autoconf'.
Compiling under NeXTStep
------------------------
These instructions were provided by Gregor Hoffleit
<flight@mathi.uni-heidelberg.DE>, he recommends configuring the
program like this:
export CC="cc -posix"
configure --without-subshell --with-termcap
Edie config.h and make sure you have #undef HAVE_GETWD
make
- Where to get more information on the Midnight Commander
---------------------------------------------------------
Janne Kukonlehto set up a WWW page, here is the URL:
http://mc.blackdown.org/mc/
We also a set of mailing lists for the program:
mc-announce: Announcements of new version of the Midnight Commander.
mc-digest: Digest version of the mc list.
mc-patches: Patches by mail (also on the ftp site).
mc: Discussion on the Midnight Commander file manager.
mc-devel: For discussion between the developers of the program.
to subscribe to the mailing lists, send a message to:
majordomo@roxanne.nuclecu.unam.mx
with the following text in the body of the message:
subscribe <list-name> [address]
The address is optional and list-name is one of the above list names
(mc, mc-announce, mc-patches or mc-digest).
Notes about the Midnight Commander installation
------------------------------------------------
The Midnight Commander has been run in the following configurations:
i386-*-linux
sparc-*-linux
alpha-*-linux
mips-dec-ultrix4.3
mips-dec-{open,net}bsd1.0
mips-sgi-irix5.2
mips-sgi-irix5.3
rs6000-ibm-aix3.2.5
sparc-sun-sunos4.1
sparc-sun-netbsd1.0
sparc-sun-solaris2.3
hppa-hp-hpux9
hppa-hp-hpux7
m68k-apple-aux
mc88110-aviion-dgux5.4
i386-*-{bsdi2,freebsd}
Since the Midnight Commander is configured via the GNU autoconf
program, it's not difficult to run it in other operating systems.
If you're using AIX, with the cc6000 compiler, you have to specify the
`--with-mmap' command line option.
You will need GNU C (or an ANSI C Compiler) and optionally a color
curses library (ncurses is a good choice). The Midnight Commander now
comes with the Slang screen manager, a fast screen manager, so ncurses
is not required anymore unless you want to use it.
Many Linux systems ship with ncurses version 1.9.9e, however, we recommend
ncurses 4.1 or above, since the former version does not support resizing
of the xterm window.
Since version 0.9 the Midnight Commander comes with mouse support on
xterms and in the Linux console. In order to take advantage of the
mouse support on the Linux console you will need the gpm mouse server
(see the section "Obtaining the Missing Pieces" in this file).
Once you get the Mouse Server, compile it and install it, then you
will have to specify the `--with-gpm-mouse' flag to the configure
program if you installed it in a non-standard directory. If you
installed the gpm package under /usr or /usr/local, you don't need to
specify this flag; configure will find gpm for you. The support for
mice on xterms is always compiled in.
We are working on further enhancements to the program, but we're not
sure which ones must go first. If you would like to point us in the
Right Direction we will be glad to hear from you (you could check the
file TODO included with this distribution for the current projects).
If you happen to find an undocumented feature that doesn't do what you
expected, please drop us a note telling us as much as you can about
the problem you're experiencing (to miguel@roxanne.nuclecu.unam.mx).
Porting the program
-------------------
Random notes on porting to other architectures.
The Midnight Commander uses now by default the Slang library for
handling the display. If you can't port Slang (which should be a
pretty trivial job), you may want to attempt using ncurses (the
Midnight Commander can use ncurses as well as the display engine).
If you don't want to install ncurses and your OS is a SystemV Release
4 variant, maybe the curses supplied with your system will do the
work. If you experience display problems, then it means that we are
dealing with a buggy implementation of curses. You have two options:
one, download ncurses and recompile with ncurses or recompile all your
source code with the symbol BUGGY_CURSES defined. But you can always
switch to the default SLang screen manager.
The fast way to do this is to:
make clean; make XINC=-DBUGGY_CURSES
Obtaining the missing pieces of the Midnight Commander
------------------------------------------------------
The Midnight Commander will build without requiring you to get any
other software packages, however, you may be interested in enhancing
the Midnight Commander environment with some of these:
o Terminal database
There are many incomplete terminal databases out there, however, a
complete terminfo is bundled with ncurses. (It is simple to generate
the termcap database using the infocmp utility in ncurses).
Some terminfo data are included with the mc distribution (lib/*.ti).
Particularly linux, xterm and vt100. Use e.g. ''tic linux.ti'' to
use them.
If you want to run mc on xterm/color_xterm/ansi_xterm (not rxvt), then
you might read lib/README.xterm for further information.
o In the past the Midnight Commander required the NCurses library to
build, now it's optional. You can get Ncurses from
ftp.gnu.org:/pub/gnu
ftp.clark.net:/pub/dickey/ncurses
o The GPM Mouse Server is available at:
iride.unipv.it:/pub/gpm
o The X Windows System libraries are only used if you are going to
build the X11 versions of the program. Please note that this code
is not finished, so it's only useful if you want to look at what we
are doing or want to help in one of the two X11 versions.
o The XView library can be obtained from (currently the newest is
XView3.2p1-X11R6.tar.gz):
ftp.nuclecu.unam.mx:/Midnight/devel/XView.libs
ftp.x.org:/contrib/libraries
ftp.cvut.cz:/pub/x11/contrib/libraries
- Linux/ELF shared binaries:
sunsite.unc.edu:/pub/Linux/libs/X/xview
ftp.cvut.cz:/pub/linux/sunsite/libs/X/xview
o The Tcl/Tk libraries can be obtained from:
ftp.smli.com:/pub/tcl
ftp.aud.alcatel.com:/tcl/ftp.smli.com
ftp.cvut.cz:/pub/tcl/ftp.smli.com
- Linux/ELF shared binaries:
ftp.ods.com:/pub/linux
ftp.cvut.cz:/pub/linux/ods
o The Xpm library (used by the XView version) can be obtained from
(currently xpm-3.4f.tar.gz):
koala.inria.fr:/pub/xpm
ftp.x.org:/contrib/libraries
ftp.cvut.cz:/pub/x11/contrib/libraries
- Linux/ELF shared binaries:
ftp.ctd.comsat.com:/pub/linux/ELF
ftp.cvut.cz:/pub/linux/comsat
To get the mouse support working on the Linux console:
If you're using Linux version >= 1.1.34, then you will have to choose yes
to selection when you compile your kernel. If your Linux version is
older than this one, you may try to apply one of the patches included in
the gpm package.
And the GNU C Compiler may be obtained from the following sites:
ASIA: ftp.cs.titech.ac.jp, utsun.s.u-tokyo.ac.jp:/ftpsync/prep,
cair.kaist.ac.kr:/pub/gnu
AUSTRALIA: archie.au:/gnu (archie.oz or archie.oz.au for ACSnet)
AFRICA: ftp.sun.ac.za:/pub/gnu
MIDDLE-EAST: ftp.technion.ac.il:/pub/unsupported/gnu
EUROPE: ftp.cvut.cz:/pub/gnu, irisa.irisa.fr:/pub/gnu,
ftp.univ-lyon1.fr:pub/gnu, ftp.mcc.ac.uk,
unix.hensa.ac.uk:/pub/uunet/systems/gnu,
src.doc.ic.ac.uk:/gnu, ftp.win.tue.nl, ugle.unit.no,
ftp.denet.dk, ftp.informatik.rwth-aachen.de:/pub/gnu,
ftp.informatik.tu-muenchen.de, ftp.eunet.ch,
nic.switch.ch:/mirror/gnu, nic.funet.fi:/pub/gnu, isy.liu.se,
ftp.stacken.kth.se, ftp.luth.se:/pub/unix/gnu, archive.eu.net
CANADA: ftp.cs.ubc.ca:/mirror2/gnu
USA: wuarchive.wustl.edu:/mirrors/gnu, labrea.stanford.edu,
ftp.kpc.com:/pub/mirror/gnu, ftp.cs.widener.edu, uxc.cso.uiuc.edu,
col.hp.com:/mirrors/gnu, ftp.cs.columbia.edu:/archives/gnu/prep,
gatekeeper.dec.com:/pub/GNU, ftp.uu.net:/systems/gnu
Unsupported options to configure:
---------------------------------
`--with-bsd-curses'
If you don't want to use ncurses and are using an Ultrix box, you
can use this switch. Be aware that ncurses is a better option
than the curses included in Ultrix.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -