环境配置 安装termcap 官网链接:https://ftp.gnu.org/gnu/termcap/ ./configure make sudo make install 安装gdb wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz tar -xf gdb-7.8.tar.xz cd gdb-7.8/ ./configure make sudo cp gdb/gdb /usr/local/bin/gdb