1、先安装cmake
https://blog.csdn.net/libaineu2004/article/details/83658785
2、再安装protobuf
https://blog.csdn.net/libaineu2004/article/details/80706083
mac没有ldconfig命令
3、需要修改源码才能通过编译:
(1)/ananas/protobuf_rpc/ProtobufCoder.h
增加#include "ananas/util/Buffer.h"
(2)/ananas/protobuf_rpc/CMakeLists.txt
/ananas/tests/test_protobuf_rpc/CMakeLists.txt
把”COMMAND protoc“修改为”COMMAND /usr/local/bin/protoc“