2.1. Installation#

Vala is available on multiple operating systems. Follow the isntallation instructions below for your operating system.

2.1.1. Linux#

Vala is available on a large variety of Linux distributions. Mostly you want to install other development files for libraries, that you want to use with vala.

2.1.1.1. Fedora#

Development files usually come in *-devel packages, for example libgee-devel.

$ sudo dnf install vala

2.1.1.2. Debian#

You need to install *-dev packages, to get development files on Debian.

$ sudo apt install valac

2.1.1.3. Arch Linux#

$ sudo pacman -S vala

2.1.2. *BSD#

First you install the port:

$ cd /usr/ports/lang/vala/ && make install clean

And then you can add the package:

$ pkg install vala

2.1.3. Windows#

2.1.3.1. MSYS2#

MSYS2 provides a Linux-like environment for Windows. First install MSYS2, then vala:

$ pacman -S mingw-w64-x86_64-gcc
$ pacman -S mingw-w64-x86_64-pkg-config
$ pacman -S mingw-w64-x86_64-vala

You also need to install all libraries you want to use individually.

2.1.3.2. Windows Subsystem for Windows (WSL)#

Install a Linux distribution in WSL and then go on with the installation instructions for Linux.

2.1.4. Mac OS X#

To install Vala on you can use brew, a package manager for OS X:

$ brew install vala

2.1.5. Verifying the Installation#

If you installed everyting correctly, if enter this line in your terminal:

$ valac --version

A line like this should be printed in the terminal:

Vala x.xx.x

If you don’t see any version number and instead see something like along the lines of The command 'valac' is not recognised or any other error, this means that Vala has not been installed correctly.

Please ensure that you’ve followed the installation instructions above and try again.

Warning

The minimum required Vala version for this tutorial is 0.56.0. You must have this version (or a higher version number) of Vala installed after following the instructions below

If not, we can’t guarantee that anything we’ve explained in this tutorial will work on your system.

If you are struggling to either:

  • Install Vala

  • Meet the minimum required Vala version requirement

Try asking the community for help.