Problem installing laravel(Ubuntu) - phpunit/phpunit 57 requires ext dom the requested PHP extension

preview_player
Показать описание
i'm trying to install laravel with composer on my ubuntu 16.04. But i'm getting an error like this :

--
Your requirements could not be resolved to an installable set of packages.

phpunit/phpunit 5.7 requires ext dom the requested PHP extension.
--

how to solving?
just install php-xml with :
sudo apt-get install php5.6-xml (for php5.6)
or
sudo apt-get install php-xml (for php7)
Рекомендации по теме
Комментарии
Автор

Perfect bro! I'm using Ubuntu 19.10 and it's solved my issue.
Thanks!

bilantine
Автор

My PHP version is "PHP 7.4.3", and I used this command
sudo apt-get install php7.4-xml

It worked!

Thank you brother <3

RakibOFC
Автор

Valeu.. Resolveu meu problema!
estou usando linux mint e PHP 7...


Valeu mesmo!

seuamigoleandro
Автор

i use xampp on ubuntu 18.04, can i use sudo apt-get install php5.6-xml for resolve my problem?

rendraht
Автор

thanks, bro you help me work in Ubuntu server

developer_sagor
Автор

Can I use this command: "laravel new app"?

rahmatdicky