Home

DVM - D Version Manager

DVM has moved to github: https://github.com/jacob-carlborg/dvm

DVM allows you to easily download and install D compilers and manage different versions of the compilers. When you switch D compiler with the "use" command the compiler will only be available in the current shell. This allows you to have one version of the compiler in one shell and another version in another shell. For example, have a D1 version in one shell and a D2 version in another.

Installation

General Installation Instructions:

  1. Download the DVM tool form: https:bitbucket.org/doob/dvm/downloads
  2. Add executable permissions to the downloaded file.
  3. Run the installation: $ ./<dvm> install dvm (where <dvm> is the name of the downloaded file)

Example of installation:

Mac OS X:
$ wget -O dvm https://bitbucket.org/doob/dvm/downloads/dvm-0.4.0-osx && chmod +x dvm && ./dvm install dvm

Linux 32bit:
$ wget -O dvm https://bitbucket.org/doob/dvm/downloads/dvm-0.4.0-linux-32 && chmod +x dvm && ./dvm install dvm

Linux 64bit:
$ wget -O dvm https://bitbucket.org/doob/dvm/downloads/dvm-0.4.0-linux-64 && chmod +x dvm && ./dvm install dvm

Windows:
Follow the general installation instructions.
https://bitbucket.org/doob/dvm/downloads/dvm-0.4.0-win

Upgrading from 0.2.0 to 0.3.0

It might be necessary to do a complete clean installation by removing ~/.dvm. This is in particular if you had any problems with the previous shell scripts not working.

Usage

Install Compilers

Install a D compiler (DMD): $ dvm install 2.060
Install a D compiler (DMD) with Tango as the standard library: $ dvm install 1.068 -t

Use a Compiler

Use a D compiler (DMD): $ dvm use 2.060
Use a D compiler (DMD) and set it to default: $ dvm use 2.060 -d
Show usage information:  $ dvm -h

License

The source code is available under the Boost Software License 1.0

Limitations

  • Currently DMD is the only supported compiler

Build Dependencies

Build Instructions

  1. Clone the repository: hg clone https://bitbucket.org/doob/dvm
  2. Change to the newly created directory
  3. Run: "dsss build"

Updated

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.