1.下载git clone https://github.com/gflags/gflags 2.编译进入源码目录(即gflags文件夹) cmake . make -j 24 sudo make install