askforhelp.html
来自「lfs3.1 从源代码构建linux。html版本。」· HTML 代码 · 共 276 行
HTML
276 行
<HTML><HEAD><TITLE>How to ask for help</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Important information"HREF="../chapter02/chapter02.html"><LINKREL="PREVIOUS"TITLE="How to install the software"HREF="../chapter02/install.html"><LINKREL="NEXT"TITLE="Download the bootscripts"HREF="../chapter02/bootscripts.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter02/install.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 2. Important information</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter02/bootscripts.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch02-askforhelp">2.4. How to ask for help</A></H1><P>If you have a problem while using this book, you'll find that mostof the people on Internet Relay Chat (IRC) and the mailing lists will bewilling to help you. You can find a list of the LFS mailing lists in<AHREF="../chapter01/maillists.html">Chapter 1 - Mailing lists and archives</A>. To assist us in helping though, you shouldmake sure that you have as much relevant information as you canavailable. This will assist in diagnosing and solving your problem.This part of the book will guide you as to which sort of informationwill be useful.</P><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN521">2.4.1. Basic Information</A></H2><P>First of all we need a brief explanation of the problem.Essential things to include are:</P><P></P><UL><LI><P>The version of the book you are using, which is 3.1</P></LI><LI><P>Which package or section you are having problems with</P></LI><LI><P>What the exact error message or symptom you are receiving is</P></LI><LI><P>If you have deviated from the book at all</P></LI></UL><P>Note that saying that you've deviated from the book doesn't meanthat we won't help you, after all, LFS is all about choice. It'll justhelp us to see the possible other causes of your problem.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN534">2.4.2. Configure problems</A></H2><P>When something goes wrong during the stage where the configurescript is run, look at the last lines of the<TTCLASS="filename">config.log</TT>. This file contains possible errorsencountered during configure which aren't always printed to the screen.Include those relevant lines if you decide to ask for help.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN538">2.4.3. Compile problems</A></H2><P>To help us find the cause of the problem, both screen output andthe contents of various files are useful. The screen output from boththe ./configure script and when make is run can be useful. Don'tblindly include the whole thing but on the other hand, don't include toolittle. As an example, here is some screen output from make:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">gcc -DALIASPATH=\"/mnt/lfs/usr/share/locale:.\" -DLOCALEDIR=\"/mnt/lfs/usr/share/locale\" -DLIBDIR=\"/mnt/lfs/usr/lib\" -DINCLUDEDIR=\"/mnt/lfs/usr/include\" -DHAVE_CONFIG_H -I. -I. -g -O2 -c getopt1.cgcc -g -O2 -static -o make ar.o arscan.o commands.o dir.o expand.o file.o function.o getopt.o implicit.o job.o main.o misc.o read.o remake.o rule.o signame.o variable.o vpath.o default.o remote-stub.o version.o opt1.o -lutil job.o: In function `load_too_high':/lfs/tmp/make-3.79.1/job.c:1565: undefined reference to `getloadavg'collect2: ld returned 1 exit statusmake[2]: *** [make] Error 1make[2]: Leaving directory `/lfs/tmp/make-3.79.1'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/lfs/tmp/make-3.79.1'make: *** [all-recursive-am] Error 2</PRE></FONT></TD></TR></TABLE></P><P>In this case, many people just include the bottom section where itsays <TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">make [2]: *** [make] Error 1</PRE></FONT></TD></TR></TABLE> and onwards. Thisisn't enough for us to diagnose the problem because it only tells usthat <EM>something</EM> went wrong, not<EM>what</EM> went wrong. The whole section asquoted above is what should be included to be helpful, because itincludes the command that was executed and the command's errormessage(s).</P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter02/install.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter02/bootscripts.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">How to install the software</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter02/chapter02.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Download the bootscripts</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?