构建emacs 25.2失败,并显示“ gcc:错误:libgomp.spec:无此类文件或目录”。 [英] Building emacs 25.2 fails with "gcc: error: libgomp.spec: No such file or directory"

查看:392
本文介绍了构建emacs 25.2失败,并显示“ gcc:错误:libgomp.spec:无此类文件或目录”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Oracle Linux 6.9(类似于Centos)上,我尝试构建GNU Emacs 25.2。 make 失败

On Oracle Linux 6.9 (similar to Centos) I try to build GNU Emacs 25.2. make fails on

CCLD     temacs

with

gcc: error: libgomp.spec: No such file or directory

构建Emacs 25.3时发生相同的问题。

Same problem occurs when building Emacs 25.3.

奇怪的是:六个月前,我确实在同一台计算机上构建了Emacs 25.2,并且构建良好,但是现在完全相同的tarball给出了上述错误。

The strange things is: I did build Emacs 25.2 six months ago on the same machine and it built fine, but now the exact same tarball gives the above mentioned error.

任何想法是什么原因以及如何解决?

Any idea what causes this and how to fix it?

推荐答案

感谢 @lawlist 在评论中的探测,我在正确的轨道上可以找到问题所在:

Thanks to @lawlist's probing in the comments I got on the right track to pinpoint the problem:

在最近几个月安装了gcc V6,该版本似乎没有包含 libgomp.spec 所需的软件包。

During the last couple of months V6 of gcc was installed and this version doesn't seem to have the needed packages containing libgomp.spec.

我的解决方案是切换回gcc的V4,一切顺利进行。

My solution was to switch back to V4 of gcc and everything went smoothly through.

这篇关于构建emacs 25.2失败,并显示“ gcc:错误:libgomp.spec:无此类文件或目录”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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