编译问题
1.git 安装
2.ssh密码生成
3.cmake安装,最低安装3.11版本,安装cmake非常费时,
先官网下载最新的cmake, 解压后进入解压目录
sudo ./bootstrap
可能报错,sudo apt-get install libssl-dev
sudo make
sudo make install
最简单的方法,博客https://www.linuxidc.com/Linux/2018-09/154165.html,完全照着整
4.编译libcurl.a libglog.a libarchive.a 并替换原有库,这样编译才能通过
Ubuntu18.04下更改apt源为阿里云源
1.命令如下:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.清空sources.list
echo ""> /etc/apt/sources.list
3.将下列源路径粘贴到sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
4.更新
sudo apt-get update