When using GDB for debugging under CentOS6.4,
When you use the BT (breaktrace) command, the following prompts are displayed:
First day Tip:
Missing separate Debuginfos, Use:debuginfo-install glibc-2.12-1.107.el6.i686
The problem is not resolved, the next day prompt:
Missing separate Debuginfos, Use:debuginfo-install glibc-2.12-1.132.el6.i686
However, when prompted to use Debuginfo-install glibc-2.12-1.132.el6.i686 to install the information will be reported as follows:
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 the new repos for mirrors
No Debuginfo packages available to install
To install using Yum:
sudo yum--nogpgcheck--enablerepo=debug install Glibc-debuginfo
But prompted: 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.
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/
Using the Yum install glibc installation, found that only some basic libraries were installed, not including Glibc-debuginfo
Later search found that you need to modify the "/etc/yum.repos.d/centos-debuginfo.repo" file first enable=1
The contents of the document are as follows:
# Centos-debug.repo # The
Mirror system uses the connecting IP address of the client and the
# Update status of each mirror to pick mirrors, are updated to and
# geographically close to the client. You are should use this for CentOS updates # unless to are manually other picking
.
# all
Debug Packages various CentOS-5 releases
# are to a single merged, split by Repo 10/>#
# Note:packages in the Debuginfo repo are currently not signed
#
[Debug]
name=centos-6-Debugi NFO
baseurl=http://debuginfo.centos.org/6/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-centos-debug-6
enabled=1
After saving, use the Debuginfo-install glibc-2.12-1.132.el6.i686 installation, the output is as follows:
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-debu ginfo.i686 0:2.12-1.132.el6 is installed--> processing = Dependency:glibc-debuginfo-common for package:glibc-debuginfo-2.12-1.132.el6.i686---> Package nss-softokn-debuginfo.i686 0:3.12.9-11.el6 would be Installed---> Package yum-plugin-auto-update-debug-info.noarch 0:1.1.30-17.el6_5 'll be installed--> Transaction Check---> Package glibc-debuginfo-common.i686 0:2.12-1.132.el6 would be installed--> finished Dency resolution Dependencies Resolved ======================================================================================================================== ===================================== Package Arch Version Repository Size ============================================= =============================================================================================================== = Installing:glibc-debuginfo i686 2.12-1.132.el6 Debug 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 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 are this OK [y/n]: y downloading Packag ES: (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 | KB 00:00------------------------------------------------------------------------------------------------------------------------------------------ Total------------------- Ten kb/s | 8.6 MB 14:10 Running rpm_check_debug Running Transaction Test Transaction test succeeded Running Transact Ion 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-de
Bug-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 VERIFYI ng: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, problem solved.
Second Installation Summary:
1, the need to modify the "/etc/yum.repos.d/centos-debuginfo.repo" document Enable=1;
2, the use of sudo yum install glibc installation;
3, the use of Debuginfo-install glibc-2.12-1.132.el6.i686 installation.
Test, the installation was successful.