我正嘗試在64位Suse Linux(10.2企業版)框中構建帶有X支持的emacs 24.0.94。我看到X11庫安裝在/ usr/lib目錄/ X11R6和我說的是配置腳本來尋找他們在該位置:使用X支持構建emacs
--x-includes=/usr/X11R6/include:/usr/include --x-libraries=/usr/X11R6/lib64:/usr/lib64
即使在上述選項中,配置腳本出錯,它不能找到任何Xtoolkit:
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.
請問有人可以告訴我可能是什麼問題?
你想使用哪個工具包?你有它正確安裝?哪裏?如果你不知道,你可能想要與GTK一起去。 – tripleee 2012-03-13 05:47:47
是的,X11是顯示功能的最低級別。爲了與Windows並行繪圖,可以將其視爲處理圖形卡驅動程序和在屏幕上繪製斑點所需的一些功能。在該層之上,您需要一些提供按鈕和菜單的庫以及其他所有進入圖形應用程序的東西,並且您錯過了該部分。 Gtk +可能就是你想要的那個,所以正如其他人所說的那樣,只需安裝gtk2-devel(或者其他所謂的?),並且構建應該可以工作。 – deong 2012-03-13 09:57:47
謝謝。請參閱下面關於本地安裝emacs/gtk2-devel – Raj 2012-03-13 10:13:13