LinuxSir.cn,穿越时空的Linuxsir!

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

静态编译gcc-3.2通不过,--prefix=/static明明就是笔误

[复制链接]
发表于 2002-12-18 21:30:44 | 显示全部楼层 |阅读模式
我都试了好几遍了,都是这样的错误:
Configuring gcc...
loading cache ../config.cache
checking LIBRARY_PATH variable... contains current directory
configure: error:
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
Configure in /mnt/lfs/static/src/gcc-build/gcc failed, exiting.
发表于 2002-12-18 21:53:10 | 显示全部楼层
执行echo $LIBRARY_PATH
看看结果是什么。
 楼主| 发表于 2002-12-18 21:55:25 | 显示全部楼层

echo $LIBRARY_PATH

/usr/local/kde/lib:/lib:
发表于 2002-12-18 22:03:00 | 显示全部楼层
unset $LIBRARY_PATH 试试
发表于 2002-12-18 22:03:25 | 显示全部楼层

我也碰到过这个问题

--prefix=/static不是笔误
你注意一下LIBRARY_PATH环境变量里可能有个.
我用redhat8.0编译时就有这个问题.
重新 export LIBRARY_PATH后解决.
 楼主| 发表于 2002-12-18 22:18:46 | 显示全部楼层

没用啊

echo $LIBRARY_PATH

/usr/local/kde/lib:/lib:
直接打export LIBRARY_PATH?
 楼主| 发表于 2002-12-18 22:31:56 | 显示全部楼层

搞不懂根本就没有/static目录

怎么prefix=/static,我是在gentoo下做的
发表于 2002-12-18 22:35:27 | 显示全部楼层

干脆unset LIBRARY_PATH算了

干脆unset LIBRARY_PATH算了
应该没有问题的
发表于 2002-12-18 22:42:15 | 显示全部楼层

Re: 搞不懂根本就没有/static目录

最初由 Debentoo Gao 发布
怎么prefix=/static,我是在gentoo下做的

用prefix=/static是表示将程序安装在$LFS/static目录下,以后用到的prefix=/usr表示程序将安装在/usr目录下。
 楼主| 发表于 2002-12-18 22:43:12 | 显示全部楼层

总算过了,谢谢 :)

这东东真有点莫明其妙
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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