LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: NeoAnderson

在BLFS中编译vim6.1时出错

[复制链接]
发表于 2003-6-9 23:44:51 | 显示全部楼层
对啊,应该是644.
 楼主| 发表于 2003-6-9 23:53:34 | 显示全部楼层
我检查了,没有错,全部都是644,可是仍然不行。
发表于 2003-6-10 00:22:59 | 显示全部楼层
checking for ANSI C header files... yes
关键是这一句。你看一下,在config.log里面:
configure:4531: gcc -E -I/usr/local/include conftest.c >/dev/null 2>conftest.out
cpp0: warning: changing search order for system directory "/usr/local/include"
cpp0: warning: as it has already been specified as a non-system directory
configure: failed program was:
#line 4523 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
这里出错了。而我的config.log里面:
configure:4518: checking for ANSI C header files
configure:4531: gcc -E  -I/usr/local/include conftest.c >/dev/null 2>conftest.out
没有出错。你是在chroot下?
 楼主| 发表于 2003-6-10 00:24:28 | 显示全部楼层
不是,我是在编译好的LFS下。
 楼主| 发表于 2003-6-10 00:26:51 | 显示全部楼层
我的/usr/local是symlink到/usr的
发表于 2003-6-10 00:29:59 | 显示全部楼层
??为什么这样做?先取消了看看?
 楼主| 发表于 2003-6-10 01:11:35 | 显示全部楼层
本来是没有这样的,本来有个/usr/local,但里面所有的文件夹都是空的,然后我在外国的新闻组问了之后有人就叫我试一下这样做,所以我就symlink。
发表于 2003-6-10 03:31:10 | 显示全部楼层
空的是正常的,这里在装好LFS以后是一个文件都没有的。在BLFS里面谈到了/usr与/usr/local的争论,LFS和BLFS都是用/usr,而把/usr/local留给用户自己用。但不知道会不会影响编译,从来没有试过啊。你把/usr/local删了试试?会不会有的文件已经装到/usr/local下了?
 楼主| 发表于 2003-6-10 08:57:30 | 显示全部楼层
我刚刚试着把/usr/local删了,但是没有任何改变。如果我想重新建立回/usr/local怎么样做?
 楼主| 发表于 2003-6-10 15:17:29 | 显示全部楼层
非常感谢tram的帮助,我将vim61/src/auto/configure文件中的第1164到1170行删掉之后编译就顺利通过了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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