ccache
1.1、ccache简介
是什么 ?:a fast C / C++ / Objectice-C compiler cache that speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again.
开发语言:C
官方主页:https://ccache.dev
源码仓库:https://github.com/ccache/ccache
1.2、通过包管理器安装ccache
操作系统包管理器安装命令
Windowsscoopscoop install ccache
WindowsChocolateychoco install -y ccache
macOSHomeBrewbrew install ccache
GNU/LinuxLinuxBrewbrew install ccache
aptsudo apt-get install -y ccache
CentOSyumsudo yum install -y ccache
dnfsudo dnf install -y ccache
openSUSEzyppersudo zypper install -y ccache
Alpine Linuxapksudo apk add ccache

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm ccache
Gentoo LinuxPortagesudo emerge ccache
1.3、通过编译源码安装ccache

step1、安装依赖

下载时cURL
解压时tarxz
编译时POSIX shGNU CoreUtilsGNU makeGCC ( gcc )   | LLVM / Clang
运行时glibc ( libc.sold-linux-x86-64.so )

step2、使用curl命令下载ccache源码包 (

curl -LO https://github.com/ccache/ccache/releases/download/v3.7.6/ccache-3.7.6.tar.xz

step3、使用tar解压ccache源码包

tar vxf ccache-3.7.6.tar.xz

step4、进入ccache-3.7.6目录,并查看它的内容

step5、配置、编译、安装

./configure && make && sudo make install
1.4、ccache命令