Mac OS X Installation

Justin Spahr-Summers Justin.SpahrSummers at gmail.com
Thu Jun 24 18:11:57 PDT 2010


On Thu, 24 Jun 2010 13:30:31 -0400, Nick Sabalausky <a at a.a> wrote:
> 
> "Justin Spahr-Summers" <Justin.SpahrSummers at gmail.com> wrote in message 
> news:MPG.268ca23b487143c59896a8 at news.digitalmars.com...
> > On Thu, 24 Jun 2010 01:29:53 -0500, Andrei Alexandrescu
> > <SeeWebsiteForEmail at erdani.org> wrote:
> >>
> >> On 06/23/2010 11:52 PM, chuck at freshsources.com wrote:
> >> > I have successfully installed D 2.0 on a number of Macs. However, the
> >> > latest attempt yields the following error when I try to compile any 
> >> > file:
> >> >
> >> > object.d: 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
> >> >
> >> > As usual, I faithfully followed the instructions at
> >> >
> >> > http://www.digitalmars.com/d/2.0/dmd-osx.html
> >> >
> >> > Any ideas on how to fix this? Thanks.
> >>
> >> Hi, Chuck!
> >>
> >> Looks like the files aren't where they are supposed to be. Try this:
> >>
> >> head /etc/../../src/druntime/import/object.di
> >>
> >> Normally you should see the first ten lines of that file. If there's an
> >> error, write back what the error message is.
> >>
> >>
> >> Andrei
> >
> > Isn't /etc/../.. the root directory? That seems like an awfully
> > incorrect place to the put the includes.
> >
> 
> No, "/etc/../" is root. "/etc/../../" is "/.." (ie parent of root), which is 
> nonsensical.
> 
> -------------------------------
> Not sent from an iPhone.

/etc is a soft link to /private/etc on all OS X systems I've seen. I 
also think /.. always refers to / on *nix, but I could be wrong there.


More information about the Digitalmars-d mailing list