The compiler currently only supports UNIX-like systems, Windows support is planned for a future release.
We are currently in the process of rewriting the compiler using Go. The package provided here are based on the old version. Currently, latest Fyr must be cloned from GitHub and compiled.
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.
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.
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.
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.
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.
Simply clone the repository and run
The fyrc executable can be found in the same directory.
Now set the environment variables in the cloned directory like this:
export FYRBASE=`pwd` export PATH=$PATH:$FYRBASE
To test your installation run