本文共 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/