Installing D1 and D2 side by side on linux
rmcguire
rjmcguire at gmail.com
Fri Nov 6 01:45:40 PST 2009
Justin Johansson <no at spam.com> wrote:
> I got motivated by Walter putting out latest cuts of D1 and D2 (a D2 update in
less than
> a week recently!), so ...
>
> Rather than having a single global install of DMD for linux, I'd like to have
both D1 and D2
> installed (i.e. distros unzipped into)
> /opt/dmd1 and /opt/dmd2 respectively
>
> and then be able to envoke rdmd on either version using the full path to the
executable.
>
> Unfortunately seems like this doesn't work and rdmd can't find dmd in either
case:
>
> D1
>
> /opt/dmd1/linux/bin/rdmd test.d
> sh: dmd: not found
>
> D2
>
> /opt/dmd2/linux/bin/rdmd test.d
> sh: dmd: not found
> sh: dmd: not found
>
> So what's the best way to do a side-by-side install of D1 and D2 on linux?
>
> As usual, thanks for all kind assistance,
>
> -- Justin Johansson
>
>
I do the same as Lutger.
only difference: mine is @ /usr/local/lib/d/
symlink @ /usr/local/lib/d/dmd -> /usr/local/lib/d/dmd.2.035
symlink @ /usr/local/bin/dmd -> /usr/local/lib/d/dmd/bin/dmd
etc...
/usr/local/lib/d/dmd/dmd.2.035
/usr/local/lib/d/dmd/dmd.1.050
etc...
you could make a wrapper script
I personally don't use rdmd
More information about the Digitalmars-d-learn
mailing list