csv2pdf command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
csv2pdf: command not found
or when using sudo you get the following error message
sudo: csv2pdf: command not found
Solutions to csv2pdf: command not found
How To Fix csv2pdf: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu csv2pdf is provided by liblatex-table-perl package.
liblatex-table-perl is:
LaTeX::Table is a Perl extension for the automatic generation of LaTeX tables
LaTeX makes professional typesetting easy. Unfortunately, this is not entirely true for tables and the standard LaTeX table macros have a rather limited functionality. LaTeX::Table supports many CTAN packages and hides the complexity of using them behind an easy and intuitive API.
This module supports multipage tables via the xtab and the longtable package. For publication quality tables it utilizes the booktabs package. It also supports the tabularx and tabulary packages for nicer fixed-width tables. Furthermore, it supports the colortbl package for colored tables optimized for presentations. The powerful new ctable package is supported and especially recommended when footnotes are needed. LaTeX::Table ships with some predefined, good looking themes.
This module ships with two small utilities. The first, csv2pdf is a CSV to PDF converter. It is only about 100 lines of code short and only meant as an example application, but it is already very powerful. It requires Getopt::Long, Text::CSV, LaTeX::Encode and LaTeX::Driver.
The second utility is ltpretty. It takes a lazy formatted LaTeX table from STDIN (typically piped from Vim or emacs) and outputs a completely formatted table. This makes this module not only useful for automatically generated reports, but also saves a lot of typing work in creating custom tables.
To fix this problem, we can install more using the command below.
sudo apt-get -y install liblatex-table-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install liblatex-table-perl.
sudo apt -y install liblatex-table-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install liblatex-table-perl
Summary
In this tutorial we learn how to fix csv2pdf command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.