Download the latest version of ccache for better performance.
After downloading, do the following:
A) Reset the file using the following command:
$tar -xvf ccache-3.2.4.tar.bz2 Note : I'm using ccache 3.2.4 Version.You can download the latest one.
B) Go to the ccache-3.2.4 folder and run the following commands:
$./configure $./make $ sudo make install
C) Go to your .bashrc and paste the following:
export CCACHE_DIR=/home/user_name/.ccache export CCACHE_TEMPDIR=/home/user_name/.ccache Note : Fill user_name with your User Name
D) Save your Bashrc and submit it
$ source ~/.bashrc
E) To verify that ccache is working or not, enter:
ccache -M 10G : To Set the ccache Size to 10GB
F) To verify that ccache is working or not, enter:
ccache -s : To check ccache statistics
Ankit raj
source share