Bin/console does not work

Hello,

i’m new and hope to get some help here.

I am following the learning path “Introduction for developers“ and installed shopware 6 (docker, Ubuntu, WSL). I came to the chapter “App Development“ and issued “bin/console app:create“.

Firstly php was missing, so i installed PHP-cli. (php -v, PHP 8.3.6(cli) ) Now it threw following error when i use bin/console:

How to solve this?

Thanks

Ying

You might have not installed the necessary PHP extension.

php -m | grep mbstring

Thanks! It helped. Afterwards i also installed mysql and xml extensions.

Now i got another error when issuing bin/console app:create:

Warning: Failed to load plugins Error message: An exception occurred in the driver: SQLSTATE[HY000] [2002] No such file or directory
Symfony\Component\ErrorHandler\Error\ClassNotFoundError^ {#1039
#message: „“"
Attempted to load class „Normalizer“ from the global namespace.\n
Did you forget a „use“ statement?
„“"
#code: 0
#file: „./vendor/symfony/string/AbstractUnicodeString.php“
#line: 31
trace: {
./vendor/symfony/string/AbstractUnicodeString.php:31 { …}
./vendor/symfony/console/Helper/Helper.php:84 { …}
./vendor/symfony/console/Formatter/OutputFormatter.php:165 { …}
./vendor/symfony/console/Formatter/OutputFormatter.php:117 { …}

}
}

I couldn’t figure out what is missing here. My Shopware was installed by following the tutorial video „Installing Shopware on Windows using WSL and docker“ in learning path “Shopware Introduction for developers“.

Here you can see all the extensions that are necessary.

Thanks! This helped a lot.