Thread overview
DMD Mac installation instruction
Apr 27, 2009
Jacob Carlborg
Apr 27, 2009
digited
April 27, 2009
The installation instructions for dmd mac, at http://www.digitalmars.com/d/1.0/dmd-osx.html, says to put dmd.conf in /etc but it seems that it doesn't work. I recommend changing that to: put the dmd.conf in the same directory as dmd.
April 27, 2009
Jacob Carlborg wrote:
> The installation instructions for dmd mac, at http://www.digitalmars.com/d/1.0/dmd-osx.html, says to put dmd.conf in /etc but it seems that it doesn't work. I recommend changing that to: put the dmd.conf in the same directory as dmd.

/etc/dmd.conf is disabled on Mac OS X and FreeBSD...

            if (FileName::exists(filename))
                goto Ldone;
            }

For linux [sic], it looks in /etc if not with argv0.

            if (!filename)
                goto Letc;      // argv0 not found on path

--anders
April 27, 2009
Anders F Björklund Wrote:

> Jacob Carlborg wrote:
> > The installation instructions for dmd mac, at http://www.digitalmars.com/d/1.0/dmd-osx.html, says to put dmd.conf in /etc but it seems that it doesn't work. I recommend changing that to: put the dmd.conf in the same directory as dmd.
> 
> /etc/dmd.conf is disabled on Mac OS X and FreeBSD...
> 
>              if (FileName::exists(filename))
>                  goto Ldone;
>              }
> 
> For linux [sic], it looks in /etc if not with argv0.
> 
>              if (!filename)
>                  goto Letc;      // argv0 not found on path
> 
> --anders

I've successfully installed dmd & tango on osx 10.5.6: I've put dmd.conf in /etc, libs in /usr/lib and sources in /usr/share/d (or maybe in  /usr/local/share/d) and writed it to dmd.conf, all works fine.
I also chmod'ed dmd to 775, maybe that helped.