LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 868|回复: 1

关于中文LFS和英文LFS的中的疑问?

[复制链接]
发表于 2010-2-7 11:54:56 | 显示全部楼层 |阅读模式
LFS6.5 GCC 第一次编译:make install
错误
lfs:/mnt/lfs/sources/gcc-build$ lfs:/mnt/lfs/sources/gcc-build$ make install
bash: lfs:/mnt/lfs/sources/gcc-build$: No such file or directory
lfs:/mnt/lfs/sources/gcc-build$ make[1]: Entering directory `/mnt/lfs/sources/gcc-build'
> /bin/sh ../gcc-4.4.1/mkinstalldirs /tools /tools
> /bin/sh: line 3: cd: ./fixincludes: No such file or directory
> make[1]: *** [install-fixincludes] Error 1
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
> make: *** [install] Error 2


在编译中 有很多地方与中文《手把手教你如何建立自己的Linux系统(LFS速成手册)》或LFS 不同。

比如:
手把手教你如何建立自己的Linux系统(LFS速成手册)

CC="gcc -B/usr/bin/" ../binutils-2.17/configure --prefix=/tools --disable-nls --disable-werror
make
make install
make -C ld clean
make -C ld LIB_PATH=/tools/lib
cp -v ld/ld-new /tools/bin


但是LFS 6.5中没有
make -C ld clean
make -C ld LIB_PATH=/tools/lib
cp -v ld/ld-new /tools/bin
。。



还有在GCC4.1.2中
tar xvf /lfs-sources/gcc-4.1.2.tar.bz2
mkdir -v gcc-build
cd gcc-build
CC="gcc -B/usr/bin/" ../gcc-4.1.2/configure --prefix=/tools \
    --with-local-prefix=/tools --disable-nls \
    --enable-shared --enable-languages=c
make bootstrap
make install
ln -vs gcc /tools/bin/cc
cd ..
rm -rf gcc-build
rm -rf gcc-4.1.2

但是在LFS中根本没有 “make bootstrap” 也没有ln -vs gcc /tools/bin/cc。。

请问到底是怎么回事?
发表于 2010-2-7 12:33:57 | 显示全部楼层
不用版本的软件其编译方式不一定相同,gcc-4.2 以後默认会 bootstrap,所以 make 跟 make bootstrap 是一样的

《手把手》是 6.2 左右的时候写的,内容跟新版有不同不足为奇
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表