解決: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
最後更新:2017-04-03 05:40:04