gltfpack command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gltfpack: command not found
or when using sudo you get the following error message
sudo: gltfpack: command not found
Solutions to gltfpack: command not found
How To Fix gltfpack: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gltfpack is provided by gltfpack package.
gltfpack is:
gltfpack is a tool that can automatically optimize glTF files to reduce the download size and improve loading and rendering speed.
It substantially changes the glTF data by optimizing the meshes for vertex fetch and transform cache, quantizing the geometry to reduce the memory consumption and size, merging meshes to reduce the draw call count, quantizing and resampling animations to reduce animation size and simplify playback, and pruning the node tree by removing or collapsing redundant nodes. It will also simplify the meshes when requested to do so.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gltfpack
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gltfpack.
sudo apt -y install gltfpack
Or if you have aptitude installed you can use the following command.
sudo aptitude install gltfpack
Summary
In this tutorial we learn how to fix gltfpack command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.