📄 hostreqs.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=gb2312" />
<title>
4. Host System Requirements
</title>
<link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1" />
<link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print" />
</head>
<body id="lfs" class="6.1">
<div class="navheader">
<div class="headertitles">
<h4>
Linux From Scratch - Version 6.1
</h4>
<h3>
序言
</h3>
</div>
<ul class="headerlinks">
<li class="prev">
<a accesskey="p" href="prerequisites.html" title="Prerequisites">后退</a>
<p>
Prerequisites
</p>
</li>
<li class="next">
<a accesskey="n" href="typography.html" title="Typography">前进</a>
<p>
Typography
</p>
</li>
<li class="up">
<a accesskey="u" href="preface.html" title="Preface">上一级</a>.
</li>
<li class="home">
<a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>
</li>
</ul>
</div>
<div class="sect1" lang="zh_cn" xml:lang="zh_cn">
<div class="titlepage">
<h1 class="sect1">
4. 宿主系统要求
</h1>
</div>
<p>
宿主系统必须运行的是 GCC-3.0 以上版本编译的 2.6.2 或者更新版本的内核。这样的高要求有主要有两个原因:第一,如果宿主系统的内核不是用 GCC-3.0 以上版本编译的,NPTL(本地 POSIX 线程库)的测试程序会出现段错误;第二,使用 Udev 需要 2.6.2 或者更新版本的内核,Udev 通过读取 <tt class="systemitem">sysfs</tt> 文件系统动态的创建设备,但是大多数内核驱动程序直到最近才实现对这个文件系统的支持,我们必须确保正确的创建了所有关键系统设备。
</p>
<p>
为了确定宿主系统的内核是否满足上述要求,运行下面的命令:
</p>
<pre class="userinput"><kbd class="command">cat /proc/version</kbd></pre>
<p>
产生的输出类似于这样:
</p>
<pre class="screen"><tt class="computeroutput">Linux version 2.6.2 (user@host) (gcc version 3.4.0) #1
Tue Apr 20 21:22:18 GMT 2004</tt></pre>
<p>
如果上面命令的输出结果显示宿主系统的内核版本低于 2.6.2 或者不是用 GCC-3.0 以上版本编译的,您需要用符合要求的编译器重新编译一个2.6.2版本以上的内核,然后用新编译的内核启动宿主系统。关于编译内核和配置引导管理器(假定宿主系统使用 GRUB)的指导,请查看<a href="../chapter08/chapter08.html">Chapter 8</a>。使用编译器和编译内核应当是你使用这本书的基本功,如果你觉得这两件事对你很困难,那么现在还不是你使用这本书的最佳时机。
</p>
</div>
<div class="navfooter">
<ul>
<li class="prev">
<a accesskey="p" href="prerequisites.html" title="Prerequisites">后退</a>
<p>
Prerequisites
</p>
</li>
<li class="next">
<a accesskey="n" href="typography.html" title="Typography">前进</a>
<p>
Typography
</p>
</li>
<li class="up">
<a accesskey="u" href="preface.html" title="Preface">上一级</a>.
</li>
<li class="home">
<a accesskey="h" href="../index.html" title="Linux From Scratch - Version 6.1">回首页</a>.
</li>
</ul>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -