首页 > 代码库 > 解决:Could not find debuginfo pkg for dependency package glibc-2.12-1.132.el6_5.3.i686

解决:Could not find debuginfo pkg for dependency package glibc-2.12-1.132.el6_5.3.i686

场景:

(gdb) break main
Breakpoint 1 at 0x8048417
(gdb) r
Starting program: /usr/local/src/ccode/ch11/strings


Breakpoint 1, 0x08048417 in main ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6_5.3.i686


 查看一下debuginfo-install的脚本,那现该脚本会打开一个以-debuginfo结尾的仓库,但查看/etc/yum.repos.d/CentOS-Debuginfo.repo文件,debuginfo的仓库命名为debug的。


实际上可以使用yum来进行安装:
yum --nogpgcheck --enablerepo=debug install glibc-debuginfo


解决:Could not find debuginfo pkg for dependency package glibc-2.12-1.132.el6_5.3.i686