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

📄 glibc.html

📁 lfs3.1 从源代码构建linux。html版本。
💻 HTML
字号:
<HTML><HEAD><TITLE>Installing Glibc-2.2.4</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Installing basic system software"HREF="../chapter06/chapter06.html"><LINKREL="PREVIOUS"TITLE="Entering the chroot'ed environment"HREF="../chapter06/chroot.html"><LINKREL="NEXT"TITLE="Creating devices (Makedev-1.4)"HREF="../chapter06/makedev.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="../chapter06/chroot.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 6. Installing basic system software</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter06/makedev.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch06-glibc">6.5. Installing Glibc-2.2.4</A></H1><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">Estimated build time:           46 minutesEstimated required disk space:  350 MB</PRE></FONT></TD></TR></TABLE><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN1733">6.5.1. Installation of Glibc</A></H2><P>Before starting to install glibc, you must cd into theglibc-2.2.4 directory and unpack glibc-linuxthreads insidethe glibc-2.2.4 directory, not in /usr/src as you normallywould do.</P><P>This package is known to behave badly when you have changed its defaultoptimization flags (including the -march and -mcpu options). Glibc is best left alone, so we recommend you unsetting CFLAGS, CXXFLAGS and othersuch variables/settings that would change the default optimization thatit comes with.</P><P>Install Glibc by running the following commands:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>mknod -m 0666 /dev/null c 1 3 &#38;&#38;touch /etc/ld.so.conf &#38;&#38;cp malloc/Makefile malloc/Makefile.backup &#38;&#38;sed 's%\$(PERL)%/usr/bin/perl%' malloc/Makefile &#62; tmp~ &#38;&#38;mv tmp~ malloc/Makefile &#38;&#38;cp login/Makefile login/Makefile.backup &#38;&#38;sed 's/root/0/' login/Makefile &#62; tmp~ &#38;&#38;mv tmp~ login/Makefile &#38;&#38;mkdir ../glibc-build &#38;&#38;cd ../glibc-build &#38;&#38;../glibc-2.2.4/configure --prefix=/usr \

⌨️ 快捷键说明

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