使用X支持构建Emacs [英] Build Emacs with X support

查看:58
本文介绍了使用X支持构建Emacs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在64位 SUSE Linux (10.2企业版)框.我看到X11库安装在/usr/lib/X11R6中,我告诉配置脚本在该位置查找它们:

I am trying to build Emacs 24.0.94 with X support on a 64-bit SUSE Linux (10.2 Enterprise release) box. I see that the X11 libraries are installed in /usr/lib/X11R6 and I am telling the configure script to look for them in that location:

--x-includes=/usr/X11R6/include:/usr/include --x-libraries=/usr/X11R6/lib64:/usr/lib64

即使具有上述选项,configure脚本也会抱怨找不到任何X工具包:

Even with the above options, the configure script complains that it cannot find any X toolkit:

checking X11 version 6... before 6
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for librsvg-2.0 >= 2.11.0... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for Wand >= 6.2.8... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gtk+-2.0 >= 2.10 glib-2.0 >= 2.10... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for dbus-1 >= 1.0... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gio-2.0 >= 2.26... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gconf-2.0 >= 2.13... no
checking for lgetfilecon in -lselinux... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for gnutls >= 2.6.6... no
checking for gnutls_certificate_set_verify_function... no
checking for xaw3d... no
checking for libXaw... configure: error: No X toolkit could be found.
If you are sure you want Emacs compiled without an X toolkit, pass
  --with-x-toolkit=no
to configure.  Otherwise, install the development libraries for the toolkit
that you want to use (e.g. Gtk+) and re-run configure.

我该如何解决?

推荐答案

在SUSE Linux上,您通常需要编译具有GTK支持的Emacs,因此您应该将GTK头文件与X头文件(软件包 gtk2-devel一起安装)一起安装.).

On SUSE Linux you will typically want to compile Emacs with support for GTK, so you should install GTK headers along with X headers (package gtk2-devel).

为了编译具有所有现代功能的Emacs,您将需要为未在 ./configure 输出中找到的软件包安装开发软件包:rsvg,dbus,gnutls等...

In order to compile Emacs with all modern features you will want to install development packages for packages not found in your ./configure output: rsvg, dbus, gnutls, etc...

这篇关于使用X支持构建Emacs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