1. if you have installed the first uninstall gdb old version rpm-qa | grepgdbrpm-e -- nodepsgdb-7.2-60.el6_4.1.i6862. install the Texinfo document system yuminstallncurses-devel3. download the gdb7.6.1 source package http://ftp.gnu.org/gnu/
1. uninstall the old version of gdb if any
Rpm-qa | grep gdb
Rpm-e -- nodeps gdb-7.2-60.el6_4.1.i686
2. install the Texinfo document system
Yum install ncurses-devel
3. download the source code package of gdb 7.6.1.
Http://ftp.gnu.org/gnu/gdb/gdb-7.6.1.tar.gz
Place the source code package in the Download directory of the home directory.
4. decompress the source code package of gdb 7.6.1.
Cd/root/Downloads/
Tar-zxvf gdb-7.6.1.tar.gz
5. generate makefile
Cd/root/Downloads/gdb-7.6.1
./Configure
Make
Sudo make install
6. copy the compiled gdb file to the/usr/bin directory.
Sudo cp/root/Downloads/gdb-7.6.1/gdb/usr/bin/gdb
7. check whether the installation is successful.
Gdb-v