I added /usr/local/lib to my config: # cat /usr/local/etc/dmd2.conf [Environment] DFLAGS=-I/usr/local/include/d/phobos2 -I/usr/local/include/d/druntime/import -L-L/usr/local/lib32 -L-L/usr/local/lib -L-L%@P%/../lib64 -L--export-dynamic -L-lrt Now it's OK. Your help was very useful, thank you!