LinuxSir.cn,穿越时空的Linuxsir!

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

从另一个系统给主系统安装编译环境...都要装些什么呢

[复制链接]
发表于 2005-2-7 12:03:01 | 显示全部楼层 |阅读模式
我LFS的总总问题估计就是由于编译环境的先天性缺陷造成的,准备从新安装个完整的编译环境

现在越修越糟,连内核都编译不了了..

  1. -su-2.05b# make menuconfig
  2.   HOSTCC  scripts/basic/docproc
  3. In file included from /usr/include/bits/sigcontext.h:28,
  4.                  from /usr/include/signal.h:313,
  5.                  from /usr/include/sys/wait.h:30,
  6.                  from scripts/basic/docproc.c:41:
  7. /usr/include/asm/sigcontext.h:79: error: parse error before '*' token
  8. /usr/include/asm/sigcontext.h:82: error: parse error before '}' token
  9. make[1]: *** [scripts/basic/docproc] 错误 1
  10. make: *** [scripts_basic] 错误 2
复制代码

看看该弄些什么呢...
 楼主| 发表于 2005-2-7 12:30:37 | 显示全部楼层
初步解决

看了LFS文档...linux-kernel-libc..那段,在kernel目录里执行



  1. 6.9.1. Installation of Linux-Libc-Headers

  2. Install the header files:

  3. cp -R include/asm-i386 /usr/include/asm
  4. cp -R include/linux /usr/include

  5. Assure that all the headers are owned by root:

  6. chown -R root:root /usr/include/{asm,linux}

  7. And make sure all the users can read the headers:

  8. find /usr/include/{asm,linux} -type d -exec chmod 755 {} \;
  9. find /usr/include/{asm,linux} -type f -exec chmod 644 {} \;

复制代码


就可以编译内核了...老天保佑,不要失败....
回复 支持 反对

使用道具 举报

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

本版积分规则

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