下载cmake
wget https://cmake.org/files/v3.16/cmake-3.16.8.tar.gz
解压并构建
tar -xf cmake-3.16.8.tar.gz
cd cmake-3.16.8
./configure
编译,安装
make && make install
构建软连接
ln -s /usr/local/bin/cmake /usr/bin/cmake
安装gdb
先安装termcap
wget https://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
tar -xf termcap-1.3.1.tar.gz
cd termcap-1.3.1
./configure
make
make install
安装gdb
wget http://mirrors.ustc.edu.cn/gnu/gdb/gdb-7.9.tar.xz
tar -xf gdb-7.9.tar.xz
cd gdb-7.9
./configure
make
make install
构建软连接
ln -s /usr/local/bin/gdb /usr/bin/gdb