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

📄 buildmin-6.html

📁 讲述建立最小系统流程!!入门值得一看和一学
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>How To Build a Minimal Linux System from Source Code: Glibc</TITLE> <LINK HREF="buildMin-7.html" REL=next> <LINK HREF="buildMin-5.html" REL=previous> <LINK HREF="buildMin.html#toc6" REL=contents></HEAD><BODY><A HREF="buildMin-7.html">Next</A><A HREF="buildMin-5.html">Previous</A><A HREF="buildMin.html#toc6">Contents</A><HR><H2><A NAME="s6">6. Glibc</A></H2><P>Next we want to install <CODE>init</CODE>, but like almost every program thatruns under Linux, <CODE>init</CODE> uses library functions provided by theGNU C library, glibc. So we will install that first.<P><P>Glibc is a very large and complicated package. It took 90 hours to buildon my old 386sx/16 with 8M RAM. But it only took 33 minutes on my Celeron433 with 64M. I think memory is the main issue here. If you only have 8Mof RAM (or, shudder, less!) be prepared for a long build. <P><P>The glibc install documentation recommends building in a separate directory.This enables you to start again easily, by just blowing that directory away.You might also want to do that to save yourself about 265M of disk space!<P><P>Unpack the <CODE>glibc-2.1.3.tar.gz</CODE> (or whatever version) tarball into <CODE>/mnt/target/usr/src</CODE>as usual. Now, we need to unpack the ``add-ons'' into glibc's directory. So<CODE>cd glibc-2.1.3</CODE>, and then unpack the <CODE>glibc-crypt-2.1.3.tar.gz</CODE>and <CODE>glibc-linuxthreads-2.1.3.tar.gz</CODE> tarballs there. <P><P>Now we can create the build directory, configure, make and install glibc.These are the commands I used, but read the documentation yourself andmake sure you do what is best for your circumstances.Before you do though, you might want to do a <CODE>df</CODE> command to seehow much free space you have. You can do another after you've built andinstalled glibc, to see what a space-hog it is.<P><P><PRE>        cd ..        mkdir glibc-build        ../glibc-2.1.3/configure --enable-add-ons --prefix=/usr        make        make install_root=/mnt/target install</PRE><P><P>Notice that we have yet another way of telling a package where to install.<P><HR><A HREF="buildMin-7.html">Next</A><A HREF="buildMin-5.html">Previous</A><A HREF="buildMin.html#toc6">Contents</A></BODY></HTML>

⌨️ 快捷键说明

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