记gdb调试一次报错:Missing separate debuginfos, use: zypper install glibc-32bit-debuginfo-2.22-15.3.x86_64

参考:https://bbs.csdn.net/topics/391965680?list=lz

环境:SUSE Linux Enterprise Server 12 SP4

执行run之后报错:

Missing separate debuginfos, use: zypper install glibc-32bit-debuginfo-2.22-15.3.x86_64

CentOS可以利用yum包管理器迅速解决,我辛辛苦苦的在网上找资料解决,找的资料还是CentOS的,想哭 :(

原因:gcc版本太高,gdb版本太低,编译器的库不匹配

解决办法:安装更高版本的gdb        >>>下载地址

tar -avxf gdb-8.3.tar.gz
cd gdb-8.3
./configure
make && make install

报错!!!

/opt/test/gdb-8.3/missing: line 81: makeinfo: command not found
WARNING: 'makeinfo' is missing on your system.
         You should only need it if you modified a '.texi' file, or
         any other file indirectly affecting the aspect of the manual.
         You might want to install the Texinfo package:
         <http://www.gnu.org/software/texinfo/>

按照提示安装texinfo,>>>下载地址

tar -avxf texinfo-6.6.tar.gz
cd texinfo-6.6/
./configure
make && make install

然后删掉gdb解压出的文件夹,重复安装gdb

PS. 上次make install之后有缓存文件,再make install会失败,按照提示也没解决,只好删掉

rm -rf gdb-8.3
tar -avxf gdb-8.3.tar.gz
cd gdb-8.3
./configure
make && make install

事情还没完,gdb安装路径是/usr/local/bin,要把该路径加入环境变量PATH

vim /etc/profile
#在文件尾加上
export PATH=/usr/local/bin:$PATH
:wq
source /etc/profile

完结,撒花

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值