Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2771,"date":"2019-12-14T19:21:13","date_gmt":"2019-12-14T19:21:13","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2771"},"modified":"2019-12-14T19:21:13","modified_gmt":"2019-12-14T19:21:13","slug":"dmd-on-ubuntu-14-04","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/dmd-on-ubuntu-14-04\/","title":{"rendered":"DMD on Ubuntu 14.04"},"content":{"rendered":"

D, a programming language that is considered a superset of C, is a low-level but highly productive language that allows you to develop many types of applications. This includes, but is not limited to console tools and network applications. With D becoming more popular in select programming communities, you may find it beneficial to invest time into learning and using it. This article will show you how to install the D DMD compiler onto Ubuntu 14.04. These steps were only tested on 14.04 – proceed with caution if you are using a different version of Ubuntu.<\/p>\n

Update Server<\/h3>\n

Run the following command to ensure that your server is up to date:<\/p>\n

apt-get update\r\napt-get dist-upgrade\r\n<\/code><\/pre>\n

Download and Install Dlang<\/h3>\n

While there are different versions of D that you can use (LDC, GDC, DMD), we will be downloading and installing DMD.<\/p>\n

For 32-bit:<\/p>\n

wget http:\/\/downloads.dlang.org\/releases\/2014\/dmd_2.066.1-0_i386.deb\r\ndpkg -i dmd_2.066.1-0_i386.deb\r\n<\/code><\/pre>\n

For 64-bit:<\/p>\n

wget http:\/\/downloads.dlang.org\/releases\/2014\/dmd_2.066.1-0_amd64.deb\r\ndpkg -i dmd_2.066.1-0_amd64.deb\r\n<\/code><\/pre>\n

After the installation finishes, you may see an error message. If you do, run the following command to complete the installation:<\/p>\n

apt-get install -f\r\n<\/code><\/pre>\n

This will download any dependencies needed for DMD to operate. Once everything is done, you can proceed to the next step.<\/p>\n

Verify Installation<\/h3>\n

You will want to verify that DMD is fully installed and operational. To do so, you will need to compile a small “Hello World” application. Create a file called\u00a0test.d<\/code>\u00a0and populate it with the following lines of code:<\/p>\n

module main;\r\n\r\nimport std.stdio;\r\n\r\nvoid main(string[] args)\r\n{\r\n    writeln(\"Hello World!\");\r\n}\r\n<\/code><\/pre>\n

Once you save the lines of code, run the following to compile it:<\/p>\n

dmd test.d\r\n<\/code><\/pre>\n

If everything is successful, you will see a\u00a0test<\/code>\u00a0executable file. Type\u00a0.\/test<\/code>\u00a0to execute it. The text\u00a0Hello World!<\/code>\u00a0will be printed to your console. You have successfully installed the DMD compiler onto your server.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[242,247],"manual_kb_tag":[424],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2771"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2771"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2771\/revisions"}],"predecessor-version":[{"id":2772,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2771\/revisions\/2772"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2771"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2771"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}