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