linux编译安装ccache3.2.4

1、下载ccache3.2.4安装包

#cd /opt

#wget http://samba.org/ftp/ccache/ccache-3.2.4.tar.gz

2、解压

#tar -zxf ccache-3.2.4.tar.gz

3、创建安装目录

#mkdir /usr/local/ccache-3.2.4/

#cd /usr/local/ccache-3.2.4/

4、配置安装

#/opt/ccache-3.2.4/configure -prefix=/usr/local/ccache-3.2.4

5、编译

#make -j8

6、安装

 #make install

7、如果有旧版本,删除旧版本,添加新版本软链接

#cd /usr/bin

#mv ccache ccache_bk

#ln -s /usr/local/ccache-3.2.4/bin/ccache ccache

8、检查版本号

#ccache --v 
原文地址:https://www.cnblogs.com/damonxu/p/6435515.html