⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch52_05.htm

📁 the unix power tools
💻 HTM
📖 第 1 页 / 共 3 页
字号:
></BLOCKQUOTE></P><PCLASS="para">Any copyright information for the <EMCLASS="emphasis">qterm</EM> package is printed out now:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">qterm was compiled and made &quot;Ready-to-Run&quot; by         Ready-to-Run Software, Inc./* * Copyright (c) 1990 Michael A. Cooper. * This software may be freely distributed provided it is not sold for  * profit and the author is credited appropriately. */                               ************************</PRE></BLOCKQUOTE></P><PCLASS="para">You are then prompted with installation questions, with the default answers printed within squarebrackets (<CODECLASS="literal">[]</CODE>).</P><PCLASS="para">The first question is where to install the software. The installationprogram assumes <EMCLASS="emphasis">/usr/local</EM> as the default installationdirectory. If you want to changethe default, type the name of a different directory here. This directory willnow be used when you are prompted for the same information inall subsequent packages. </P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Install package at dir [/usr/local]? <CODECLASS="userinput"><B>/work/tools</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD></PRE></BLOCKQUOTE></P><PCLASS="para">The next question is where to install the shared files for the package. The default is to use a <EMCLASS="emphasis">share</EM> subdirectory of whatever directory you specifiedin the previous question.</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Install shared files at [/work/tools/share]? <KBDCLASS="keycap">[RETURN]</KBD></PRE></BLOCKQUOTE></P><PCLASS="para">Third, you're asked whether to remove the <EMCLASS="emphasis">s</EM> prefixfrom the names of the directories in which you install theshared files. The default is &quot;y&quot; for &quot;yes&quot;-remove the <EMCLASS="emphasis">s</EM> prefix.</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Convert slib-&gt;lib, sbin-&gt;bin, sspool-&gt;spool, sinclude-&gt;include [y]? <KBDCLASS="keycap">[RETURN]</KBD></PRE></BLOCKQUOTE></P><PCLASS="para">The fourth question is whether to install all the shared files, some, ornone of them. The default is to install just some selected shared files.</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Install Shared files (All, Some, None) [s]? <KBDCLASS="keycap">[RETURN]</KBD></PRE></BLOCKQUOTE></P><PCLASS="para">Now you're asked whether to install the manpages. The default isto install them all. You might choose not to install unformattedmanpages if you are low on disk space or if you don't have <EMCLASS="emphasis">nroff</EM>on your system to format them with:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Install Unformatted Man pages (Approx  13Kb) [y]? <KBDCLASS="keycap">[RETURN]</KBD>Install Formatted Man pages (Approx  15Kb) [y]? <KBDCLASS="keycap">[RETURN]</KBD></PRE></BLOCKQUOTE></P><PCLASS="para">Finally you're asked about any other shareable files.</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Install Other Shareable files (Approx   3Kb) [y]? <KBDCLASS="keycap">[RETURN]</KBD></PRE></BLOCKQUOTE></P><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-62994"></A><ACLASS="indexterm"NAME="AUTOID-62996"></A><ACLASS="indexterm"NAME="AUTOID-62998"></A><ACLASS="indexterm"NAME="AUTOID-63000"></A>(Other packages might have other questions, as appropriate. For example, the<EMCLASS="emphasis">gawk</EM> installation asks whether to install Texinfo files,PostScript format documentation, and DVI format documentation.)</P><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63004"></A><ACLASS="indexterm"NAME="AUTOID-63007"></A>If you want the answer to any question to be used for all subsequent packages without further prompting, enter the answer in uppercase. You can enter a pathname inuppercase, and the installation script will convert it to lowercasebefore using it.For example:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Install package at dir [/usr/local]? <CODECLASS="userinput"><B>/WORK/TOOLS</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD>Install shared files at [/work/tools/share]? <CODECLASS="userinput"><B>/WORK/TOOLS/SHARE</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD>Convert slib-&gt;lib, sbin-&gt;bin, sspool-&gt;spool, sinclude-&gt;include [y]? <CODECLASS="userinput"><B>Y</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD>Install Shared files (All, Some, None) [s]? <CODECLASS="userinput"><B>S</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD>Install Unformatted Man pages (Approx  13Kb) [y]? <CODECLASS="userinput"><B>Y</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD>Install Formatted Man pages (Approx  15Kb) [y]? <CODECLASS="userinput"><B>Y</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD>Install Other Shareable files (Approx   3Kb) [y]? <CODECLASS="userinput"><B>Y</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD></PRE></BLOCKQUOTE></P><PCLASS="para">After answering all the questions, the installation script setsup its installation information and asks you once more if it'scorrect. If you change your mind about the current configuration,press &quot;n&quot; to get another chance to change some of your installation parameters or to abort the installation ofthis package entirely.If the current configuration is acceptable, press RETURN a final time, and the package is installed.  </P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Please wait....    About To Install: qterm        at /work/tools        with shareable files at /work/tools/share        slib-&gt;lib, sbin-&gt;bin, sspool-&gt;spool, sinclude-&gt;includeAre these correct [y]? <KBDCLASS="keycap">[RETURN]</KBD>Proceeding with install...0 directories added, 6 files installed, 0 symbolic links created.Approximately  99Kb installed.</PRE></BLOCKQUOTE></P><PCLASS="para">&#13;Once the <EMCLASS="emphasis">qterm</EM> installation is completed, the installationscript returns to the main menu if this is the only packageyou have selected. </P><PCLASS="para">After all programs are installed, you can quit the installation program. Upon quitting, the installation program suggests a new <SPANCLASS="link">search path (<ACLASS="linkend"HREF="ch08_07.htm"TITLE="Setting Your Search Path ">8.7</A>)</SPAN>for you.&#13;</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">You may want to change your path to include:   /work/tools/bin   /work/tools/share/binSuggested new path:/work/tools/bin:/work/tools/share/bin:/bin:/usr/bin ...</PRE></BLOCKQUOTE></P><PCLASS="para">A log file of the installation process is kept in<EMCLASS="emphasis">/tmp/RTRinstall.log</EM>.A typical entry looks like this:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Package: jot - installed Thu Jul 10 14:39:52 EDT 1997   /usr3/tmp/sidh/sundae/bin/jot   /usr3/tmp/sidh/sundae/bin: Making directory   /usr3/tmp/sidh/sundae/share: Making directory   /usr3/tmp/sidh/sundae: Making directory3 directories added, 1 file installed.Approximately  24Kb installed.<ACLASS="indexterm"NAME="AUTOID-63040"></A></PRE></BLOCKQUOTE></P></DIV><DIVCLASS="sect3"><H4CLASS="sect3"><ACLASS="title"NAME="UPT-ART-9503-SECT-1.3.5">52.5.3.5 Installing Everything Using the Defaults </A></H4><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63044"></A>If you don't want to be bothered with being questioned aboutevery package in the installation, and the default values arefine with you, you can bypass the questions and install everything atonce. At the main menu, press &quot;A&quot; for &quot;All&quot; to install all packages:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">bash         bitmaps      bsdtar       bsplit       calen        cpmodcvtbase      delete       diff         ediff        emacs        fgrepfileutils    find         gawk         getopt       glimpse      grabchars   ...Enter the name of a package to install or choose Search, Quit or All&lt;package, S(earch), A(ll), Q(uit) [Search]? A <KBDCLASS="keycap">[RETURN]</KBD></PRE></BLOCKQUOTE></P><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63051"></A>You are shown information about the first program, <EMCLASS="emphasis">bash</EM>.Then you are asked whether to install <EMCLASS="emphasis">bash</EM>:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">GNU Bash, version 1.14.6.Bash is the GNU Project's Bourne Again SHell, an interactive shell withBourne shell syntax (/bin/sh); but also with interactive command lineediting, job control on architectures that support it, Csh-like historyfeatures and brace expansion, and a slew of other stuff.The bash package is approximately 2.3Mb    601Kb - Required    383Kb - Shared: DVI Format Documentation    205Kb - Shared: Formatted Man pages    217Kb - Shared: Info files      9Kb - Shared: Other Documentation    741Kb - Shared: PostScript Format Documentation    165Kb - Shared: Unformatted Man pages     49Kb - Shared: examples/templates/extra infoInstall bash [y]? y</PRE></BLOCKQUOTE></P><PCLASS="para">The default answer is &quot;y&quot;, to install <EMCLASS="emphasis">bash</EM>. However, if yourespond instead with the string <CODECLASS="literal">++</CODE>, <EMCLASS="emphasis">bash</EM> will beinstalled and furthermore, all default values will be used from now on without prompting.</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">Install bash [y]? <CODECLASS="userinput"><B>++</B></CODE> <KBDCLASS="keycap">[RETURN]</KBD>bash was compiled and made &quot;Ready-to-Run&quot; by        Ready-to-Run Software, Inc.Copyright (C) Free Software Foundation, Inc.GNU bash is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License as published by theFree Software Foundation; either version 1, or (at your option) anylater version.GNU bash is distributed in the hope that it will be useful, but WITHOUTANY WARRANTY; without even the implied warranty of MERCHANTABILITY orFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public Licensefor more details.                               ************************Please wait....    About To Install: bash        at /usr3/tmp/sidh        with shareable files at /usr3/tmp/sidh/share        slib-lib, sbin-bin, sspool-spool, sinclude-includeAre these correct [y]? yProceeding with install...14 directories added, 27 files installed, 0 symbolic links created.Approximately 2.3Mb installed.Notes (file, print, view, done) [view]? done</PRE></BLOCKQUOTE></P><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63066"></A>At this point, you can go to lunch and come back to find everythinginstalled in <EMCLASS="emphasis">/usr/local</EM>.</P><PCLASS="para">Another alternative is to call the installation script with the<EMCLASS="emphasis">-D</EM> option to use the defaults.  For example:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen">% <CODECLASS="userinput"><B>install.pt -D</B></CODE></PRE></BLOCKQUOTE></P><PCLASS="para">You'll still have to answer the question about your <EMCLASS="emphasis">umask</EM>,and you'll have to answer &quot;A&quot; for &quot;All&quot; to the main menu, but thenall packages will be installed without prompting.</P><PCLASS="para">Note that to run a default installation, you will need to have write permission to the default directory of <EMCLASS="emphasis">/usr/local</EM>.</P></DIV></DIV><DIVCLASS="sect2"><H3CLASS="sect2"><ACLASS="title"NAME="UPT-ART-9503-SECT-1.4">52.5.4 Unmounting the CD-ROM </A></H3><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63082"></A>When you are finished with the installation, you can unmount the CD-ROMwith the <EMCLASS="emphasis">umount</EM> command with just the mount point as the argument:</P><PCLASS="para"><BLOCKQUOTECLASS="screen"><PRECLASS="screen"># <CODECLASS="userinput"><B>/etc/umount /cdrom</B></CODE></PRE></BLOCKQUOTE></P></DIV><DIVCLASS="sect2"><H3CLASS="sect2"><ACLASS="title"NAME="UPT-ART-9503-SECT-1.5">52.5.5 What to Do if You Have Problems </A></H3><PCLASS="para"><ACLASS="indexterm"NAME="AUTOID-63092"></A>If you can't get the software to install and/or run, then you can callReady-to-Run's<SPANCLASS="link">CD support line (<ACLASS="linkend"HREF="ch52_09.htm"TITLE="Software Support from RTR ">52.9</A>)</SPAN>.</P></DIV><DIVCLASS="sect1info"><PCLASS="SECT1INFO">- <SPANCLASS="authorinitials">EP</SPAN></P></DIV></DIV><DIVCLASS="htmlnav"><P></P><HRALIGN="LEFT"WIDTH="515"TITLE="footer"><TABLEWIDTH="515"BORDER="0"CELLSPACING="0"CELLPADDING="0"><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch52_04.htm"TITLE="52.4 Quick Descriptions of What's on the Disc "><IMGSRC="gifs/txtpreva.gif"SRC="gifs/txtpreva.gif"ALT="Previous: 52.4 Quick Descriptions of What's on the Disc "BORDER="0"></A></TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><ACLASS="book"HREF="index.htm"TITLE="UNIX Power Tools"><IMGSRC="gifs/txthome.gif"SRC="gifs/txthome.gif"ALT="UNIX Power Tools"BORDER="0"></A></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172"><ACLASS="SECT1"HREF="ch52_06.htm"TITLE="52.6 Don't Have a CD-ROM Drive? "><IMGSRC="gifs/txtnexta.gif"SRC="gifs/txtnexta.gif"ALT="Next: 52.6 Don't Have a CD-ROM Drive? "BORDER="0"></A></TD></TR><TR><TDALIGN="LEFT"VALIGN="TOP"WIDTH="172">52.4 Quick Descriptions of What's on the Disc </TD><TDALIGN="CENTER"VALIGN="TOP"WIDTH="171"><ACLASS="index"HREF="index/idx_0.htm"TITLE="Book Index"><IMGSRC="gifs/index.gif"SRC="gifs/index.gif"ALT="Book Index"BORDER="0"></A></TD><TDALIGN="RIGHT"VALIGN="TOP"WIDTH="172">52.6 Don't Have a CD-ROM Drive? </TD></TR></TABLE><HRALIGN="LEFT"WIDTH="515"TITLE="footer"><IMGSRC="gifs/smnavbar.gif"SRC="gifs/smnavbar.gif"USEMAP="#map"BORDER="0"ALT="The UNIX CD Bookshelf Navigation"><MAPNAME="map"><AREASHAPE="RECT"COORDS="0,0,73,21"HREF="../index.htm"ALT="The UNIX CD Bookshelf"><AREASHAPE="RECT"COORDS="74,0,163,21"HREF="index.htm"ALT="UNIX Power Tools"><AREASHAPE="RECT"COORDS="164,0,257,21"HREF="../unixnut/index.htm"ALT="UNIX in a Nutshell"><AREASHAPE="RECT"COORDS="258,0,321,21"HREF="../vi/index.htm"ALT="Learning the vi Editor"><AREASHAPE="RECT"COORDS="322,0,378,21"HREF="../sedawk/index.htm"ALT="sed &amp; awk"><AREASHAPE="RECT"COORDS="379,0,438,21"HREF="../ksh/index.htm"ALT="Learning the Korn Shell"><AREASHAPE="RECT"COORDS="439,0,514,21"HREF="../lrnunix/index.htm"ALT="Learning the UNIX Operating System"></MAP></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -