phing command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
phing: command not found
or when using sudo you get the following error message
sudo: phing: command not found
Solutions to phing: command not found
How To Fix phing: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu phing is provided by phing package.
phing is:
PHing Is Not GNU make; it’s a project build system based on Apache Ant. You can do anything with it that you could do with a traditional build system like GNU make, and its use of simple XML build files and extensible PHP “task” classes make it an easy-to-use and highly flexible build framework. Features include file transformations (e.g. token replacement, XSLT transformation, Smarty template transformations, etc.), file system operations, interactive build support, SQL execution, and much more.
Phing provides the following features:
- Simple XML buildfiles
- Rich set of provided tasks
- Easily extendable via PHP classes
To fix this problem, we can install more using the command below.
sudo apt-get -y install phing
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install phing.
sudo apt -y install phing
Or if you have aptitude installed you can use the following command.
sudo aptitude install phing
Summary
In this tutorial we learn how to fix phing command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.