Difference between revisions of "Installing DMD"

From D Wiki
Jump to: navigation, search
(Add an explanation of how to get a 64-bit build system working on a recent Windows environment)
(DMD works fine with VS 2015 now, and has for a while.)
Line 8: Line 8:
 
[[Installing DMD on 64-bit Windows 7 (COFF-compatible)]]
 
[[Installing DMD on 64-bit Windows 7 (COFF-compatible)]]
  
The [http://www.microsoft.com/en-us/download/details.aspx?id=8279 Windows 7 SDK] may not work for newer systems (e.g. if .NET > 4 is installed). If that is the case then the [https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx Visual Studio Community editions] can be used to obtain a 64-bit build environment. ''Note that it is not possible to use VS 2015 until [https://issues.dlang.org/show_bug.cgi?id=14849 issue 14849] is fixed. So [https://www.visualstudio.com/en-us/news/vs2013-community-vs.aspx VS Community 2013] can be used until then.''
+
The [http://www.microsoft.com/en-us/download/details.aspx?id=8279 Windows 7 SDK] may not work for newer systems (e.g. if .NET > 4 is installed). If that is the case then the [https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx Visual Studio Community editions] can be used to obtain a 64-bit build environment.
  
 
== Debian Linux compatible ==
 
== Debian Linux compatible ==

Revision as of 13:03, 30 December 2016

Windows

Standard procedure

Easiest and fastest way to get your DMD running on MS Windows is to use the provided installers.

If you'll encounter any problems with missing libraries or non-existing executables, take a look on this.

Alternative ways

Installing DMD on 64-bit Windows 7 (COFF-compatible)

The Windows 7 SDK may not work for newer systems (e.g. if .NET > 4 is installed). If that is the case then the Visual Studio Community editions can be used to obtain a 64-bit build environment.

Debian Linux compatible

If you have distribution that's based on APT package manager, you might use APT Repository.

Arch Linux

There is a package in community repository for 32 bit dmd and | 64 bit dmd.

Gentoo Linux

You can use the ebuilds from the dlang overlay like this:

emerge app-portage/layman
layman -f -a dlang
emerge dev-lang/dmd

Note that if you are using Hardened Gentoo, you may need to use a non-hardened linker or specify PIC=1 when compiling Phobos.

Other POSIX compliant

You might try looking for precompiled package for your distribution on http://dlang.org/download.html

If it's isn't there you might try building from source.