Language D is a strong candidate for mainstream static language overlord in Ubuntu. DMD is a compiler of the D language. Go to the address below to download the DMD and decompress it. (Among them, the source code of the DMD/src/DMD is the source code, and the DMD/sample/d is a few simple examples of the d language .) Bytes.
Language D is a strong candidate for mainstream static language overlord in Ubuntu. DMD is a compiler of the D language.
Go to the address below to download the DMD and decompress it. (Among them, the source code of the DMD/src/DMD is the source code, and the DMD/sample/d is a few simple examples of the d language .)
Http://www.digitalmars.com/d/dcompiler.html
Install the configuration file, and copy "/bin/DMD. conf" to "/usr/local/bin.
Add the execution permission for these files in the DMD/bin file.
Install the compiler and copy the preceding files to/usr/local/bin.
Install lib and copy the file "/lib/libphobos2.a" to "/usr/local/lib.
Install the source code and copy the file "/src/phobos" to/usr/local/src.
Install man and copy all files under "/man/man1" to "/usr/local/man/man1.
In this case, OK.
You can also place the "DMD. conf" file under "/etc", but change the lib and src paths to absolute paths. The path in the original file is marked with "% @ P %.
Test the compilation. If no file is found, it will be OK.
In fact, the D language is also red. The D language should be the king of the next static language for Java and C. Currently, several mainstream editors support the D language, such as vim, emacs, and scite.
A few of the examples contained in the DMD file can only be run in windows, which is a bit uncomfortable.