LinuxSir.cn,穿越时空的Linuxsir!

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

安装vim6.1时的错误

[复制链接]
发表于 2003-5-9 01:30:52 | 显示全部楼层 |阅读模式
[root@localhost /usr/src/vim61]# patch -Np1 -i ../vim-6.1-fhs-compliant-vimrc.patch &&
> ./configure --prefix=/usr \
>    --with-features=huge &&
> make &&
> make install





mkdir objects
CC="gcc -s -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays       " srcdir=. sh ./osdef.sh
cpp0: warning: changing search order for system directory "/usr/local/include"
cpp0: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/buffer.o buffer.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/charset.o charset.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/diff.o diff.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/digraph.o digraph.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/edit.o edit.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/eval.o eval.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/ex_cmds.o ex_cmds.c

cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/ex_cmds2.o ex_cmds2.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/ex_docmd.o ex_docmd.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/ex_getln.o ex_getln.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
gcc -s -c -I. -Iproto -DHAVE_CONFIG_H   -I/usr/local/include  -march=pentium3 -O3 -pipe -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays        -o objects/fileio.o fileio.c

cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
fileio.c: In function `readfile':
fileio.c:473: `O_RDONLY' undeclared (first use in this function)
fileio.c:473: (Each undeclared identifier is reported only once
fileio.c:473: for each function it appears in.)
fileio.c: In function `readfile_charconvert':
fileio.c:2045: `O_RDONLY' undeclared (first use in this function)
fileio.c: In function `buf_write':
fileio.c:2671: `O_CREAT' undeclared (first use in this function)
fileio.c:2671: `O_WRONLY' undeclared (first use in this function)
fileio.c:2671: `O_EXCL' undeclared (first use in this function)
fileio.c:2693: `O_RDONLY' undeclared (first use in this function)
fileio.c:3205: `O_APPEND' undeclared (first use in this function)
fileio.c:3205: `O_TRUNC' undeclared (first use in this function)

fileio.c: In function `vim_rename':
fileio.c:4912: `O_RDONLY' undeclared (first use in this function)
fileio.c:4915: `O_CREAT' undeclared (first use in this function)
fileio.c:4915: `O_EXCL' undeclared (first use in this function)
fileio.c:4915: `O_WRONLY' undeclared (first use in this function)
make[1]: *** [objects/fileio.o] Error 1
make[1]: Leaving directory `/usr/src/vim61/src'
make: *** [first] Error 2
发表于 2003-5-9 08:26:38 | 显示全部楼层
这是到哪里了啊?安装的是什么系统?
 楼主| 发表于 2003-5-9 15:37:48 | 显示全部楼层
安装到BLFS中的第六章了,就时安装编辑器了
我跳过去了把emacs和nano和joe安好了,为什么vim就不要可以呢?
还有如果不安装的话有什么影响?
发表于 2003-5-9 19:29:52 | 显示全部楼层
你没有安装Xfree,这里的vim要用X,编译好了就是有X界面的。
 楼主| 发表于 2003-5-9 20:12:27 | 显示全部楼层
那就是说BLFS文档上的顺序不对了?
发表于 2003-5-9 23:15:36 | 显示全部楼层
vim 依赖于:
xfree86-4.3.0
这就是说必须要有的意思。
你该不是一直没看这个依赖于吧?
发表于 2003-5-10 02:05:40 | 显示全部楼层
hehe
blfs不是要按顺序装的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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