参考: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
完结,撒花