LinuxSir.cn,穿越时空的Linuxsir!

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

完成LFS-5.1.1后的所有shell scripts和遇到的问题,供参考

[复制链接]
发表于 2004-7-28 10:08:19 | 显示全部楼层 |阅读模式
发表于 2004-7-28 12:52:05 | 显示全部楼层
帐号密码?
 楼主| 发表于 2004-7-28 14:17:59 | 显示全部楼层
user:upload
password: upload
发表于 2004-7-28 17:59:41 | 显示全部楼层
upload只能上传,不能下载。
楼主,你那几个文件很小,完全可以作为附件传上来。
 楼主| 发表于 2004-7-28 18:18:56 | 显示全部楼层
OK,谢谢提醒!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-7-29 09:18:19 | 显示全部楼层
非常感谢!先收了 :)
 楼主| 发表于 2004-7-31 13:16:10 | 显示全部楼层
NOTES:
0. This week, I have build two LFS-5.1.1 systems on
                a) VMware 4.5.2 build 8848 with Slackware 10 installed, and
                b) a legacy AMD K6-2/96M RAM/6.4G, with Mandrake 7.0(Air) installed.
   Using the shell scripts based on the LFS official book.

1. In the Mandrake, the 'su - lfs' in the end of stage1/stage1.enter
   hangs because of the 'exec /bin/bash ...' in the ~/.bash_profile,
   I use 'su lfs' instead. But this is not a problem if the host system is
   Slackware. Possible reason: The bash has a version number 2.03 in the
   Mandrake.

2. In building ./stage1/08-gcc, the gcc-build/gcc/Makefile must be patched by
                catalogs="$(CATALOGS)"; for cat in $$catalogs; do \ ....
   in the target 'install-po'. This is caused by empty CATALOGS. This
   problem goes away in the ./stage2/06-gcc. I have made a patch
   'gcc-3.3.3-empty-catatlogs.patch' in the LFS-5.1.1 directory. YOU MUST
   DO THIS PATCH MANUALLY!  

3. In building ./stage2/06-gcc, 'make -k check'  gets some 'FAIL's because of
   some compilations timeout in the Mandrake. It seems no harm now.

4. In building ./stage2/24-perl, 'make test' hangs on testing Benchmark module.
   Just type 'Ctrl-C' to stop testing if you will.

5. stage1/091-wget is not part of official LFS document. It's used by
   stage1/{10,11, ...} packages and stage2. The wget is needed because
   I don't download all the packages and patches in advance.

5. LFS ID: 13552. I like the LFS system which is I'm working on, more than this ID.


HOWTO:
0.        As root, export LFS_HOME and LFS_VERSION. The LFS_HOME is the directory where
        LFS-$LFS_VERSION resides in. Edit the lfs.conf to change the parameters.

       
1.         [lfs.prepare] -> stage1/stage1.enter -> stage1/stage1.build
        stage2/stage2.enter -> [stage2/stage2.prebuild] -> stage2/stage2.build
        where the lfs.prepare and stage2/stage2.prebuild should be run ONLY once.

3.        After running stage1/stage1.build, you may go to sleep or wait it to finish.
        If you have a decent machine not like my Mandrake, stage1 is very fast.
        Stage2 takes much more time than stage1 because of 'make test' or 'make -k check'.
        If you are brave enough, you can comment it out.
          In fact, after finishing stage1/08-gcc or stage2/06-gcc, everything following
        should be OK.

4.        SUGGESTION:
        If you get 'fail's or 'error's in building Binutils, Glibc or GCC, it's better to
        restart the whole stage1 or stage2 than just rebuilding Binutils, Glibc or GCC just
        failed.


Hope This Helps, Enjoy LFS!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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