Thread overview
[Issue 9108] New: Running dmd generates an error
Dec 03, 2012
Maxim Fomin
Feb 10, 2013
Maxim Fomin
December 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9108

           Summary: Running dmd generates an error
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: alexander@alexandermohn.com


--- Comment #0 from alexander@alexandermohn.com 2012-12-02 14:09:27 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 03, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9108


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim@maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim@maxim-fomin.ru> 2012-12-02 18:26:18 PST ---
(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/...

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9108


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #2 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-02-10 10:41:00 PST ---
Since this is environment misconfiguration, marked as WORKSFORME

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------