具体报错:
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库
本文讲述了在配置Emacs时遇到的关于找不到X toolkit的问题,通过一步步排查和安装libXaw-devel-devel包,解决了编译过程中出现的错误。读者将学到如何识别并解决类似开发环境配置中的技术问题。
2543

被折叠的 条评论
为什么被折叠?



