1.Glog的安装
"源码下载方式"
git clone https://github.com/google/glog
git clone https://gitee.com/boxingcao/glog.git
"安装编译工具"
sudo apt-get install autoconf automake libtool
"步骤一"
cd glog
"步骤二"
mkdir build
cd build
"步骤三"
cmake ..
"步骤四"
make
"步骤五"
sudo make install
"步骤六"
sudo ldconfig
2.GFlags的安装
"下载地址"
git clone https://github.com/gflags/gflags.git
"进入刚刚下载的目录中"
cd gflags
"创建编译目录"
mkdir build
cd build
"编译"
cmake .. -DGFLAGS_NAMESPACE=google -DCMAKE_CXX_FLAGS=-fPIC ..
make -j4
sudo make install