September 2009 Archives

Perl test in MT

| Comments | No TrackBacks

Here’s a little test of Perl formatting with SyntaxHighlighter.


use strict;

print "Hello there!";

I’ll write a bit more on my Movable Type config soon, as there are some interesting quirks.

Compiling with distcc and ccache

| Comments | No TrackBacks

In my working environment a firewall is set up that prevents connecting with remote server do do distributed computing with distcc. Here’s a short note on how I work around it and generally, how my compilation chain is constructed.

First, I setup SSH tunnel to avoid firewall restrictions:

ssh SERVER -L 3633:localhost:3632

and run a build on the local machine

DISTCC_HOSTS='localhost:3633' CCACHE_PREFIX='distcc' CXX='ccache g++' make -j8

The compilation chain is as follow:

  1. ccache is run instead of g++.
  2. ccache checks if it has a locally (on the client) cached version of compilation result. If so, the result is returned.
  3. If not, distcc is called and performs compilation on the SERVER.
  4. Compilation result is stored in ccache’s cache and “returned back”.

About this Archive

This page is an archive of entries from September 2009 listed from newest to oldest.

August 2009 is the previous archive.

October 2009 is the next archive.

Find recent content on the main index or look in the archives to find all content.


OpenID accepted here Learn more about OpenID