本文共 930 字,大约阅读时间需要 3 分钟。
1,在运行GDB的R指令时,报错。。。。
(gdb) r
Starting program: /root/tst
Breakpoint 1, main () at tst.c:17
17 long result=0;
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6_3.6.x86_64
2,按提示,运行debuginfo-install glibc-2.12-1.80.el6_3.6.x86_64时报错:
debuginfo-install glibc-2.12-1.80.el6_3.6.x86_64
-bash: debuginfo-install: command not found3,网上搜索,找到有用的。
For this to work, you need to have the debuginfo
repository defined. For CentOS 5, put the following in /etc/yum.repos.d/CentOS-Base-debuginfo.repo
:
[base-debuginfo]name=CentOS-$releasever -DebugInfobaseurl=http://debuginfo.centos.org/$releasever/$basearch/gpgcheck=0enabled=0protect=1priority=1 ~~~~~~~ debuginfo-install is part of the yum-utils package. If you don't know what package contains a command, you can try something like yum install /usr/bin/debuginfo-install and yum will find it for you (assuming that the package you want is in /usr/bin) ~~~~~~~~ 4,问题解决
转载地址:http://cyxyx.baihongyu.com/