具体报错:
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和相应的gtk-devel文件之后,
yum install gtk3-devel.x86_64 gtk3.x86_64
yum install gtk2-devel.x86_64 gtk2.x86_64
仍然报同样的错误,
locate libXaw发现已经有库文件(yum install libXaw.x86_64或者默认已安装)
最后发现没有安装对应的devel包,libXaw-devel.x86_64
yum install libXaw-devel.x86_64 安装,
再次执行./configure此报错消失,如还有其它报错,
同理安装对应的devel库