Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 somebash.sh 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 at 1:26
    
so what's a PATH (in Linux definition, I know what path is in windows environment) –  user97662 May 15 at 1:32
    
See askubuntu.com/questions/141718/… –  Seth May 15 at 1:40

2 Answers 2

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 at 15:38
    
Try dpkg-query -L ccache –  thiagowfx May 15 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++"
./configure

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

 
discard

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.