| 1 |
Due to bootstrapping and platform differences, installing DSSS from source can |
|---|
| 2 |
be a little bit complicated, but if you follow this list of steps it should |
|---|
| 3 |
work fine: |
|---|
| 4 |
|
|---|
| 5 |
1) Get a D compiler. DMD version 0.166 or newer should work, GDC 0.20 (or the |
|---|
| 6 |
latest snapshot until 0.20 is released) should work. |
|---|
| 7 |
|
|---|
| 8 |
2) If you currently have DSSS installed, UNINSTALL IT. To do this easily, just |
|---|
| 9 |
use the command 'dsss uninstall dsss' |
|---|
| 10 |
|
|---|
| 11 |
3) Use make to build DSSS with the appropriate Makefile. If you're using GDC |
|---|
| 12 |
use Makefile.gdc.posix, if you're using DMD on Windows use Makefile.dmd.win, |
|---|
| 13 |
if you're using DMD on GNU/Linux use Makefile.dmd.posix. There is not |
|---|
| 14 |
presently a Makefile for GDC on Windows, I believe Makefile.gdc.posix should |
|---|
| 15 |
work so long as you have MSYS installed. |
|---|
| 16 |
|
|---|
| 17 |
To use make with a specified Makefile (in this example, Makefile.gdc.posix): |
|---|
| 18 |
$ make -f Makefile.gdc.posix |
|---|
| 19 |
|
|---|
| 20 |
4) Install DSSS to whatever directory you prefer. On Unix-like systems, a |
|---|
| 21 |
common choice would be /usr, or /opt/d. You can also install it into your |
|---|
| 22 |
home directory. On Windows, a path like C:\DSSS or just C:\D is sensible. |
|---|
| 23 |
|
|---|
| 24 |
To install DSSS to the directory you've chosen on Unix (this may require you |
|---|
| 25 |
to become root, depending on what directory you've chosen): |
|---|
| 26 |
$ ./dsss install --prefix=<chosen directory> |
|---|
| 27 |
|
|---|
| 28 |
To install DSSS to the directory you've chosen on Windows: |
|---|
| 29 |
> dsss install --prefix=<chosen directory> |
|---|
| 30 |
|
|---|
| 31 |
5) Add DSSS' "bin" directory to your PATH environment variable. On Unix (with |
|---|
| 32 |
bash): |
|---|
| 33 |
$ export PATH="<chosen directory>/bin:$PATH" |
|---|
| 34 |
On Windows: |
|---|
| 35 |
> set PATH=<chosen directory>\bin;%PATH% |
|---|