编译错误
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
# include <gnu/stubs-32.h>
^
compilation terminated.
make: *** [megactl.o] Error 1
解决方法
查询对应库提供的软件
[root@gx-yun-084044 src]# yum whatprovides *stubs-32.h
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
glibc-devel-2.17-157.el7.i686 : Object files for development using standard C libraries.
Repo : centos7
Matched from:
Filename : /usr/include/gnu/stubs-32.h
剩下就是安装软件了
[root@gx-yun-084044 src]# yum install -y glibc-devel-2.17-157.el7.i686
本文介绍了如何解决因找不到gnu/stubs-32.h文件导致的编译错误。通过使用yum命令查询并安装对应的glibc-devel包成功解决了该问题。
1273

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



