Vala之入门篇(二)Vala安装

Windows上的Vala
https://wiki.gnome.org/Projects/Vala/ValaOnWindows

MSYS2

MSYS2项目使Windows版Vala的版本保持最新。

MSYS2安装程序开始,然后使用pacman -S软件包安装所需的软件包。

对于64位Windows,软件包体系结构为x86_64要为32位Windows安装软件包,请将下面列表中的x86_64更改i686

要在64位Windows上安装Vala:

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

MSYS2是基于MinGW的发行版,并提供了在Windows中运行的Unix(POSIX)环境。这使为POSIX环境开发的构建工具可以在Windows下运行。

要开始使用此环境,通常使用启动器启动启动外壳程序进行开发。对于本机64位Windows开发,您需要mingw64.exe启动器。其他发射是mingw32.exe了32位Windows的开发和msys2.exe对POSIX发展。

Vala on Linux

Vala is well supported by many Linux distributions. Some distributions separate header files from libraries, so additional development packages may have to be installed for the header files.

 

Fedora

Installation on Fedora 22/23 is straightforward:

 

# sudo dnf install vala

Development packages are usually suffixed -devel. eg. libgee-devel and the Debugging Symbols needed by tools like Nemiver can be installed using the -debuginfo suffix eg. libgee-debuginfo.

 

CentOS

Installation on CentOS is straightforward:

 

# sudo yum install vala

Development packages are usually suffixed -devel. eg. libgee-devel and the Debugging Symbols needed by tools like Nemiver can be installed using the -debuginfo suffix eg. libgee-debuginfo.

 

Debian

Installation on Debian is straightforward:

 

$ sudo apt install valac

Development packages are usually suffixed -dev. eg. libgee-0.8-dev and the Debugging Symbols needed by tools like Nemiver can be installed using the -dbg suffix eg. libgee-0.8-2-dbg.

 

Ubuntu and Derivatives

Although Ubuntu is based on Debian, the packages in the Ubuntu repositories are often out of date, especially the LTS releases. To install the most recent version of Vala you should add the Vala Team PPA to your software sources:

 

$ sudo add-apt-repository ppa:vala-team

On some older versions of Ubuntu you may need to install the add-apt-repository tool first:

 

$ sudo apt-get install software-properties-common

Then you can install the latest version:

 

$ sudo apt-get update
$ sudo apt-get install valac
posted @ 2020-09-06 20:18  ZXJ~佳  阅读(904)  评论(0编辑  收藏  举报