“LINUX就是这个范”有一章专门介绍了Linux的构建,过程详细,很有意思。结合这方面的资料简要汇集一下
LFS这个站点提供了从源代码构建一个Linux的详细步骤
书http://archive.linuxfromscratch.org/lfs-museum/stable/LFS-BOOK-7.5.pdf
包wget-list经验证的包地址
http://archive.linuxfromscratch.org/lfs-museum/stable/wget-list
有的包拿不到的话,参考这个http://www.linuxfromscratch.org/lfs/packages.html
如ftp://ftp.lfs-matrix.net/pub/lfs/lfs-packages/lfs-packages-7.5.tar
http://ftp.lfs-matrix.net/pub/lfs/lfs-packages/lfs-packages-7.5.tar
这些是完整的包,找到
脚本http://archive.linuxfromscratch.org/lfs-museum/stable/lfs-bootscripts-20130821.tar.bz2
Ubuntu10.0.464位实战HOST机器检查依赖的内容如下:
bash,version4.1.5(1)-release
/bin/sh->/bin/dash
Binutils:(GNUBinutilsforUbuntu)2.20.1-system.20100303
bison(GNUBison)2.4.1
/usr/bin/yacc->/usr/bin/bison.yacc
bzip2,Version1.0.5,10-Dec-2007.
Coreutils:7.4
diff(GNUdiffutils)2.8.1
find(GNUfindutils)4.4.2
GNUAwk3.1.6
/usr/bin/awk->/usr/bin/gawk
gcc(Ubuntu4.4.3-4ubuntu5.1)4.4.3
g++(Ubuntu4.4.3-4ubuntu5.1)4.4.3
(GNUlibc)2.19
GNUgrep2.5.4
gzip1.3.12
Linuxversion2.6.32-38-generic(buildd@allspice)(gccversion4.4.3(Ubuntu4.4.3-4ubuntu5))#83-UbuntuSMPWedJan411:12:07UTC2012
m4(GNUM4)1.4.13
GNUMake3.81
patch2.6
Perlversion='5.10.1';
GNUsedversion4.2.1
tar(GNUtar)1.22
xz(XZUtils)4.999.9beta
gmpmpfrmpc库需要安装
具体的脚本如下:
#!/bin/bash
tarxfpkg/gawk-4.1.0.tar.xz
pushdgawk-4.1.0
./configure
make
sudomakeinstall
gawk--version
popd
tarxfpkg/xz-5.0.5.tar.xz
pushdxz-5.0.5
./configure
make
sudomakeinstall
xz--version
popd
#xz进行了ldconfig,第二次独立执行
ldconfig
tarxfpkg/gmp-5.1.3.tar.xz
pushdgmp-5.1.3
./configure--PRefix=/usr
make
makecheck
sudomakeinstall
popd
ldconfig
tarxfpkg/mpfr-3.1.2.tar.xz
pushdmpfr-3.1.2
./configure--prefix=/usr
make
makecheck
sudomakeinstall
popd
ldconfig
tarxfpkg/mpc-1.0.2.tar.gz
pushdmpc-1.0.2
./configure--prefix=/usr
make
makecheck
sudomakeinstall
popd
ldconfig
加新的磁盘fdsik/dev/sdb
依次建立几个分区n
分区类型t82--LinuxSwap83--LINUX
mkfs-v-text4/dev/sdb1
mkswap/dev/sdb2
http://blog.csdn.net/mirage1993/article/category/2450253
http://blog.csdn.net/mirage1993/article/details/38356559 建立新分区并挂载http://blog.csdn.net/mirage1993/article/details/38364823
参考信息LSB/FHShttp://www.linuxfoundation.org/
POSIX
新闻热点
疑难解答