博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
记gdb调试一次报错:Missing separate debuginfos, use: zypper install glibc-32bit-debuginfo-2.22-15.3.x86_64
阅读量:2166 次
发布时间:2019-05-01

本文共 1013 字,大约阅读时间需要 3 分钟。

参考:

环境: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.gzcd gdb-8.3./configuremake && make install

报错!!!

/opt/test/gdb-8.3/missing: line 81: makeinfo: command not foundWARNING: '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:         

按照提示安装texinfo,>>>

tar -avxf texinfo-6.6.tar.gzcd texinfo-6.6/./configuremake && make install

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

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

rm -rf gdb-8.3tar -avxf gdb-8.3.tar.gzcd gdb-8.3./configuremake && make install

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

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

完结,撒花

转载地址:http://ncszb.baihongyu.com/

你可能感兴趣的文章
【LEETCODE】119-Pascal's Triangle II
查看>>
【LEETCODE】88-Merge Sorted Array
查看>>
【LEETCODE】19-Remove Nth Node From End of List
查看>>
【LEETCODE】125-Valid Palindrome
查看>>
【LEETCODE】28-Implement strStr()
查看>>
【LEETCODE】6-ZigZag Conversion
查看>>
【LEETCODE】8-String to Integer (atoi)
查看>>
【LEETCODE】14-Longest Common Prefix
查看>>
【LEETCODE】38-Count and Say
查看>>
【LEETCODE】278-First Bad Version
查看>>
【LEETCODE】303-Range Sum Query - Immutable
查看>>
【LEETCODE】21-Merge Two Sorted Lists
查看>>
【LEETCODE】231-Power of Two
查看>>
【LEETCODE】172-Factorial Trailing Zeroes
查看>>
【LEETCODE】112-Path Sum
查看>>
【LEETCODE】9-Palindrome Number
查看>>
【极客学院】-python学习笔记-Python快速入门(面向对象-引入外部文件-Web2Py创建网站)
查看>>
【LEETCODE】190-Reverse Bits
查看>>
【LEETCODE】67-Add Binary
查看>>
【LEETCODE】7-Reverse Integer
查看>>