redhat安装vim的时候出错,有熟悉的吗?帮忙看下。
redhat吧
全部回复
仅看楼主
level 7
sixth_T_liu 楼主
前几天重新装的redhat没有vim我用着不习惯今天就准备装个vim但是弄了一上午始终不能解决报错。
我是这样安装的:首先我下载了vim软件包vim-7.4.tar然后我解压进入vim74文件夹。然后打安装命令:./configure 这没有错。下一步打:make的时候就报错了。
我在网上搜了很久有人说是:没有使用 --disable-selinux,但是这个怎么使用呢?
下面是make报错:
os_unix.c:45:30: error: selinux/selinux.h: No such file or directory
os_unix.c: In function ‘mch_copy_sec’:
os_unix.c:2615: error: ‘security_context_t’ undeclared (first use in this function)
os_unix.c:2615: error: (Each undeclared identifier is reported only once
os_unix.c:2615: error: for each function it appears in.)
os_unix.c:2615: error: expected ‘;’ before ‘from_context’
os_unix.c:2616: error: expected ‘;’ before ‘to_context’
os_unix.c:2618: error: ‘from_context’ undeclared (first use in this function)
os_unix.c:2631: error: ‘to_context’ undeclared (first use in this function)
make[1]: *** [objects/os_unix.o] Error 1
2014年02月12日 06点02分 1
level 7
sixth_T_liu 楼主
????????????????
2014年02月12日 06点02分 2
level 7
sixth_T_liu 楼主
没人知道吗?
2014年02月12日 06点02分 3
level 12
vim 其实不需要那么麻烦啊,你用rpm包装多简单,你说的加--disable-selinux 是在编译的时候,就是./configure 的后面加上这个选项
2014年02月14日 02点02分 4
level 10
做实验的话把selinux关掉吧,加上那个选项!但是为什么不用rpm包你!多简单。。
2014年02月20日 11点02分 5
1