chartex command not found

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

Introduction

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

chartex: command not found

or when using sudo you get the following error message

sudo: chartex: command not found

Solutions to chartex: command not found

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

In Ubuntu chartex is provided by libspreadsheet-writeexcel-perl package.

libspreadsheet-writeexcel-perl is:

Spreadsheet::WriteExcel is a Perl module that can be used to create a cross- platform Excel binary file. Multiple worksheets can be added to a workbook and formatting can be applied to cells. Additionally, this module supports writing text, numeric values, formulas and hyperlinks to cells.

The Excel file produced by this module is compatible with Excel 5, 95, 97 and 2000. Generated files are also compatible with the Linux/UNIX spreadsheet applications OpenOffice.org, Gnumeric and XESS. The generated files are not compatible with MS Access.

This module cannot be used to read an Excel file. See Spreadsheet::ParseExcel (libspreadsheet-parseexcel-perl) or look at the main documentation for some suggestions. This module cannot be used to write to an existing Excel file.

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

sudo apt-get -y install libspreadsheet-writeexcel-perl

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

You can also use apt command to install libspreadsheet-writeexcel-perl.

sudo apt -y install libspreadsheet-writeexcel-perl

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

sudo aptitude install libspreadsheet-writeexcel-perl

Summary

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