CentOS 7 安装 debuginfo-install glibc-2.17-324.el7_9.x86_64

系统为腾讯云服务器 CentOS 7

首次用 gdb 调试时,出现

Missing separate debuginfos, use: debuginfo-install glibc-2.17-324.el7_9.x86_64 libgcc-4.8.5-44.el7.x86_64 libstdc+±4.8.5-44.el7.x86_64

执行 debuginfo-install glibc-2.17-324.el7_9.x86_64 时却失败:

[root@XuanYuan helloworld]# debuginfo-install glibc-2.17-324.el7_9.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Could not find debuginfo for main pkg: glibc-2.17-324.el7_9.x86_64
Could not find debuginfo pkg for dependency package nss-softokn-freebl-3.53.1-6.el7_9.x86_64
No debuginfo packages available to install

打开配置文件 vim /etc/yum.repos.d/CentOS-Debuginfo.repo

CentOS 7 安装 debuginfo-install glibc-2.17-324.el7_9.x86_64_第1张图片
enabled=0 改为 enabled=1后重新执行 debuginfo-install glibc-2.17-324.el7_9.x86_64 即可

CentOS 7 安装 debuginfo-install glibc-2.17-324.el7_9.x86_64_第2张图片
另外两个包libgcc-4.8.5-44.el7.x86_64libstdc++-4.8.5-44.el7.x86_64也是同样安装!

ps:下载速度极其不稳定。。。有可能要很久很久

你可能感兴趣的:(Linux,centos,yum)