问题描述:

程序执行过程中显示诸如以下信息等多种情况:

1.Missing separate debuginfos, use:debuginfo-install compat-libstdc++-33-3.2.3-69.el6.x86_64glibc-2.12-1.149.el6_6.5.x86_64 libgcc-4.4.7-11.el6.x86_64libstdc++-4.4.7-11.el6.x86_64
2.[stack]Aborted (core dumped)
3.p/oracle/product/10.2.0/db_1/lib/libocci.so.10.1Aborted(core dumped)
…

该问题出现时也在网页上查了好久,基于不对版本或者配置不对,导致失败,偶然的机会多次尝试接触到的帖子:http://jingyan.baidu.com/article/37bce2be1839ca1003f3a253.html,经过更改配置文件解决问题。

 

在这里简单重复唠叨一下,且添加些内容。

首先:uname –r 查询linux的版本号

根据查到的版本号(本机为2.6.32-504.8.1.el6.centos.plus.x86_64)在开源镜像站查找以下两个文件:

kernel-debuginfo-common-xxxxx

kernel-debuginfo-xxxx 

例如本机uname -r 2.6.32-504.8.1.el6.centos.plus.x86_64 只能选kernel-debuginfo-2.6.32-504.8.1.el6.x86_64.rpmkernel-debuginfo-common-x86_64-2.6.32-504.8.1.el6.x86_64.rpm

(本机从上海交大FTP上查找到的,http://ftp.sjtu.edu.cn/,包太大,未上传)

 

安装:

rpm -ivhkernel-debuginfo-common-x86_64-2.6.32-504.8.1.el6.x86_64.rpm
rpm -ivhkernel-debuginfo-2.6.32-504.8.1.el6.x86_64.rpm

配置配置文件CentOS-Base-debuginfo.repo

首先该本机没有该配置文件,装完debuginfo后也没有出现诸如CentOS-Base-debuginfo.repo的文件,很明显,redhat不可能安装CentOS的配置文件,除非手动添加。OK,那就手动添加一个!

vim /etc/yum.repos.d/CentOS-Base-debuginfo.repo

然后写入:

[base-debuginfo]
name=CentOS-$releasever - DebugInfo 
baseurl=http://debuginfo.centos.org/$releasever/$basearch/
gpgcheck=0
enabled=0
protect=1
priority=1

写到这里如果去执行debuginfo-install glibc,则会报出url错误!

如此,想起在配置CentOSyum源时大家应该注意到将$releasever改成系统大版本号,所以(复制粘贴即可)

[base-debuginfo]
name=CentOS-6 - DebugInfo
baseurl=http://debuginfo.centos.org/6/$basearch/
gpgcheck=0
enabled=0
protect=1
priority=1

简单:wq保存退出后执行debuginfo-install compat-libstdc++-33-3.2.3-69.el6.x86_64 执行成功,下载还挺大的

速度比较慢,35kb/s