- 论坛徽章:
- 1
|
来源:
网海拾贝
[url=javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)][/url]
[/url]
以Linux From Scratch为例,一般情况下新手建议不要这么做。
如果 LFS 分区实在很小则除外;同时了解哪些东西是不必要的、可以删除的也是有好处的。到目前为止已经安装的可执
[url=http://clk.qunsee.com/click/click.php?cpid=12&ads_id=742&pid=99000806&cid=812&url=http%3A//sohu.qutu.com/zt/summer/index.jsp&k=%u884C%u7A0B&s=http%3A//www.xland.com.cn/article/106/110/0711/25566.htm&rn=557545&v=1&ref=http%3A//www.xland.com.cn/article/106/110/list/2.htm&province=%u5C71%u4E1C&city=%u6F4D%u574A]行程
序和库文件包含大约 70 MB 不必要的调试符号,运行下面的命令删除这些符号:
strip --strip-debug /tools/lib/*
strip --strip-unneeded /tools/{,s}bin/*
上面的命令会跳过大约 20 个文件,报告不能识别这些文件格式,其中大多数是脚本而不是二进制文件。
千万不要在库文件上使用 --strip-unneeded ,否则会破坏其静态版本,这样你不得不又从头开始编译全部的工具链软件包。
删除文档还可以节省 20 MB 空间:
rm -rf /tools/{info,man}
现在 $LFS 上就有至少 850 MB 剩余空间,可以在下一章编译安装 Glibc 。如果有足够空间编译安装 Glibc ,那编译安装其它的软件包也就没有问题了。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/31/showart_702464.html |
|