ctmviewer command not found

In this troubleshooting guide we learn how to fix ctmviewer command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ctmviewer: command not found

or when using sudo you get the following error message

sudo: ctmviewer: command not found

Solutions to ctmviewer: command not found

How To Fix ctmviewer: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ctmviewer is provided by openctm-tools package.

openctm-tools is:

OpenCTM — the Open Compressed Triangle Mesh file format — is a file format, a software library and a tool set for compression of 3D triangle meshes. The geometry is compressed to a fraction of comparable file formats, and the format is easily accessible through a simple, portable API.

This package contains the programs ctmconv and ctmview, used to convert and view OpenCTM files.

To fix this problem, we can install more using the command below.

sudo apt-get -y install openctm-tools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install openctm-tools.

sudo apt -y install openctm-tools

Or if you have aptitude installed you can use the following command.

sudo aptitude install openctm-tools

Summary

In this tutorial we learn how to fix ctmviewer command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.