Install

clang comes with it. Pick your platform.

Zevic uses clang (15 or newer). The installation methods below set clang up for you as well.

Ubuntu / Debian (amd64)

curl -fsSL https://zevic-lang.github.io/zevic/zevic.gpg | sudo tee /usr/share/keyrings/zevic.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/zevic.gpg] https://zevic-lang.github.io/zevic stable main" | sudo tee /etc/apt/sources.list.d/zevic.list
sudo apt update && sudo apt install zevic

To install a .deb directly, use zevic_0.4.5_amd64.deb from the releases.

Windows

winget install zevic-lang.Zevic

This also installs LLVM (LLVM.LLVM). The Visual Studio Build Tools are needed for linking. zevic-0.4.5-windows-x64-setup.exe (an installer) and a .zip are on the releases page too.

macOS (Apple Silicon)

Run brew install llvm first, then install zevic-0.4.5-macos-arm64.pkg from the releases, or use install.sh.

Linux (tar.gz)

Extract zevic-0.4.5-linux-x64.tar.gz and put its bin directory on your PATH. Install clang separately (for example sudo apt install clang).

Termux (Android)

There is no prebuilt package yet. Build from source.

pkg install clang make git
git clone https://github.com/zevic-lang/zevic
cd zevic
make
export ZEVIC_HOME="$PWD"
export PATH="$PWD/build:$PATH"

Build from source

You need make and clang 15 or newer. No C compiler is needed.

git clone https://github.com/zevic-lang/zevic
cd zevic
make            # build/zevic, build/zevpm, build/zevfmt
make test       # golden tests, zevpm tests and the examples
./build/zevic examples/01_hello.zev -o hello && ./hello

Check that it works

module Main

import Zevic.Console

fn Main() {
    Console.Println("Hello, World!")
}
zevic hello.zev -o hello
./hello

Troubleshooting

  • If you see clang was not found, install clang or point ZEVIC_CLANG at it
  • If the standard library cannot be found, set ZEVIC_HOME to the repository (or to share/zevic)
  • The first build compiles the runtime and the GC once and stores them in ~/.cache/zevic (%LOCALAPPDATA%\zevic\cache on Windows; change it with ZEVIC_CACHE)