第一步
yum install -y gcc g++ gcc-c++ make automake texinfo wget
第二步 Cmake 安装
tar -xf cmake-3.13.4.tar.gz
cd cmake-3.13.4
./configure
make && make install
ln -s /usr/local/bin/cmake /usr/bin/cmake
第三步 termcap 安装
tar -xf termcap-1.3.1.tar.gz
cd termcap-1.3.1
./configure
make && make install
第三步 gdb 安装
tar -xf gdb-7.9.tar.xz
cd gdb-7.9.tar.xz
./configure
make && make install
ln -s /usr/local/bin/gdb /usr/bin/gdb
来源:oschina
链接:https://my.oschina.net/u/3484671/blog/3156277