Skip to content

Linux Environment Setup

Nathan Reagan edited this page Apr 23, 2025 · 9 revisions

Installing the VulkanSDK

Run the following in a bash terminal to install the VulkanSDK Tarball for x86_64 systems. Note that $sdkVersion may be modified as needed.

sdkVersion=1.3.236.0
outDirectory=/opt/vulkansdk
sdkTar=vulkansdk-linux-x86_64-$sdkVersion.tar.gz

sudo rm -rf $outDirectory
wget -P /tmp https://sdk.lunarg.com/sdk/download/$sdkVersion/linux/$sdkTar
sudo mkdir -p $outDirectory
sudo tar -xf /tmp/$sdkTar -C $outDirectory
rm -f /tmp/$sdkTar
sudo wget -P $outDirectory https://sdk.lunarg.com/sdk/download/$sdkVersion/linux/config.json

Additionally, append the following to your bash environment (e.g. ~/.bashrc), again updating the version number as needed:

export VULKAN_SDK=/opt/vulkansdk/1.3.236.0/x86_64
export PATH=$VULKAN_SDK/bin:$PATH
export LD_LIBRARY_PATH=$VULKAN_SDK/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export VK_LAYER_PATH=$VULKAN_SDK/share/vulkan/explicit_layer.d

Installing Dependencies

Run the following in a bash terminal for the target OS.

Ubuntu

sudo apt install \
    git \
    libx11-dev \
    libx11-xcb-dev \
    libxkbcommon-x11-dev \
    libxcb-cursor-dev \
    libxcb-xfixes0-dev \
    libxcb-keysyms1-dev \
    libxcursor-dev \
    libxrandr-dev \
    libxinerama-dev \
    libgl-dev \
    libxi-dev

RHEL8

sudo dnf install \
    git \
    libX11-devel \
    xcb-util-devel \
    libxkbcommon-x11-devel \
    xcb-util-cursor-devel \
    libxcb-devel \
    xcb-util-keysyms-devel \
    libXcursor-devel \
    libXrandr-devel \
    libXinerama-devel \
    mesa-libGL-devel \
    libXi-devel

Contributor Docs

User Docs

Clone this wiki locally