doctrine-dbal command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
doctrine-dbal: command not found
or when using sudo you get the following error message
sudo: doctrine-dbal: command not found
Solutions to doctrine-dbal: command not found
How To Fix doctrine-dbal: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu doctrine-dbal is provided by php-doctrine-dbal package.
php-doctrine-dbal is:
Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
The Doctrine Project provides several libraries primarily focused on database storage and object mapping.
To fix this problem, we can install more using the command below.
sudo apt-get -y install php-doctrine-dbal
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install php-doctrine-dbal.
sudo apt -y install php-doctrine-dbal
Or if you have aptitude installed you can use the following command.
sudo aptitude install php-doctrine-dbal
Summary
In this tutorial we learn how to fix doctrine-dbal command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.