自己做網(wǎng)站賣東西怎么樣西安seo服務(wù)商
安裝wget(一般ubuntu會自帶)
sudo apt-get install wget
更換國內(nèi)軟件源
先備份原來的/etc/apt/source.list?件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
防止修改錯誤 導(dǎo)致無可挽回
將下列國內(nèi)鏡像源 寫入原來的/etc/apt/source.list?件(注意格式 防止格式出錯)
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
#添加清華源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
新增完畢后,更新源
sudo apt-get update
安裝lrzsz傳輸?具
sudo apt-get install lrzszrz --version
安裝編譯器gcc/g++
sudo apt-get install gcc g++
安裝項?構(gòu)建?具make
sudo apt-get install make
安裝調(diào)試器gdb
sudo apt-get install gdb
安裝git?
sudo apt-get install gitgit --version
安裝cmake
sudo apt-get install cmakecmake --version
安裝jsoncpp
sudo apt-get install libjsoncpp-dev
安裝Muduo
git clone https://github.com/chenshuo/muduo.git
Muduo庫克隆的時候可能會有點慢
但是我替換了軟件源 感覺挺快的?
安裝依賴環(huán)境
sudo apt-get install libz-dev libboost-all-dev
我在安裝依賴環(huán)境的時候出現(xiàn) 依賴包的依賴關(guān)系問題?
我參考了以下文章?
沒有安裝依賴包 如何去安裝
不能安裝的依賴包如何去解決
當(dāng)然,你遇到的問題也許不是我所遇到的。?
運?腳本編譯安裝
unzip muduo-master.zip
./build.sh
./build.sh install
沒有安裝unzip需要去安裝
sudo apt-get install unzip