pltcl command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pltcl: command not found
or when using sudo you get the following error message
sudo: pltcl: command not found
Solutions to pltcl: command not found
How To Fix pltcl: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pltcl is provided by plplot-tcl-bin package.
plplot-tcl-bin is:
PLplot is relatively small, portable, freely distributable, and is rich enough to satisfy most users. It has a wide range of plot types including line (linear, log), contour, 3D, fill, and almost 1000 characters (including Greek and mathematical) in its extended font set. The package is designed to make it easy to quickly get graphical output; only a handful of function calls is typically required. For more advanced use, virtually all aspects of plotting are configurable.
This package contains the pltcl and plserver programs for interactive use of the Tcl/Tk support for PLplot.
To fix this problem, we can install more using the command below.
sudo apt-get -y install plplot-tcl-bin
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install plplot-tcl-bin.
sudo apt -y install plplot-tcl-bin
Or if you have aptitude installed you can use the following command.
sudo aptitude install plplot-tcl-bin
Summary
In this tutorial we learn how to fix pltcl command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.