ubuntu下安装Glog报错: error: ... recipe for target 'logging_unittest' failed
在对glog进行make操作时报错如下
解决办法:
重新安装gflags和glog,按如下方式进行安装:
1)安装gflags
git clone https://github.com/gflags/gflags.git cd gflags mkdir build && cd build cmake -DGFLAGS_NAMESPACE=google -DCMAKE_CXX_FLAGS=-fPIC -DBUILD_SHARED_LIBS=ON .. make -j4 sudo make install sudo ldconfig
2)安装glog
git clone https://github.com/google/glog cd glog mkdir build && cd build cmake -DGFLAGS_NAMESPACE=google -DCMAKE_CXX_FLAGS=-fPIC -DBUILD_SHARED_LIBS=ON .. make sudo make install
参考博客【https://blog.csdn.net/weixin_44401286/article/details/103101450】