D Language Getting started with D Language Installation or Setup

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

The D programming language's standard compiler DMD can run on all major platforms. To install DMD see here. To install by command line you may run the command (found on the D website):

curl -fsS https://dlang.org/install.sh | bash -s dmd

Package Managers

Arch Linux

pacman -S dlang

Chocolatey

choco install dmd

Gentoo

layman -f -a dlang

OSX Homebrew

brew install dmd

Debian/Ubuntu

Installation on Debian/Ubuntu distributions needs that the APT repository be added to the sources list.

wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
wget -qO - https://dlang.org/d-keyring.gpg | sudo apt-key add -
apt-get update
apt-get install dmd-bin

Other compilers

LDC is a D compiler thats uses the oficial DMD compiler frontend and LLVM as its backend.

GDC is a D compiler that uses the GCC backend to generate code.

IDEs

In order to make life easier you may also want to install an IDE (Integrated Development Environment). The D-Language Wiki has a list of available IDEs and Plugins for all Platforms here.



Got any D Language Question?