Linux CentOS GDB

1、gdb源码下载地址

gdb源码下载地址:http://ftp.gnu.org/gnu/gdb/

2、安装相关的依赖

  1. yum install ncurses-devel texinfo libncurses5-dev

3、解压源码包并配置安装

  1. wget http://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz
  2. tar xzf gdb-10.2.tar.gz
  3. cd gdb-11.1
  4. ./configure
  5. make && make install

4、检查是否安装成功

  1. which gdb
  2. /usr/local/bin/gdb -v

image.png

一键式安装脚本

  1. yum install ncurses-devel texinfo libncurses5-dev
  2. wget http://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.gz
  3. tar xzf gdb-10.2.tar.gz
  4. cd gdb-11.1
  5. ./configure
  6. make && make install

image.png