Note: DMD only works on 32bit systems. 64bit isn't supported yet.
For the D2 compiler:
svn co http://svn.dsource.org/projects/dmd/trunk dmd-2.x cd dmd-2.x/src ln -s . mars make -f linux.mak
For the D1 compiler
svn co http://svn.dsource.org/projects/dmd/branches/dmd-1.x cd dmd-1.x/src ln -s . mars make -f linux.mak