1、gdb源码下载地址
gdb源码下载地址:http://ftp.gnu.org/gnu/gdb/
2、安装相关的依赖
yum install ncurses-devel texinfo libncurses5-dev
3、解压源码包并配置安装
wget http://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz
tar xzf gdb-10.2.tar.gz
cd gdb-11.1
./configure
make && make install
4、检查是否安装成功
which gdb
/usr/local/bin/gdb -v
一键式安装脚本
yum install ncurses-devel texinfo libncurses5-dev
wget http://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz
tar xzf gdb-10.2.tar.gz
cd gdb-11.1
./configure
make && make install