当前位置: 首页 > 工具软件 > GNU SASL > 使用案例 >

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

南门焱
2023-12-01

 

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 libcom_err-1.42.9-4.el7.x86_64 libcurl-7.29.0-19.el7.x86_64 libidn-1.28-3.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64 libmcrypt-2.5.8-4.el7.art.x86_64 libpng-1.5.13-5.el7.x86_64 libselinux-2.2.2-6.el7.x86_64 libssh2-1.4.3-8.el7.x86_64 libxml2-2.9.1-5.el7_0.1.x86_64 nspr-4.10.6-1.el7_0.x86_64 nss-3.16.2.3-2.el7_0.x86_64 nss-softokn-freebl-3.16.2.3-1.el7_0.x86_64 nss-util-3.16.2.3-1.el7_0.x86_64 openldap-2.4.39-3.el7.x86_64 openssl-libs-1.0.1e-34.el7_0.6.x86_64 pcre-8.32-12.el7.x86_64 xz-libs-5.1.2-8alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64
….
 
去除上面的提示,只要按说明用 `debuginfo-install` 安装后面一系列包.
( 没有 `debuginfo-install` 命令的话,先 `yum install yum-utils` 进行安装. )
 
假如遇到提示 Invalid Gig key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
那么只要设置好下面文件中的两项,它们是关键:
$ vi /etc/yum.repos.d/CentOS-Debuginfo.repo

gpgcheck=0  # 不检测签名,

enabled=1    # 支持yum源

 
然后可以继续安装依赖包了:
$ sudo debuginfo-install -y 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 libcom_err-1.42.9-4.el7.x86_64 libcurl-7.29.0-19.el7.x86_64 libidn-1.28-3.el7.x86_64 libjpeg-turbo-1.2.90-5.el7.x86_64 libmcrypt-2.5.8-4.el7.art.x86_64 libpng-1.5.13-5.el7.x86_64 libselinux-2.2.2-6.el7.x86_64 libssh2-1.4.3-8.el7.x86_64 libxml2-2.9.1-5.el7_0.1.x86_64 nspr-4.10.6-1.el7_0.x86_64 nss-3.16.2.3-2.el7_0.x86_64 nss-softokn-freebl-3.16.2.3-1.el7_0.x86_64 nss-util-3.16.2.3-1.el7_0.x86_64 openldap-2.4.39-3.el7.x86_64 openssl-libs-1.0.1e-34.el7_0.6.x86_64 pcre-8.32-12.el7.x86_64 xz-libs-5.1.2-8alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64

 

假如提示要安装 nss-softokn,就继续安装:
$ sudo yum install -y nss-softokn nss-softokn-debuginfo --nogpgcheck --skip-broken

nss-softokn-debuginfo 是给 nss-softokn 提供debug信息的包,--nogpgcheck 忽略签名检查,--skip-broken 跳过有依赖问题的包.

 

转载于:https://www.cnblogs.com/farwish/p/5640656.html

 类似资料: