chemeq command not found

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

Introduction

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

chemeq: command not found

or when using sudo you get the following error message

sudo: chemeq: command not found

Solutions to chemeq: command not found

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

In Ubuntu chemeq is provided by chemeq package.

chemeq is:

chemeq is a basic standalone filter written in C language, flex and bison. It inputs strings like: 2H2 + O2 —> 2 H2O then it outputs LaTeX code and messages about the equilibrium of a chemical reaction.

example:~/src$ echo “2H2 + O2 —> 2 H2O” | chemeq -lc 2,H_{2},+,O_{2},\rightarrow,2,H_{2}O OK

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

sudo apt-get -y install chemeq

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

You can also use apt command to install chemeq.

sudo apt -y install chemeq

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

sudo aptitude install chemeq

Summary

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