How to use distcc

237pages on
this wiki
Add New Page
Add New Page Talk0

distcc is a distributed C and C++ compiler. It can use multiple computers over a network to compile source code. The results will be the same as if the code was compiled on the original computer, but the overall time will decrease.

First, you must follow the Networking with coLinux tutorial to have a network setup.

After the network is working:

  1. For each machine, download distcc, unpack, and do
     ./configure && make && sudo make install
  2. On each of the servers, run distccd --daemon, with --allow options to restrict access.
  3. Put the names of the servers in your environment:
     export DISTCC_HOSTS='localhost red green blue'
  4. Build!
     cd /work/linux-2.4.19; make -j8 CC=distcc

Also on Fandom

Random Wiki