LinuxSir.cn,穿越时空的Linuxsir!

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

救命,glibc装不了啊

[复制链接]
发表于 2002-12-13 15:46:42 | 显示全部楼层 |阅读模式
collect2: cannot find `ld'
make[2]: *** [/usr/src/glibc-build/csu/crt1.o] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.2.5/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.2.5'
make: *** [all] Error 2
发表于 2002-12-13 15:57:00 | 显示全部楼层
看看你的/usr/bin下有没有ld这个文件
发表于 2002-12-13 16:03:10 | 显示全部楼层
Binutils
要有这个包,重新把这个包装一编。ld在这个包里面。
还有就是PATH要对。
 楼主| 发表于 2002-12-13 16:09:21 | 显示全部楼层

可是

明明/usr/bin/ld存在
#ld
也有回应


我用的是LFS3.3
发表于 2002-12-13 16:23:31 | 显示全部楼层
你是在那一阶段出的问题?
 楼主| 发表于 2002-12-13 16:32:03 | 显示全部楼层

就是chroot后

安装基本的系统软件
发表于 2002-12-13 16:42:20 | 显示全部楼层
那么在你的$LFS/usr/bin下有没有ld这个程序?
发表于 2002-12-13 16:44:55 | 显示全部楼层
我有一个问题,就是你在编译哪个包得时候加了CPU得优化参数。
也就是CLFAGS等等。

有时候加错参数会有莫名其妙得东西出来。闹鬼一样阿~~~~~~~

今天13号黑色星期五,还是南京大屠杀纪念日。

~~~~不是很吉祥得日子哦。
发表于 2002-12-13 23:50:47 | 显示全部楼层
这里有一个和你问题一样的,有人说到一个原因:
does your $LFS/root/.bash_profile contain "export PATH" and not just
"ATH="? Without the export PATH, a previously set $PATH variable will not
be passed on to a sub-shell like ./configure (it runs in it's own shell due
to the #!/bin/sh as the first line in it).
你看看你的.bash_profile里有没有export PATH,如果没有,在/etc/profile里有也可以的。
发表于 2002-12-14 04:09:56 | 显示全部楼层
但是他说在#下面打LD是可以的。这样也可能是PATH的问题么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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