pst2pdf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pst2pdf: command not found
or when using sudo you get the following error message
sudo: pst2pdf: command not found
Solutions to pst2pdf: command not found
How To Fix pst2pdf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pst2pdf is provided by texlive-pstricks package.
texlive-pstricks is:
PSTricks core and all add-on packages.
This package includes the following CTAN packages:
auto-pst-pdf – Wrapper for pst-pdf (with some psfrag features)
bclogo – Creating colourful boxes with logos
dsptricks – Macros for Digital Signal Processing plots
luapstricks – A PSTricks backend for LuaLaTeX
makeplot – Easy plots from Matlab in LaTeX
pdftricks – Support for PSTricks in pdfTeX
pdftricks2 – Use PSTricks in pdfTeX
pedigree-perl – Generate TeX pedigree files from CSV files
psbao – Draw Bao diagrams
pst-2dplot – A PSTricks package for drawing 2D curves
pst-3d – A PSTricks package for tilting and other pseudo-3D tricks
pst-3dplot – Draw 3D objects in parallel projection, using PSTricks
pst-abspos – Put objects at an absolute position
pst-am – Simulation of modulation and demodulation
pst-antiprism – A PSTricks related package which draws an antiprism
pst-arrow – Special arrows for PSTricks
pst-asr – Typeset autosegmental representations for linguists
pst-bar – Produces bar charts using PSTricks
pst-barcode – Print barcodes using PostScript
pst-bezier – Draw Bezier curves
pst-blur – PSTricks package for “blurred” shadows
pst-bspline – Draw cubic Bspline curves and interpolations
pst-calculate – Support for floating point operations at LaTeX level
pst-calendar – Plot calendars in “fancy” ways
pst-cie – CIE color space
pst-circ – PSTricks package for drawing electric circuits
pst-coil – A PSTricks package for coils, etc
pst-contourplot – Draw implicit functions using the “marching squares” algorithm
pst-cox – Drawing regular complex polytopes with PSTricks
pst-dart – Plotting dart boards
pst-dbicons – Support for drawing ER diagrams
pst-diffraction – Print diffraction patterns from various apertures
pst-electricfield – Draw electric field and equipotential lines with PSTricks
pst-eps – Create EPS files from PSTricks figures
pst-eucl – Euclidian geometry with PSTricks
pst-exa – Typeset PSTricks examples, with code
pst-feyn – Draw graphical elements for Feynman diagrams
pst-fill – Fill or tile areas with PSTricks
pst-fit – Macros for curve fitting
pst-fr3d – Draw 3-dimensional framed boxes using PSTricks
pst-fractal – Draw fractal sets using PSTricks
pst-fun – Draw “funny” objects with PSTricks
pst-func – PSTricks package for plotting mathematical functions
pst-gantt – Draw GANTT charts with PSTricks
pst-geo – Geographical Projections
pst-geometrictools – A PSTricks package to draw geometric tools
pst-gr3d – Three dimensional grids with PSTricks
pst-grad – Filling with colour gradients, using PSTricks
pst-graphicx – A PSTricks-compatible graphicx for use with Plain TeX
pst-hsb – Curves with continuous colours
pst-infixplot – Using PSTricks plotting capacities with infix expressions rather than RPN
pst-intersect – Compute intersections of arbitrary curves
pst-jtree – Typeset complex trees for linguists
pst-knot – PSTricks package for displaying knots
pst-labo – Draw objects for Chemistry laboratories
pst-layout – Page layout macros based on PSTricks packages
pst-lens – Lenses with PSTricks
pst-light3d – Three dimensional lighting effects (PSTricks)
pst-lsystem – Create images based on a L-system
pst-magneticfield – Plotting a magnetic field with PSTricks
pst-marble – A PSTricks package to draw marble-like patterns
pst-math – Enhancement of PostScript math operators to use with PSTricks
pst-mirror – Images on a spherical mirror
pst-moire – A PSTricks package to draw moire patterns
pst-node – Nodes and node connections in PSTricks
pst-ob3d – Three dimensional objects using PSTricks
pst-ode – Solving initial value problems for sets of Ordinary Differential Equations
pst-optexp – Drawing optical experimental setups
pst-optic – Drawing optics diagrams
pst-osci – Oscgons with PSTricks
pst-ovl – Create and manage graphical overlays
pst-pad – Draw simple attachment systems with PSTricks
pst-pdf – Make PDF versions of graphics by processing between runs
pst-pdgr – Draw medical pedigrees using PSTricks
pst-perspective – Draw perspective views using PSTricks
pst-platon – Platonic solids in PSTricks
pst-plot – Plot data using PSTricks
pst-poker – Drawing poker cards
pst-poly – Polygons with PSTricks
pst-pulley – Plot pulleys, using PSTricks
pst-qtree – Simple syntax for trees
pst-rputover – Place text over objects without obscuring background colors
pst-rubans – Draw three-dimensional ribbons
pst-shell – Plotting sea shells
pst-sigsys – Support of signal processing-related disciplines
pst-slpe – Sophisticated colour gradients
pst-solarsystem – Plot the solar system for a specific date
pst-solides3d – Draw perspective views of 3D solids
pst-soroban – Draw a Soroban using PSTricks
pst-spectra – Draw continuum, emission and absorption spectra with PSTricks
pst-spinner – Drawing a fidget spinner
pst-stru – Civil engineering diagrams, using PSTricks
pst-support – Assorted support files for use with PSTricks
pst-text – Text and character manipulation in PSTricks
pst-thick – Drawing very thick lines and curves
pst-tools – PSTricks support functions
pst-tree – Trees, using PSTricks
pst-turtle – Commands for “turtle operations”
pst-tvz – Draw trees with more than one root node, using PSTricks
pst-uml – UML diagrams with PSTricks
pst-vectorian – Printing ornaments
pst-vehicle – A PSTricks package for rolling vehicles on graphs of mathematical functions
pst-venn – A PSTricks package for drawing Venn sets
pst-vowel – Enable arrows showing diphthongs on vowel charts
pst2pdf – A script to compile PSTricks documents via pdfTeX
pstricks – PostScript macros for TeX
pstricks-add – A collection of add-ons and bugfixes for PSTricks
pstricks_calcnotes – Use of PSTricks in calculus lecture notes
uml – UML diagrams in LaTeX
vaucanson-g – PSTricks macros for drawing automata
vocaltract – Visualise the vocal tract using LaTeX and PSTricks
To fix this problem, we can install more using the command below.
sudo apt-get -y install texlive-pstricks
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install texlive-pstricks.
sudo apt -y install texlive-pstricks
Or if you have aptitude installed you can use the following command.
sudo aptitude install texlive-pstricks
Summary
In this tutorial we learn how to fix pst2pdf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.