- 论坛徽章:
- 0
|
本帖最后由 pppadr 于 2013-07-23 09:27 编辑
我用的CentOS6。用gcc编了一个程序,没有优化选项,然后用gdb来运行,提示需要安装调试相关的几个库。
- # gdb a.out
- # gdb a.out
- GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
- Copyright (C) 2010 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "i686-redhat-linux-gnu".
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>...
- Reading symbols from /root/a.out...(no debugging symbols found)...done.
- (gdb) r
- Starting program: a.out
- 1
- Program exited normally.
- Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.80.el6.i686 libgcc-4.4.6-4.el6.i686 libstdc++-4.4.6-4.el6.i686
复制代码 可是问题是,这几个包我都已经安装了呀:
- # yum install glibc-2.12-1.80.el6.i686 libgcc-4.4.6-4.el6.i686 libstdc++-4.4.6-4.el6.i686
- Loaded plugins: fastestmirror, refresh-packagekit, security
- Loading mirror speeds from cached hostfile
- Setting up Install Process
- Package glibc-2.12-1.80.el6.i686 already installed and latest version
- Package libgcc-4.4.6-4.el6.i686 already installed and latest version
- Package libstdc++-4.4.6-4.el6.i686 already installed and latest version
- Nothing to do
复制代码 |
|