D1/D2 co-install?

Robert Clipsham robert at octarineparrot.com
Sun May 17 15:50:10 PDT 2009


BCS wrote:
> Does anyone have a good solution to installing both D1 and D2 on the 
> same system?

Possible solutions:

  * Rename the D2 dmd binary to dmd2 and make sure it uses a different 
config file for each to use the right libs.
  * Install them in different directories and use a script to update 
your $PATH depending on if you want to use D1 or D2
  * Create a script that uses a different version of dmd depending on 
what parameters you pass to it (eg dmd -1 or dmd -2).
  * The simplest solution would probably be something like the following 
(on non-windows OSes):

alias dmd='/path/to/dmd1/binary/here'
alias dmd2='/path/to/dmd2/binary/here'

This will allow you to use dmd to compile D1 and dmd2 for D2.


More information about the Digitalmars-d-learn mailing list