1.安装muduo依赖的编译工具及库
Cmake
bash
sudo apt-get install cmake
Boost
bash
sudo apt-get install libboost-dev libboost-test-dev
curl、c-ares DNS、google protobuf
bash
sudo apt-get install libcurl4-openssl-dev libc-ares-dev
sudo apt-get install protobuf-compiler libprotobuf-dev
进入muduo目录下,编译安装(前提已安装g++)
bash
cd muduo
./build.sh -j2
./build.sh install
编译成功,未安装,见下图