LinuxSir.cn,穿越时空的Linuxsir!

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

请教:关于在配置lfs6.2时 安装gcc编译和安装问题?

[复制链接]
发表于 2008-11-18 09:35:11 | 显示全部楼层 |阅读模式
我用的宿主系统是ubuntu,内核版本2.6.27-7-generic, 在做到5.4. GCC-4.0.3 - 第一遍时,在为编译配置参数时,../gcc-4.0.3/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared  --enable-languages=c
先是过不去 ,后来在gcc-4.0.3中的configure文件中加了一句 CC="gcc -B/usr/bin" ,就可以生成makefile ,   make bootstrap可以进行,但是make install 不能通过, 错误信息为
/bin/sh ../gcc-4.0.3/mkinstalldirs /tools /tools
mkdir -p -- /tools /tools
mkdir: cannot create directory `/tools': File exists
mkdir: cannot create directory `/tools': File exists
make: *** [installdirs] Error 1
发表于 2008-11-18 15:17:17 | 显示全部楼层
。。。知道这个/tools是什么么?

你的目录不对啊。。。
回复 支持 反对

使用道具 举报

发表于 2008-11-18 15:34:04 | 显示全部楼层
Post by benbenr;1910263
。。。知道这个/tools是什么么?

你的目录不对啊。。。


他的目录哪里不对,给说说?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-12 09:10:16 | 显示全部楼层
多谢阿 问题解决了 已经完成LFS !
回复 支持 反对

使用道具 举报

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

本版积分规则

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