Install and configure the D-language compiler

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.