1.下载

git clone https://github.com/gflags/gflags

2.编译

进入源码目录(即gflags文件夹) 
cmake . 
make -j 24 
sudo make install