Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
robots:rosie_distcc [2010/09/16 08:41] amaldorobots:rosie_distcc [2014/06/10 12:34] (current) amaldo
Line 1: Line 1:
 +====== How to set up your environment on TUM-Rosie for distcc and ccache ======
 +  * Get the packages installed
 +  apt-get install distcc ccache
 +
 +  * Set up the environment in your ~/.bashrc :
 +
 +  export CCACHE_PREFIX=distcc
 +  export DISTCC_HOSTS='username@amy/8:/usr/bin/distccd username@leela/8:/usr/bin/distccd'
 +  export ROS_PARALLEL_JOBS="-j18"
 +  export PATH=${HOME}/local/bin:${PATH}
 +
 +  * Create the following links in your ~/local/bin:
 +
 +  cd ~/local/bin
 +  ln -s /usr/bin/ccache cc
 +  ln -s /usr/bin/ccache c++
 +  ln -s /usr/bin/ccache gcc
 +  ln -s /usr/bin/ccache g++
 +
 +  * Make it faster by activating ssh connection caching. Add this to ~/.ssh/config :
 +
 +  Host *
 +    ControlMaster auto
 +    ControlPath ~/.ssh_tmp/master-%r@%h:%p
 +
 +  * Create the temporary ssh directory:
 +
 +  mkdir ~/.ssh_tmp
 +
 +  * Make sure you have your ssh-agent running, and that you can log in to amy without a password
 +  * Test with your favorite compile! You should see compilers running on amy and leela.
  
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki