gdb调试时的问题Missing separate debuginfos, use: debuginfo-install glibc-XXX

在CentOS6.4下使用gdb进行调试的时候,

使用bt(breaktrace)命令时,会弹出如下的提示:

头一天提示:

Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.i686

问题没解决,第二天提示:

Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.i686

但是直接按提示使用
debuginfo-install glibc-2.12-1.132.el6.i686 去安装的时候会报如下的信息:

Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirrors.yun-idc.com
 * extras: mirrors.yun-idc.com
 * updates: mirrors.yun-idc.com
Checking for new repos for mirrors
No debuginfo packages available to install

使用yum来进行安装:

却提示:Error Downloading Packages:
  glibc-debuginfo-common-2.12-1.132.el6.i686: failure: glibc-debuginfo-common-2.12-1.132.el6.i686.rpm from debug: [Errno 256] No more mirrors to try.
glibc-debuginfo
后来搜索发现需要先修改“/etc/yum.repos.d/CentOS-Debuginfo.repo”文件的enable=1
文件内容如下:
    # CentOS-Debug.repo
    #
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #  

    # All debug packages from all the various CentOS-5 releases
    # are merged into a single repo, split by BaseArch
    #
    # Note: packages in the debuginfo repo are currently not signed
    #  

    [debug]
    name=CentOS-6 - Debuginfo
    baseurl=http://debuginfo.centos.org/6/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6
    enabled=1  
保存之后,使用 debuginfo-install glibc-2.12-1.132.el6.i686 安装,输出如下:
    Loaded plugins: fastestmirror, refresh-packagekit
    Loading mirror speeds from cached hostfile
     * base: mirrors.yun-idc.com
     * extras: mirrors.yun-idc.com
     * updates: mirrors.yun-idc.com
    debug                                                                                                                                 | 2.5 kB     00:00
    Checking for new repos for mirrors
    --> Running transaction check
    ---> Package glibc-debuginfo.i686 0:2.12-1.132.el6 will be installed
    --> Processing Dependency: glibc-debuginfo-common = 2.12-1.132.el6 for package: glibc-debuginfo-2.12-1.132.el6.i686
    ---> Package nss-softokn-debuginfo.i686 0:3.12.9-11.el6 will be installed
    ---> Package yum-plugin-auto-update-debug-info.noarch 0:1.1.30-17.el6_5 will be installed
    --> Running transaction check
    ---> Package glibc-debuginfo-common.i686 0:2.12-1.132.el6 will be installed
    --> Finished Dependency Resolution  

    Dependencies Resolved  

    =============================================================================================================================================================
     Package                                                Arch                        Version                               Repository                    Size
    =============================================================================================================================================================
    Installing:
     glibc-debuginfo                                        i686                        2.12-1.132.el6                        debug                         10 M
     nss-softokn-debuginfo                                  i686                        3.12.9-11.el6                         debug                        1.0 M
     yum-plugin-auto-update-debug-info                      noarch                      1.1.30-17.el6_5                       updates                       22 k
    Installing for dependencies:
     glibc-debuginfo-common                                 i686                        2.12-1.132.el6                        debug                        7.5 M  

    Transaction Summary
    =============================================================================================================================================================
    Install       4 Package(s)  

    Total size: 19 M
    Total download size: 8.6 M
    Installed size: 93 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/3): glibc-debuginfo-common-2.12-1.132.el6.i686.rpm                                                                                 | 7.5 MB     12:03
    (2/3): nss-softokn-debuginfo-3.12.9-11.el6.i686.rpm                                                                                   | 1.0 MB     01:56
    (3/3): yum-plugin-auto-update-debug-info-1.1.30-17.el6_5.noarch.rpm                                                                   |  22 kB     00:00
    -------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                         10 kB/s | 8.6 MB     14:10
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : glibc-debuginfo-common-2.12-1.132.el6.i686                                                                                                1/4
      Installing : glibc-debuginfo-2.12-1.132.el6.i686                                                                                                       2/4
      Installing : yum-plugin-auto-update-debug-info-1.1.30-17.el6_5.noarch                                                                                  3/4
      Installing : nss-softokn-debuginfo-3.12.9-11.el6.i686                                                                                                  4/4
      Verifying  : glibc-debuginfo-common-2.12-1.132.el6.i686                                                                                                1/4
      Verifying  : nss-softokn-debuginfo-3.12.9-11.el6.i686                                                                                                  2/4
      Verifying  : glibc-debuginfo-2.12-1.132.el6.i686                                                                                                       3/4
      Verifying  : yum-plugin-auto-update-debug-info-1.1.30-17.el6_5.noarch                                                                                  4/4   

    Installed:
      glibc-debuginfo.i686 0:2.12-1.132.el6      nss-softokn-debuginfo.i686 0:3.12.9-11.el6      yum-plugin-auto-update-debug-info.noarch 0:1.1.30-17.el6_5       

    Dependency Installed:
      glibc-debuginfo-common.i686 0:2.12-1.132.el6                                                                                                                 

    Complete!  
