1. 下载安装包
2. ./configure,
make
3.遇到问题:缺少termcap,
sudo apt-get install libncurses5-dev
4.遇到问题:
cc1:warning being treated as errors
linux-nat.c: In function 'linux_nat_info_proc_cmd':
linux-nat.c:2879:error:ignoring return value of 'fgets',declared with attribute warn_unused_result
在insight/gdb,打开Makefile文件搜索-Werror
老代码
WERROR_CFLAGS = -Werror
新代码
WERROR_CFLAGS = #-Werror
5. make
sudo make install