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