I had ldc2 and gdc compiled from source and working up until a month ago. Nothing has changed, except I can't remember the variable(s) I would set in the terminal to get ldc2 and gdc to work.
I get the following errors when trying to compile D source code;
gdc:
$ /home/Code/D/gdc/Bin/usr/local/bin/gdc -o t4 t4.d /home/Code/D/gdc/Bin/usr/local/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.4.5/cc1d: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
ldc2:
$ /home/Code/D/ldc2/bin/ldc2 -o t4 t4.d /home/Code/D/ldc2/bin/ldc2: error while loading shared libraries: libconfig++.so.8: cannot open shared object file: No such file or directory
I can't remember if it was just an addition to PATH or something to DFLAGS. Any ideas?
EDIT: Recompiling both LDC2 and GDC solved the problem, but I still don't know why I was getting the errors.