-
Notifications
You must be signed in to change notification settings - Fork 1
System dependencies
Ingur Veken edited this page Jul 22, 2026
·
2 revisions
raylib-starter needs git, zip, zig 0.16,
and the usual graphics development libraries (OpenGL, X11, Wayland).
sudo apt update
sudo apt install git curl zip xz-utils pkg-config libgl1-mesa-dev \
libwayland-dev libwayland-bin libxkbcommon-dev \
libx11-dev libxext-dev libxrandr-dev libxinerama-dev \
libxcursor-dev libxi-dev libxrender-dev libxfixes-devsudo dnf install git curl zip xz pkgconf-pkg-config mesa-libGL-devel \
wayland-devel libxkbcommon-devel \
libX11-devel libXext-devel libXrandr-devel libXinerama-devel \
libXcursor-devel libXi-devel libXrender-devel libXfixes-develsudo pacman -S --needed git curl zip pkgconf mesa libglvnd \
wayland libxkbcommon \
libx12 libxext libxrandr libxinerama \
libxcursor libxi libxrender libxfixessudo zypper install git curl zip xz pkg-config Mesa-libGL-devel \
wayland-devel libxkbcommon-devel \
libX11-devel libXext-devel libXrandr-devel libXinerama-devel \
libXcursor-devel libXi-devel libXrender-devel libXfixes-develFor NixOS / devenv users, we ship a config that provides the whole toolchain:
devenv shell
# or auto activate on `cd` (requires direnv)
# https://devenv.sh/integrations/direnv/
devenv allowDistro packages often lag behind or move ahead, so install zig 0.16 from the official downloads:
mkdir -p ~/.local/bin
curl -fsSL https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz | tar -xJ -C ~/.local
ln -sf ~/.local/zig-x86_64-linux-0.16.0/zig ~/.local/bin/zigCheck it works:
zig version # 0.16.0If zig is not found, ~/.local/bin is not on your PATH yet: log out and back
in, or add export PATH="$HOME/.local/bin:$PATH" to your shell profile.
The web target needs emscripten:
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk && ./emsdk install latest && ./emsdk activate latest
source ./emsdk_env.sh