phplex command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
phplex: command not found
or when using sudo you get the following error message
sudo: phplex: command not found
Solutions to phplex: command not found
How To Fix phplex: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu phplex is provided by python3-phply package.
python3-phply is:
phply is a parser for the PHP programming language written using PLY, a Lex/YACC-style parser generator toolkit for Python. With this parser you can:
- Convert PHP code to Python
- Run PHP templates in a Python environment
- Learn more about parsing “industrial” languages, warts and all
This is the Python 3 version of the package and the executables.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-phply
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-phply.
sudo apt -y install python3-phply
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-phply
Summary
In this tutorial we learn how to fix phplex command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.