Edit /etc/dmd.conf to point the runtime library. The runtime library is found in src directory. My dmd.conf looks like [Environment] ;DFLAGS=-I%@P%/../src/phobos -I%@P%/../src/druntime/import -L-L%@P%/../lib DFLAGS=-I/usr/local/dmd/src/phobos -I/usr/local/dmd/src/druntime/import -L-L/usr/local/dmd/lib