Skip to content

simplify, remove redundant info, more about install.sh #214

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 22 additions & 43 deletions welcome/install-d-locally.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,26 @@
# Install D locally

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](http://dlang.org/download.html) and installed:

### Windows

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

### macOS

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

### Linux / FreeBSD / macOS

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)

## 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](https://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.

See the wiki for [more information](https://wiki.dlang.org/Compilers)
The D language reference compiler is called DMD (Digital Mars D).
Also available are [LDC](https://github.com/ldc-developers/ldc)
(a [LLVM](http://llvm.org)-based D compiler).
and [GDC](https://gdcproject.org) (a [GCC](https://gcc.gnu.org/)-based D
compiler).
See [the Compilers wiki page](https://wiki.dlang.org/Compilers) for
more detailed information, but if you're new to D and aren't sure
which to install, install DMD.

## Download and Install

The [D downloads page](https://dlang.org/download.html) provides an
overview of the various D implementations, and contains links to
pre-built OS-specific DMD packages ready to download and install.

As an alternative to the OS-specific packages, there's also an
[install script](https://dlang.org/install.html)
for use with any Posix-like System (Linux, FreeBSD, MacOS)
that can install the various implementations (including multiple versions of them)
locally without requiring any administration rights.
See the [install script documentation](https://dlang.org/install.html) for details.

## Configure your editor

Expand All @@ -56,7 +35,7 @@ There are D plugins for at least the following editors:
- [Sublime Text](https://github.com/yazd/DKit)
- [Vim](https://wiki.dlang.org/D_in_Vim)
- [VS Code](https://marketplace.visualstudio.com/items/webfreak.code-d)
- [Visual Studio](http://rainers.github.io/visuald/visuald/StartPage.html)
- [__Visual Studio__](http://rainers.github.io/visuald/visuald/StartPage.html)

You may also want to try an IDE dedicated to D:

Expand Down