class.x command not found

In this troubleshooting guide we learn how to fix class.x command not found error message

Introduction

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

class.x: command not found

or when using sudo you get the following error message

sudo: class.x: command not found

Solutions to class.x: command not found

How To Fix class.x: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu class.x is provided by palp package.

palp is:

This package contains various tools to work with lattice polytopes:

  • mori.x computes star triangulations of a polytope
  • cws.x creates weight systems and combined weight systems
  • class.x classifies reflexive polytopes
  • poly.x computes data of a polytope
  • nef.x computes Hodge numbers of nef-partitions

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

sudo apt-get -y install palp

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

You can also use apt command to install palp.

sudo apt -y install palp

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

sudo aptitude install palp

Summary

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