Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am completely noob at this, i don't know what the make file is, and I don't know what bashrc is.

but i do know where to download source code and use source then make file (as was told by someone to run those commands)

I did some research and find out ccache can speed up sequential build speed, but I have no idea what am I suppose to do when reading those online instructions (include ccache in path, what path, where and how, and gcc, colorgcc, bashrc, what are these?)

So if someone can give a step by step instruction, that'd be awesome.

share|improve this question
If you don't know what you are doing, why are you concerned with increasing efficiency? Shouldn't you be more focused on figuring out the very basics? You should figure out what your end goal is, then figure out how to get there. Ask questions here about specific things you are trying to figure out that get you to that goal. If you don't know what a path is, then forget about ccache. – Paul May 15 '14 at 1:26
so what's a PATH (in Linux definition, I know what path is in windows environment) – user97662 May 15 '14 at 1:32
See… – Seth May 15 '14 at 1:40

You can look into this documentation, for example. Briefly:

  1. Install the ccache package -- you know, sudo apt-get install ccache
  2. Put the following line into your ~/.bashrc:

export PATH="/usr/lib/ccache/bin/:$PATH"

Of course, please check if /usr/lib/ccache/bin really exists, it might be installed elsewhere.

share|improve this answer
nope, ccache doesnot exisst in /usr/lib, if not, how can i find out where the program is installed? – user97662 May 15 '14 at 15:38
Try dpkg-query -L ccache – thiagowfx May 15 '14 at 17:08

I would read this documentation, and then

  1. sudo apt-get install ccache
  2. Assuming you're build a "standard" source package,
export CC="ccache gcc"
export CXX="ccache g++"

If you really want to "override" the standard gcc and g++ you could then

ln -s $(which ccache) /usr/local/bin/gcc
ln -s $(which ccache) /usr/local/bin/g++
ln -s $(which ccache) /usr/local/bin/cc
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.