ecpg command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ecpg: command not found
or when using sudo you get the following error message
sudo: ecpg: command not found
Solutions to ecpg: command not found
How To Fix ecpg: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ecpg is provided by libecpg-dev package.
libecpg-dev is:
This package contains the necessary files to build ECPG (Embedded PostgreSQL for C) programs. It includes the development libraries and the preprocessor program ecpg.
PostgreSQL is an object-relational SQL database management system.
Install this package if you want to write C programs with SQL statements embedded in them (rather than run by an external process).
To fix this problem, we can install more using the command below.
sudo apt-get -y install libecpg-dev
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libecpg-dev.
sudo apt -y install libecpg-dev
Or if you have aptitude installed you can use the following command.
sudo aptitude install libecpg-dev
Summary
In this tutorial we learn how to fix ecpg command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.