Bug 9108 – Running dmd generates an error

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2012-12-02T14:09:00Z
Last change time
2013-02-10T10:41:00Z
Assigned to
nobody
Creator
alexander

Comments

Comment #0 by alexander — 2012-12-02T14:09:27Z
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