Install Fly

Latest Release

Loading…

Download for your platform:

All Platforms

Platform Architecture Version

Notes

  • Linux / macOS: after downloading, make the binary executable with chmod +x fly and move it to a directory in your PATH (e.g. /usr/local/bin).
  • Windows: unzip the archive and add the folder to your PATH environment variable.
  • Fly is currently in pre-release. Expect breaking changes between versions.

Build from Source

Requires CMake 3.24+, LLVM 20.1.8, and a C++17 compiler.

Linux

1. Clone the repository

git clone https://github.com/fly-lang/fly.git

2. Install build dependencies

Debian / Ubuntu:

sudo apt install build-essential libxml2-dev zlib1g-dev libtinfo-dev
# stacktrace support (debug purpose)
sudo apt install binutils-dev libdw-dev libdwarf-dev

Fedora / RHEL / CentOS Stream:

sudo dnf install gcc gcc-c++ make libxml2-devel zlib-devel ncurses-devel
# stacktrace support (debug purpose)
sudo dnf install binutils-devel elfutils-devel libdwarf-devel

openSUSE:

sudo zypper install gcc gcc-c++ make libxml2-devel zlib-devel ncurses-devel
# stacktrace support (debug purpose)
sudo zypper install binutils-devel libdw-devel libdwarf-devel

Arch Linux:

sudo pacman -S base-devel libxml2 zlib ncurses
# stacktrace support (debug purpose)
sudo pacman -S libdwarf elfutils

3. Configure and build

cd fly
mkdir build && cd build
cmake ..
cmake --build .

4. Run tests (must be run from the build directory)

ctest

macOS

1. Clone the repository

git clone https://github.com/fly-lang/fly.git

2. Install Xcode Command Line Tools

xcode-select --install

3. Install build dependencies via Homebrew

brew install cmake libxml2 zlib

4. Configure and build

cd fly
mkdir build && cd build
cmake ..
cmake --build .

5. Run tests

ctest

Windows

1. Clone the repository

git clone --config core.autocrlf=false https://github.com/fly-lang/fly.git

2. Install dependencies via vcpkg

vcpkg install zstd:x64-windows

3. Configure and build

cd fly
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="%VCPKG_INSTALLATION_ROOT%\scripts\buildsystems\vcpkg.cmake"
cmake --build . --config Release

4. Run tests

ctest -C Release