Installation

The compiler currently only supports UNIX-like systems, Windows support is planned for a future release.

As Native Package

Linux

Current Debian, Ubuntu, and Fedora

We provide deb and rpm packages hosted on packagecloud. These are built for a few versions of Debian, Ubuntu, and Fedora.
Guides on how to install them are available on their site. Once the fyrlang package is installed, the fyrc binary should be available on your PATH.

Debian Stretch, Ubuntu 18.04, Mint, and Derivatives

Since both Debian Stretch and Ubuntu 18.04 and earlier ship with ancient versions of npm, our build system fails on these. Because of this, we do not provide prebuilt packages for these and other distributions based in them, including Linux Mint 19.1.

Since the compiler itself is hosted on nodejs and the gcc calls work on C99 code, packages from other versions should work fine. We have tested some of them on different versions and have not seen any issues.

Example Workaround

There are multiple ways to get different versions of the packages on a system. The script provided by packagecloud supports specifying the distro and version:

curl -s https://packagecloud.io/install/repositories/vs-ude/fyrlang/script.deb.sh | sudo os=ubuntu dist=disco bash

Manually editing the sources in /etc/apt/sources.list.d/vs-ude_fyrlang.list is another way:

deb https://packagecloud.io/vs-ude/fyrlang/ubuntu/ disco main
deb-src https://packagecloud.io/vs-ude/fyrlang/ubuntu/ disco main

After this, a simple apt update && apt install fyrlang should do the trick. If you encounter issues while installing, please do not hesitate to contact us on GitHub.

Others

While we cannot support all Linux distributions ourselves, the community might create packages for them at some point. Other distributions might be supported, you can just search for a fyrlang package.
We will list other distro’s known packages here.

If you are interested in packaging Fyr for your distribution and have questions, please do not hesitate to contact us.

macOS/Homebrew

Additionally, we maintain a Homebrew Tap containing the fyrlang formula.

Once you have Homebrew installed, installing fyr is as easy as brew install vs-ude/fyr/fyrlang. The fyrc binary will be linked into your Homebrew path.

via NPM

We are currently in the process of rewriting the compiler using Go. The npm package will be removed once this reaches feature parity with the previous implementation.

An npm package is available in the standard npm registry. It can be installed in a project with a simple npm i fyrlang.

Please be aware that this will not install the fyrc binary in a place covered by your PATH. You will have to link it there yourself.

From Source

We are currently in the process of rewriting the compiler using Go. The requirements and process for source installation will change significantly.

Simply clone the repository and run npm install && npm run build. Working node, npm, and gcc executables are required, everything else will be installed by npm.
The fyrc executable can be found in bin/.

The install script also registers a git hook that will automatically rebuild the compiler after git pulls if necessary.