$ php -v
PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS)
$ sudo apt install php8.2-bcmath
or
$ composer require 'drupal/commerce:^2.38' --ignore-platform-req=ext-bcmath
1- Make sure you are in this directory
$ ls
composer.json composer.lock vendor web
2- Install drush
$ composer require --dev drush/drush
3- Try the following it will work
$ vendor/bin/drush
4- Set Command Alias
$ pwd
/var/www/html/drupal
5- Add the output of the previous command instead of x
echo 'alias drush="x/vendor/bin/drush"' >> ~/.bashrc && source ~/.bashrc
echo 'alias drush="/var/www/html/drupal/vendor/bin/drush"' >> ~/.bashrc && source ~/.bashrc
6- He's working
$ drush
Drush Commandline Tool 12.4.3.0
m Sami Antaki β made their first commit to this issueβs fork.
m Sami Antaki β made their first commit to this issueβs fork.