Install gdb For Red Hat Enterprise Linux Server release 6.2 (Santiago)
查看操作系统及CPU型号:
命令:cat /proc/version
Linux version 2.6.32-220.el6.x86_64 (mockbuild@x86-004.build.bos.redhat.com) (gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC) )
2.6.32-220是linux内核版本号,el6表示Enterprise Linux release 6,x86_64是CPU架构类型
搜索gdb的下载地址:http://rpmfind.net/linux/rpm2html/search.php?query=gdb
根据本机操作系统和CPU的类型选择下载对应的GDB:
ftp://rpmfind.net/linux/centos/6.3/os/x86_64/Packages/gdb-7.2-56.el6.x86_64.rpm
安装:
rpm -ivh gdb-7.2-56.el6.x86_64.rpm