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/feed-rss2.php on line 8
Install DUB on Ubuntu 14.04 – AKLWEB HOST LLC Support Center https://support.aklwebhost.com Sun, 22 Dec 2019 01:01:24 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 Install DUB on Ubuntu 14.04 https://support.aklwebhost.com/knowledgebase/install-dub-on-ubuntu-14-04/ https://support.aklwebhost.com/knowledgebase/install-dub-on-ubuntu-14-04/#respond Sat, 14 Dec 2019 19:22:06 +0000 https://support.aklwebhost.com/?post_type=manual_kb&p=2773 In almost every programming language, there is a package manager that makes it easy to build your application along with all your dependencies. DUB, a package manager for D, makes it easy to build your application and also manage dependencies for your project. Dependencies can be found at http://code.dlang.org. This tutorial will show you how to install DUB on Ubuntu 14.04 x64.

Requirements

  • AKLWEB HOST VPS with Ubuntu 14.04 x64.
  • Basic knowledge of D.
  • Have DMD, LDC, or GDC installed (DMD is recommended).

Download DUB

You will need to download DUB. To do so, run:

wget http://code.dlang.org/files/dub-0.9.22-linux-x86_64.tar.gz

Extract and Install DUB

Extract what you have downloaded and install it by running the following commands:

tar xvf dub-0.9.22-linux-x86_64.tar.gz
mv dub /usr/local/bin

This will install DUB into the system making it available for use in your PATH variable.

Verify Installation

Verify your installation with this command:

dub init test

You should get a message beginning with Successfully created an empty project in and if you do, you can cd into the test directory and run dub, which will build and execute the code located in test/source/app.d. If you get a message saying Edit source/app.d to start your project., then you have successfully installed DUB.

Note: You may want to read the official DUB documents to learn more on how you can setup your dependencies, and your project the way you wish to set it up. This will be extremely useful for multi-deployment when building on different platforms (and possibly in the future for different platforms by cross compiling).

]]>
https://support.aklwebhost.com/knowledgebase/install-dub-on-ubuntu-14-04/feed/ 0