1、下载ccache3.2.4安装包
#cd /opt #wget http://samba.org/ftp/ccache/ccache-3.2.4.tar.gz
2、解压
#tar -zxf ccache-3.2..tar.gz
3、创建安装目录
#mkdir /usr/local/ccache-3.2./ #cd /usr/local/ccache-3.2./
4、配置安装
#/opt/ccache-3.2./configure -prefix=/usr/local/ccache-3.2.
5、编译
#make -j8
6、安装
#make install
7、如果有旧版本,删除旧版本,添加新版本软链接
#cd /usr/bin #mv ccache ccache_bk #ln -s /usr/local/ccache-3.2./bin/ccache ccache
8、检查版本号
#ccache --v