spirv-reduce command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
spirv-reduce: command not found
or when using sudo you get the following error message
sudo: spirv-reduce: command not found
Solutions to spirv-reduce: command not found
How To Fix spirv-reduce: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu spirv-reduce is provided by spirv-tools package.
spirv-tools is:
The project includes an assembler, binary module parser, disassembler, validator, and optimizer for SPIR-V. Except for the optimizer, all are based on a common static library. The library contains all of the implementation details, and is used in the standalone tools whilst also enabling integration into other code bases directly. The optimizer implementation resides in its own library, which depends on the core library.
To fix this problem, we can install more using the command below.
sudo apt-get -y install spirv-tools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install spirv-tools.
sudo apt -y install spirv-tools
Or if you have aptitude installed you can use the following command.
sudo aptitude install spirv-tools
Summary
In this tutorial we learn how to fix spirv-reduce command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.