gspectrum command not found

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

Introduction

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

gspectrum: command not found

or when using sudo you get the following error message

sudo: gspectrum: command not found

Solutions to gspectrum: command not found

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

In Ubuntu gspectrum is provided by gcu-bin package.

gcu-bin is:

The GNOME Chemistry Utils provide C++ classes and Gtk+-2 widgets related to chemistry. They will be used in future versions of both gcrystal and gchempaint.

This package provides 4 applications:

  • a molecular structures viewer (GChem3D)
  • a molar mass calculator (GChemCalc)
  • a periodic table of the elements (GChemTable)
  • a spectra viewer (GSpectrum)

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

sudo apt-get -y install gcu-bin

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

You can also use apt command to install gcu-bin.

sudo apt -y install gcu-bin

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

sudo aptitude install gcu-bin

Summary

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