Running dmd on my Ubuntu 12.04 generates an error.
1. Download dmd.2.060.zip
2. Install D (Using the installation instructions on www.dlang.org/dmd-linux.html) To do this successfully, you must replace /bin/ with either /bin32/ or /bin64/ depending on the operating system, due to the fact that this zip does not have a /linux/bin/ path.
3. Attempt to compile a D file.
This generates the error:
Error: module object is in file 'object.d' which cannot be read
import path[0] = /etc/../../src/phobos
import path[1] = /etc/../../src/druntime/import
It should compile the D source code into a binary that can run successfully on the system.
This occurs with DMD 2.060 on Ubuntu 12.04.
Comment #1 by maxim — 2012-12-02T18:26:18Z
(In reply to comment #0)
> Error: module object is in file 'object.d' which cannot be read
> import path[0] = /etc/../../src/phobos
> import path[1] = /etc/../../src/druntime/import
>
Probably you have /etc/dmd.conf from previous installation. Normally these files are in /usr/include/d/...
Comment #2 by maxim — 2013-02-10T10:41:00Z
Since this is environment misconfiguration, marked as WORKSFORME