Compiler installation
At the time of writing this chapter, there are three D compilers to choose from: dmd, the Digital Mars compiler; gdc, the D compiler of GCC; and ldc, the D compiler that targets the LLVM compiler infrastructure.
dmd is the D compiler that has been used during the design and development of the language over the years. All of the examples in this BOOK have been tested with dmd. For that reason, it would be the easiest for you to start with dmd and try other compilers only if you have a specific need to. Note, as of this writing, dmd version 2.066.1 was the latest version tested.
To install the latest version of dmd, go to the download page at Digital Mars and select the compiler build that matches your computer environment. You must select the dmd build that is for your operating system and package management system, and whether you have a 32-bit or a 64-bit CPU and operating system. Do not install a D1 compiler. This BOOK covers only D version two.
The installation steps are different on different environments but it should be as easy as following simple on-screen instructions and clicking a couple of buttons