OK,问题解决。
第二次安装总结:
1、需要先修改“/etc/yum.repos.d/CentOS-Debuginfo.repo”文件的enable=1;
2、使用 sudo yum install glibc 安装;
3、使用 debuginfo-install glibc-2.12-1.132.el6.i686 安装。
测试,安装成功。
时间: 2024-08-14 02:59:19

gdb调试时的问题Missing separate debuginfos, use: debuginfo-install glibc-XXX的相关文章

gdb调试时的问题Missing separate debuginfos use debuginfo-install

在CentOS6.4下使用gdb进行调试的时候, 使用bt(breaktrace)命令时,会弹出如下的提示: 头一天提示: Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.i686 问题没解决,第二天提示: Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.i686 但是直接按提示使用 debuginfo

CentOS环境下,gdb调试中出现:Missing separate debuginfos, use: debuginfo-install.....的问题

在gdb调试时segmentation fault问题时,遇到下面的了问题: Program received signal SIGABRT, Aborted.0x00007ffff73eb925 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:6464 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);Missing separate debuginfos, use:

gdb调试报错:Missing separate debuginfos

在centos7上面gdb程序时候,报错信息是:Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7_3.5.x86_64 解决方案:1 先修改"/etc/yum.repos.d/CentOS-Debuginfo.repo"文件的?enable=1:有时候该文件不存在,则需要手工创建此文件并加入以下内容: [debug] name=CentOS-7 - Debuginfo baseurl=http:

CentOS 6.5上使用gdb调试时出现Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.i686 .

在CentOS6.5上用gdb调试时提示Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.i686 先修改/etc/yum.repos.d/CentOS-Debuginfo.repo里面的debuginfo目录中enabled=1 然后yum install nss-softokn-debuginfo 安装好后,根据提示输入debuginfo-install glibc-2.12-1.132.el6.

gdb调试报Missing separate debuginfos

gdb调试开始时,报错,提示信息如下: Detaching after fork from child process 4112. Program exited normally. Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64 glibc-2.12-1.149.el6_6.5.x86_64 nspr-4.10.6-1.el6_5.x86_64 nss-3.14

gdb调试报错:Missing separate debuginfos

在centos7上面gdb调试程序时候,报错信息是:Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7_3.5.x86_64 解决方案:1 先修改"/etc/yum.repos.d/CentOS-Debuginfo.repo"文件的 enable=1:有时候该文件不存在,则需要手工创建此文件并加入以下内容: [debug] name=CentOS-7 - Debuginfo baseurl=htt

[Gnu]Centos7 解决 gdb 提示 Missing separate debuginfos

Centos7 上使用gdb: $ gdb php $ run /home/www/2.php 运行完 run,后面跟着很长的提示: …. Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-17.el7.x86_64 glibc-2.17-55.el7_0.3.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.11.3-49.el7.x86_64

gdb提示Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6_5.2.x86_64

用gdb debugc代码的时候弹出这个错误 Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6_5.2.x86_64 去http://debuginfo.centos.org/6/x86_64/找到了对应的rpm文件,然后用 rpm -ivh glibc-debuginfo-**就可以了 gdb提示Missing separate debuginfos, use: debuginfo-install

Missing separate debuginfos, use: debuginfo-install

环境:CentOS6.2 64位 操作:使用gdb调试C++查询MySQL数据库的程序 原因: 解决办法: 1.  修改文件/etc/yum.repos.d/CentOS-Debuginfo.repo中的enabled参数,将其值修改为1,如:vi /etc/yum.repos.d/CentOS-Debuginfo.repo 2.  使用命令: yum install nss-softokn-debuginfo --nogpgcheck 3.  使用命令: debuginfo-install g