English 中文(简体)
缺失的单独解冻剂,使用:debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686
原标题:Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686
  • 时间:2012-04-30 20:15:24
  •  标签:
  • gdb
  • centos

CentOS 6.2 + GNU gdb (GDB) Red Hat Enterprises Dublin (7.2-50.el6)

当我与亚洲开发银行一道对一套简单的++代码进行抽查时,我看到以下警告:

Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686

我尝试了以下方法,没有办法解决问题:

  1. 2. 搜索SO

  2. debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686

In fact, when I install those RPM one by one, I just realized that they are installed already.

[root@localhost Excluded]# rpm -ivh glibc-2.12-1.47.el6_2.9.i686.rpm 
Preparing...                ########################################### [100%]
    package glibc-2.12-1.47.el6_2.9.i686 is already installed
[root@localhost Excluded]# ls *.rpm
glibc-2.12-1.47.el6_2.9.i686.rpm  libgcc-4.4.6-3.el6.i686.rpm
[root@localhost Excluded]# rpm -ivh libgcc-4.4.6-3.el6.i686.rpm 
Preparing...                ########################################### [100%]
    package libgcc-4.4.6-3.el6.i686 is already installed
[root@localhost Excluded]# rpm -ivh libstdc++-4.4.6-3.el6.i686.rpm 
warning: libstdc++-4.4.6-3.el6.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Preparing...                ########################################### [100%]
    package libstdc++-4.4.6-3.el6.i686 is already installed
    file /usr/lib/libstdc++.so.6.0.13 from install of libstdc++-4.4.6-3.el6.i686 conflicts with file from package libstdc++-4.4.6-3.el6.i686

为什么亚洲开发银行无法找到它?

。 我是否不得不担心这一问题? 如果不是的话,如何扭转这种状况? 如果是,如何确定?

谢谢。

问题回答

<代码>debuginfo-install为yum-utils,

  1. yum install yum-utils
  2. debuginfo-install glibc
  3. if the warning s still there, edit /etc/yum.repos.d/CentOS-Debuginfo.repo, set enabled=1

在这种情况下,其他人也遇到同样的问题,

I had updated the glibc and somehow the old ldconfig had been flushed was facing this error while running the application

在装上共用图书馆时有错误:libjson-c.so.2:不能开立共同物体档案: 无此类档案或目录

甚至在订立<代码>后 LD_LIBRaire_PATH 它没有工作:

LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH

最后,以下指挥机构前来救援。

// Add you library path here.
echo /usr/local/lib >> /etc/ld.so.conf

// And then Run ldconfig to reflect the path
ldconfig

接受回答的顺序对我不利。

我在评论中遵循了一些推论,这里是我在新安装的CentOS7号时尝试的。

  1. From @lkraav s comment, I followed this wiki https://wiki.centos.org/AdditionalResources/Repositories/DebugInfo and create a new file.

以下内容可附在<代码>/etc/yum.repos.d/CentOS-Base.repo。 或新文件,如<代码>/etc/yum.repos.d/CentOS-Debug.repo。

  1. I pasted those contents from the wiki into the new /etc/yum.repos.d/CentOS-Debug.repo file but edit enabled=0 line to enabled=1

  2. 页: 1 一切都显示在警犬中,并成功安装。





相关问题
tell gdb to disassemble "unknown" code

is it possible to configure gdb in order to debug assembly code when there are no debug symbols or no sources available ? I mean showing assembly instruction by assembly instruction when performing a ...

C++ Netbeans debugging issues

I installed netbeans6.7.1 ide for c/c++ also i have mingw/msys cygwin installed and i have given C:Msysin as environment variable path.It has gdb7 version.However wheni run dbugging thru netbeans ...

setting strings in gdb

c++: int main() { string a = "a"; ... ... } when i debug in gdb: (gdb) set var a = "ok" Invalid cast I run the program and pause at a break point after string a has been ...

How to debug programms written in fasm under linux using gdb?

I wrote simple "hello, world" in fasm, and its works, but how i can generate debug info for gdb and edb (Evan s Debugger)? Fasm compiler could only produce debugging symbols in its specific format - "...

How can I display Unicode strings while debugging on linux?

I have been working for some years now as C++ Developer using MS Visual Studio as working platform. Since I privately prefer to use linux, I recently took the chance to move my working environment to ...

Continue to debug after failed assertion on Linux?

When an assertion fails with Visual C++ on Windows, the debugger stops, displays the message, and then lets you continue (or, if no debugging session is running, offers to launch visual studio for you)...

热门标签