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
我是这样安装的:首先我下载了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