title: How to install TBB from source on Linux and make it work
body: <p>I would like to know how to install TBB from source and make it work on a Linux system.  I have had some problems when it comes using it, problems that don't appear if I install TBB via the package manager.</p>
  <p>In the TBB webpage, there are some guidelines on how about to do this, like setting the <code>LD_LIBRARY_PATH</code> and <code>CPATH</code> variables, or sourcing the <code>tbbvars.sh</code> file. Even if I do that, when I try to compile an example <code>g++</code> says that <code>tbb</code> is not found.</p>
  <p>So my question is, is there an easy way to setup everything (compile the source code, what variables should I set...) in order to use TBB?</p>
  <p>Thanks.</p>
  <p><strong>NOTE:</strong> The library version number when this question was asked was 2 (if I recall correctly). I have personally tested the solution up to version 4.1, but I think it should work too for current version <code>4.2 (update 3)</code> since the building method remains the same.</p>