使用GUI支持构建vim 7.4

时间:2015-12-07 14:15:03

标签: unix vim

我正在尝试使用GUI支持构建vim 7.4但在我的本地文件夹中的SLES dev服务器上没有成功。欢迎任何帮助或提示。

使用以下参数执行configure脚本:

./configure --prefix=/home/my_folder/bin/vim --enable-gui=gnome2 --with-gnome-lib=/usr/lib64

config.log报告以下内容:

configure:7840: checking if X11 header files can be found
 configure:7856: gcc -c -g -O2    -I/usr/local/include conftest.c >&5
 conftest.c:17:27: fatal error: X11/Intrinsic.h: No such file or directory
 #include <X11/Intrinsic.h>
 ^
 compilation terminated.
 configure:7856: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME ""
 | #define PACKAGE_TARNAME ""
 | #define PACKAGE_VERSION ""
 | #define PACKAGE_STRING ""
 | #define PACKAGE_BUGREPORT ""
 | #define PACKAGE_URL ""
 | #define UNIX 1
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_WAIT_H 1
 | #define FEAT_NORMAL 1
 | #define USE_XSMP_INTERACT 1
 | #define HAVE_LIBNSL 1
 | #define FEAT_NETBEANS_INTG 1
 | /* end confdefs.h.  */
 | #include <X11/Xlib.h>
 | #include <X11/Intrinsic.h>
 | int
 | main ()
 | {
 |
 |   ;
 |   return 0;
 | }
 configure:7860: result: no
 configure:8098: checking --enable-gui argument                                                                                                                                                            
 configure:8158: result: no GUI support
 configure:9022: checking for X11/SM/SMlib.h
 configure:9022: result: no

1 个答案:

答案 0 :(得分:2)

我不熟悉SLES,但听起来你需要X11开发包。这似乎是正确的包:

https://www.suse.com/LinuxPackages/packageRouter.jsp?product=desktop&version=11&service_pack=&architecture=i386&package_name=xorg-x11-libx11-devel

如果您在Yast中搜索xorg-x11-libX11-devel,它会出现吗?