在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-packagekitLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.comChecking for new repos for mirrorsNo debuginfo packages available to install

使用yum来进行安装:

 sudo yum --nogpgcheck --enablerepo=debug install glibc-debuginfo
却提示: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.
使用yum install glibc安装,发现只是安装了一些基本库,不包含 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 - Debuginfobaseurl=http://debuginfo.centos.org/6/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6enabled=1

保存之后,使用 debuginfo-install glibc-2.12-1.132.el6.i686 安装,输出如下:

Loaded plugins: fastestmirror, refresh-packagekitLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.comdebug                                                                                                                                 | 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 ResolutionDependencies 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 kInstalling for dependencies: glibc-debuginfo-common                                 i686                        2.12-1.132.el6                        debug                        7.5 MTransaction Summary=============================================================================================================================================================Install       4 Package(s)Total size: 19 MTotal download size: 8.6 MInstalled size: 93 MIs this ok [y/N]: yDownloading 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_debugRunning Transaction TestTransaction Test SucceededRunning 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 安装。

测试,安装成功。

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

gdb调试时的问题Missing separate debuginfos use debuginfo-install相关推荐

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

    在gdb调试时segmentation fault问题时,遇到下面的了问题: Program received signal SIGABRT, Aborted. 0x00007ffff73eb925 ...

  2. gdb调试报错:Missing separate debuginfos, use: debuginfo-install glibc-XXX

    解决方案: 1.先修改"/etc/yum.repos.d/CentOS-Debuginfo.repo"文件的 enable=1: 2.使用 sudo yum install gli ...

  3. 【全网最暴力解决方案】使用gdb调试时遭遇“Missing separate debuginfos, use: debuginfo-install glibc....”报错信息

    问题现象 日前在CentOS 6虚拟机上使用gdb调试一个由简单的.c文件编译生成的可执行程序遭遇如下gdb报错 Missing separate debuginfos, use: debuginfo ...

  4. gdb调试问题Missing separate debuginfos, use: debuginfo-install

    在做GDB调试的时候,出现这样一个提示: Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-20.el ...

  5. gdb调试时,Program received signal SIGPIPE, Broken pipe.

    今天在gdb调试时,发现总是出现Program received signal SIGPIPE, Broken pipe,搜索了网上的资料,发现是在调试时,接收到了SIGPIPE这个signal信号导 ...

  6. Linux——gdb调试时多进程切换方法(attach/follow-fork-mode)

    对于程序中创建子进程的情况,进行gdb调试时会默认选择父进程进行调试,假如需要对子进程进行调试就需要使用特殊方法. 共有两种方法可供选择: 目录 一.attach子进程PID ①.运行进程 ②获取进程 ...

  7. Missing separate debuginfos, use: debuginfo-install 解决方法如下----笛风读书笔记系列

    读书笔记系列之:Missing separate debuginfos, use: debuginfo-install 解决方法如下                                   ...

  8. gdb调试时调用函数、设置观察点以及GDB的宏

    Table of Contents 调试时调用函数 观察点 GDB宏 调试是一项复杂的任务.开发人员大部分时间都花在调试上,因此熟悉许多调试工具很重要 在Linux中,本机调试器是GDB,它是基于命令 ...

  9. GDB调试时的参数设置

    若正常运行可执行文件pbrt.debug时带有参数,比如: pbrt.debug ~/pbrt/killeroos/killeroos-simple.pbrt 那么,用GDB调试pbrt时应该这样: ...

最新文章

  1. 发动机异响故障诊断与排除_发动机缺缸故障诊断以及排除方法
  2. 【网易中台实践】云信业务中台的敏捷开发
  3. python数学建模可视化_数学建模之流程图和数据可视化
  4. 用计算机弹正义之道,正义之道
  5. [转载] Java基础——关联、聚合、组合
  6. 根可达算法的根_我的JVM(六):GC的基础概念以及GC算法
  7. 《css世界》常用技巧——读书笔记
  8. 应用程序热补丁(三):完整的设计与实现
  9. 电脑/手机怎么查看连接的wifi的密码
  10. 数据结构(C语言版)-- 数据结构基础
  11. Linux内核中C语言使用特点和技巧
  12. 手动制作满足SARscape要求的_dem数据
  13. 2023新年快乐,友盟+伴你岁岁年年
  14. 深度学习机器学习面试问题准备
  15. 13-反向传播法求梯度
  16. 【拜小白opencv】45-二维H-S直方图绘制----calcHist()函数、minMaxLoc()函数
  17. 什么是TCP/IP协议?
  18. 常用DOS(磁盘操作系统)命令
  19. Coursera | Applied Plotting, Charting Data Representation in Python(UMich)| Assignment4
  20. ssconvert 安装_使用Gnumeric ssconvert将ods文件转换为csv文件时替换或忽略换行符

热门文章

  1. Linux下访问小米路由器文件
  2. 删除的照片怎么找回?教你5个好方法快速恢复
  3. win10中没有本地策略组、本地用户和组
  4. 【真相】年终奖都是有哪些坑
  5. 数组reduce方法详解
  6. 超赞随机点名系统(抽奖系统),快来看看是不是你想要的(附完整源码)
  7. python输出一个空心爱心
  8. 程序员的浪漫,教你用Python代码画圣诞树
  9. android 无障碍的菜单,讯飞输入法Android V9.1.9652 菜单及表情适配无障碍模式
  10. vue可填写表格_VUE写一个简单的表格实例