天天看点

Ubuntu18.04 安装gflags及解决错误

gflags是google的一个开源的处理命令行参数的库,使用c++开发,具备python接口,可以替代getopt。

下载gflags

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

错误:

正克隆到 ‘gflags’…

remote: Enumerating objects: 2355, done.

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.

fatal: The remote end hung up unexpectedly

fatal: 过早的文件结束符(EOF)

fatal: index-pack 失败

解决:

https://github.com/gflags/gflags
           

下载再编译

编译&安装

进入源码目录(即gflags文件夹)
cmake .
make -j
sudo make install
           
Ubuntu18.04 安装gflags及解决错误