Mac OSX installer for dmd

Michel Fortin michel.fortin at michelf.com
Wed Aug 4 16:26:32 PDT 2010


On 2010-08-04 17:56:31 -0400, Leandro Lucarella <luca at llucax.com.ar> said:

> I'd say:
> 
>> dmd
> 
> /usr/local/bin

That makes a lot of sense. I agree that /usr/local/{bin,lib,man} is the 
right place.

But you can't install dmd1 and dmd2 side by side this way (because of 
dmd.conf). That's why the D for Xcode installer put them elsewhere and 
simply add symlinks in /usr/local/bin. (Or to be more precise: 
symlink-like programs that set args[0] to the real dmd path.)


>> libphobos
> 
> /usr/local/lib
> 
>> phobos imports
> 
> /usr/local/include/d (d is just a suggestion, since at least
> Debian/Ubuntu uses that, well, without the "local" because are official
> packages, for gdc and ldc).
> 
> And you may add /usr/local/etc as a search path for dmd.conf (and look
> for it *before* /etc is searched) and install dmd.conf there.

About dmd.conf: perhaps dmd2 should look for dmd2.conf instead of 
dmd.conf. This way you can have both dmd1 and dmd2 installed side by 
side.


-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list