天天看點

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及解決錯誤