Ubuntu环境配置
概述
设置代理
# 编辑bash环境变量管理文件
vim ~/.bashrc
# 编辑文件
export http_proxy='http://localhost:7897'
export https_proxy='http://localhost:7897'
# 使配置文件生效
source ~/.bashrc
安装cmake
# 卸载旧版本
sudo apt remove --purge cmake
# 下载cmake
wget https://github.com/Kitware/CMake/releases/download/v3.30.2/cmake-3.30.2.tar.gz
tar -zxvf cmake-3.30.2.tar.gz
sudo apt-get instll openssl
sudo apt-get install libssl-dev
cd cmake-3.30.2
./bootstrap
make
sudo make install
安装make
wget https://ftp.gnu.org/pub/gnu/make/make-4.4.tar.gz
tar -zxvf make-4.4.tar.gz
cd make-4.4
./configure --prefix=/usr
type make
make check
make install