vibe.d is an asynchronous I/O and web application framework written in D. It already contains many supplemental features such as database support to be able to offer a complete development toolbox. Extensions are supported in the form of DUB modules.
Visit the website at http://vibed.org/ for more information.
Instead of installing vibe.d, it is now recommended to use
DUB for building vibe.d based
applications. Once DUB is installed, you can use vibe.d by adding the following
dependency to a package.json
file in your project's directory:
{
"name": "your-project-identifier",
"dependencies": {
"vibe-d": ">=0.7.12"
}
}
Invoking dub
will then automatically download the latest vibe.d and compile
and run the project.
- Install DMD using the installer on http://dlang.org/download.html
- Unzip the vibe archive (or git clone) and add the bin/ subfolder to your PATH variable
- Run any vibe apps using
vibe
from the application's root directory
If you don't have brew installed, install it according to their install instructions and install libevent.
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
brew install libevent
(Note: Install brew only if you do not have macports, as they will conflict)
Install DMD using the installer on http://dlang.org/download.html.
Unzip the vibe archive (or git clone) and use the "vibe" script to run applications.
Optionally, it's recommended to create a symlink in /usr/bin so you don't have to specify the path everytime:
sudo ln -s /path/to/vibe/bin/vibe /usr/bin/vibe
Go to https://code.google.com/p/d-apt/wiki/APT_Repository and follow the instructions. This will setup the APT repository of Jordi Sayol, who maintains a number of D packages for Debian based systems (*).
Installing is then done using
sudo apt-get install vibe
(*) Note that Debian 6 (Squeeze) and older requires manual installation (see below).
Install vibe dependencies
sudo apt-get install libevent-dev libssl-dev
On 32-bit linux: Install DMD-i386
sudo apt-get install g++ gcc-multilib xdg-util
wget "http://ftp.digitalmars.com/dmd_2.058-0_i386.deb"
sudo dpkg -i dmd_2.058-0_i386.deb
On 64-bit linux: Install DMD-amd64
sudo apt-get install g++ gcc-multilib xdg-util
wget "http://ftp.digitalmars.com/dmd_2.058-0_amd64.deb"
sudo dpkg -i dmd_2.058-0_amd64.deb
Unzip the vibe archive (or git clone) and use the "vibe" script to run applications
Optionally, it's recommended to create a symlink in /usr/bin so you don't have to specify the path everytime:
sudo ln -s /path/to/vibe/bin/vibe /usr/bin/vibe
A more complete alterative is to run ./setup-linux.sh
which will install/uninstall vibe.d in /usr/local. This will also create a configuration file for setting a user/group for privilege lowering.
You need to have the following dependencies installed:
After that, unzip the vibe archive (or git clone) and use the "vibe" script to run applications
Optionally, it's recommended to create a symlink in /usr/bin so you don't have to specify the path on every invocation:
sudo ln -s /path/to/vibe/bin/vibe /usr/bin/vibe
or
su -c ln -s /path/to/vibe/bin/vibe /usr/bin/vibe
A more complete alterative is to run ./setup-linux.sh
which will install/uninstall vibe.d in /usr/local. This will also create a configuration file for setting a user/group for privilege lowering.
(*) Note that some current linux distributions such as Debian squeeze or CentOS 6 may only ship libevent 1.4, in this case you will have to manually compile the latest 2.0.x version:
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
make install
ldconfig
Install the DMD compiler and vibe.d's dependencies using portupgrade or a similar mechanism:
sudo portupgrade -PN devel/libevent2 devel/pkgconf
You can now run applications by directly running /path/to/vibe.d/bin/vibe
, putit in your PATH or make a symlink in /usr/bin
.
A more complete alterative is to run ./setup-freebsd.sh
which will install the symlink and also creates a configuration file for setting a user/group for privilege lowering.