Skip to content

Commit

Permalink
Clean up installation directions (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras authored Mar 8, 2024
1 parent 9340b9d commit d22e430
Showing 1 changed file with 12 additions and 38 deletions.
50 changes: 12 additions & 38 deletions docs/INSTALLATION.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,31 @@
# Prerequisites

The D language track requires that you have the following software
installed on your system:
The D language track requires that you have the following software installed on your system:

* a D version 2 compiler
* (optional but recommended) DUB

## Prerequisite: D version 2 Compiler

On the D language's website [dlang.org](https://dlang.org) the most recent compiler
version of the reference compiler DMD (Digital Mars D) can be downloaded and installed:

### Windows

* [Installer](http://downloads.dlang.org/releases/2.x/2.071.1/dmd-2.071.1.exe)
* or: [Archive](http://downloads.dlang.org/releases/2.x/2.071.1/dmd.2.071.1.windows.7z)
* using [chocolatey](https://chocolatey.org/packages/dmd): choco install dmd

### Mac OS X

* .dmg [package](http://downloads.dlang.org/releases/2.x/2.071.0/dmd.2.071.0.dmg)
* or: [Archive](http://downloads.dlang.org/releases/2.x/2.071.0/dmd.2.071.0.osx.tar.xz)
* using [Homebrew](http://brew.sh/): brew install dmd

### Linux / FreeBSD
To quickly install dmd within your user directory, run: *curl -fsS https://dlang.org/install.sh | bash -s dmd*

Packages for various distributions are provided:

* [ArchLinux](https://wiki.archlinux.org/index.php/D_(programming_language)
* [Debian/Ubuntu](http://d-apt.sourceforge.net/)
* [Fedora/CentOS](http://dlang.org/download.html#dmd)
* [Gentoo](https://wiki.gentoo.org/wiki/Dlang)
* [OpenSuse](http://dlang.org/download.html#dmd)
On the D language's website [dlang.org](https://dlang.org), the most recent compiler version of the reference compiler DMD (Digital Mars D) can be downloaded and installed for several platforms.
See the [official downloads page](https://dlang.org/download.html) for more information.
On Windows, an alternative solution is [to use Chocolatey](https://chocolatey.org/packages/dmd).
On Intel-based Macs, an alternative solution is [to use Homebrew](https://formulae.brew.sh/formula/dmd).

### Other compilers
Besides the DMD reference compiler which uses its own backend, there are two other compilers that can
be fetched through the dlang.org download section:
Besides the DMD reference compiler which uses its own backend, there are two other compilers that can be fetched through the dlang.org download section:

* [GDC](http://gdcproject.org/downloads) which uses the GCC backend
* [LDC](https://github.com/ldc-developers/ldc#installation) based on the LLVM backend

GDC and LDC aren't always at the most recent DMD frontend's versions, but provide better optimization levels as well as
support for other platforms like e.g. ARM.
GDC and LDC aren't always at the most recent DMD frontend's versions but provide better optimization levels as well as support for other platforms like e.g. ARM.

See the wiki for [more information](https://wiki.dlang.org/Compilers).

### IDE support

There are also support for the D language in various IDEs e.g.
[VisualD](http://rainers.github.io/visuald/visuald/StartPage.html) for Visual Studio and
[D plugin](https://plugins.jetbrains.com/plugin/7727?pr=clion) for IntelliJ's CLion. See the wiki
for [more information](https://wiki.dlang.org/IDEs).
There are also support for the D language in various IDEs, e.g. [VisualD](http://rainers.github.io/visuald/visuald/StartPage.html) for Visual Studio and [D plugin](https://plugins.jetbrains.com/plugin/7727?pr=clion) for IntelliJ's CLion.
See the wiki for [more information](https://wiki.dlang.org/IDEs).

### Prerequisite: DUB

Expand All @@ -63,10 +37,10 @@ We recommend it as a way to simplify the process of running the tests, but it is

The [DUB website's download page](https://code.dlang.org/download) has a Windows installer.

#### Mac OS X
#### MacOS

* The [DUB website's download page](https://code.dlang.org/download) has OS X binaries.
* or using [Homebrew](http://brew.sh/): brew install dub
* The [DUB website's download page](https://code.dlang.org/download) has macOS binaries.
* For both Intel and Apple Silicon-based Macs, there is also [a Homebrew package available](https://formulae.brew.sh/formula/dub):

#### Linux

Expand Down

0 comments on commit d22e430

Please sign in to comment.