安装gdb 7.12
命令 | 解释 |
---|---|
yum install ncurses-devel | 安装Texinfo文档系统 |
rpm -qa | grep gdb | 查看当前的gdb |
rpm -e --nodeps gdb-xxx | 卸载gdb7.2 |
tar xzvf gdb-7.12.tar.gz | 解压 |
cd gdb-7.12 | 进入解压后的目录 |
./configure | 检测依赖并生成makefile |
make | 编译 |
make install | 安装 |
**如果安装通不过报错没有texinfo,尝试yum install ncurses-devel
如果仍有错误,尝试yum install ncurses-devel texinfo gettext flex bison expat-devel sharutils dejagnu glibc-static libunwind-devel valgrind gcc-c++ gcc-gfortran readline-devel rpm-develPython-devel texinfo-tex**
最后
cp gdb/gdb /usr/bin/gdb gdb -v