CentOS 6.2 GNU gdb(GDB)Red Hat Enterprise Linux(7.2-50.el6)
当我使用GDB调试一个简单的c代码时,我看到以下警告:
Missing separate debuginfos,use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686
1。搜索SO
2。 #yum install glibc
3> #debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc -4.4.6-3.el6.i686
事实上,当我安装这些RPM一个接一个,我只是意识到,他们已经安装。
[root@localhost Excluded]# rpm -ivh glibc-2.12-1.47.el6_2.9.i686.rpm Preparing... ########################################### [100%] package glibc-2.12-1.47.el6_2.9.i686 is already installed [root@localhost Excluded]# ls *.rpm glibc-2.12-1.47.el6_2.9.i686.rpm libgcc-4.4.6-3.el6.i686.rpm [root@localhost Excluded]# rpm -ivh libgcc-4.4.6-3.el6.i686.rpm Preparing... ########################################### [100%] package libgcc-4.4.6-3.el6.i686 is already installed [root@localhost Excluded]# rpm -ivh libstdc++-4.4.6-3.el6.i686.rpm warning: libstdc++-4.4.6-3.el6.i686.rpm: Header V4 DSA/SHA1 Signature,key ID 192a7d7d: NOKEY Preparing... ########################################### [100%] package libstdc++-4.4.6-3.el6.i686 is already installed file /usr/lib/libstdc++.so.6.0.13 from install of libstdc++-4.4.6-3.el6.i686 conflicts with file from package libstdc++-4.4.6-3.el6.i686
为什么GDB找不到?
问题>我必须担心这个问题吗?如果没有,如何关闭?如果是,如何解决呢?
谢谢
debuginfo-install是yum-utils的命令,所以
> yum install yum-utils> debuginfo-install glibc>如果警告仍然存在,编辑/etc/yum.repos.d/CentOS-Debuginfo.repo,设置enabled = 1