This question already has answers here:
PHPUnit working in IDE, but server says class not found
(2 answers)
Closed 5 years ago.
I am running Linux Mint 18.1. My IDE is PhpStorm and I am trying to install PHPUnit trough the composer. I followed the installation steps at https://getcomposer.org/download/.
Problem 1
- Installation request for phpunit/phpunit 6.4.x-dev -> satisfiable by phpunit/phpunit[6.4.x-dev].
- phpunit/phpunit 6.4.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 2
- symfony/symfony v3.3.6 requires ext-xml * -> the requested PHP extension xml is missing from your system.
- symfony/symfony v3.3.6 requires ext-xml * -> the requested PHP extension xml is missing from your system.
- symfony/symfony v3.3.6 requires ext-xml * -> the requested PHP extension xml is missing from your system.
- Installation request for symfony/symfony (locked at v3.3.6, required as 3.3.*) -> satisfiable by symfony/symfony[v3.3.6].
Solutions I have tried:
Install php-xml
Install php7.0-xml
This answer says to check if "extension=dom.so" is enabled in any of your php.ini files. It is not even present in my files
Any suggestions? Thanks a lot!
All you need to install from your terminal in Debian is:
sudo apt-get install php-xml
Or, if you're using PHP 7:
sudo apt-get install php7.0-xml
Related
I installed symfony 4.4 full, and then tried to install sonata-project/doctrine-orm-admin-bundle.
Out of the box, this doesn't work. can someone please explain this?
I got the same error using symfony 5.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for sonata-project/doctrine-orm-admin-bundle ^3.21 -> satisfiable by sonata-project/doctrine-orm-admin-bundle[3.21.0].
- Conclusion: remove twig/twig v3.0.5
- Conclusion: don't install twig/twig v3.0.5
- sonata-project/doctrine-orm-admin-bundle 3.21.0 requires twig/twig ^1.41 || ^2.10 -> satisfiable by twig/twig[v2.12.0, v2.12.1, v2.12.2, v2.12.3, v2.12.4, v2.12.5, v2.13.0, v2.13.1].
- Can only install one of: twig/twig[v2.12.0, v3.0.5].
- Can only install one of: twig/twig[v2.12.1, v3.0.5].
- Can only install one of: twig/twig[v2.12.2, v3.0.5].
- Can only install one of: twig/twig[v2.12.3, v3.0.5].
- Can only install one of: twig/twig[v2.12.4, v3.0.5].
- Can only install one of: twig/twig[v2.12.5, v3.0.5].
- Can only install one of: twig/twig[v2.13.0, v3.0.5].
- Can only install one of: twig/twig[v2.13.1, v3.0.5].
- Installation request for twig/twig (locked at v3.0.5, required as ^2.12|^3.0) -> satisfiable by twig/twig[v3.0.5].
You need to install one of the specified version of twig before installing sonata.
Sonata has a dependency on twig.
use composer require "sonata-project/admin-bundle:^3.56" "twig/twig:^2.10"
I have a problem when installing CKeditor on Symfony 4.3, it puts me in the console when I enter the command to install the ckeditor bundle:
composer require friendsofsymfony / ckeditor-bundle
And an error appears and the console answers me:
Problem 1
- Installation request for friendsofsymfony / ckeditor-bundle ^ 2.2 -> satisfiable by friendsofsymfony / ckeditor-bundle [2.2.0].
- friendsofsymfony / ckeditor-bundle 2.2.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
Installation failed, deleting ./composer.json.
Air-de-Clement: $ composer require friendsofsymfony / ckeditor-bundle ^ 5
Composer said to you that the requested PHP extension zip is missing from your system. You need to install it.
You could run sudo apt-get install php7.VERSION-zip
Like said here for linux
Or here for macOS
I have a Drupal installation within a Docker container, with Composer and Drush installed. I'd like to install the Entity-API module (https://www.drupal.org/project/entity), and I start off with:
composer require drupal/entity
This gives me an error:
Using version ^0.1.0 for drupal/entity
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: drupal/core[8.5.6, 8.0.x-dev].
- Can only install one of: drupal/core[8.0.x-dev, 8.5.6].
- Can only install one of: drupal/core[8.0.x-dev, 8.5.6].
- drupal/entity 0.1.0 requires drupal/core <8.1.0 -> satisfiable by drupal/core[8.0.x-dev].
- Installation request for drupal/entity ^0.1.0 -> satisfiable by drupal/entity[0.1.0].
- Installation request for drupal/core (locked at 8.5.6, required as ~8.5.3) -> satisfiable by drupal/core[8.5.6].
Installation failed, reverting ./composer.json to its original content.
My Drupal version is 8.5.6 and I'm using the latest version of Composer, installed from https://getcomposer.org/installer
How would I get this installed using Composer? Tx
Use --update-with-all-dependencies switch:
composer require drupal/entity --update-with-all-dependencies
--update-with-all-dependencies: Also update dependencies of the newly required packages, including those that are root requirements.
https://getcomposer.org/doc/03-cli.md#require
I tried almost all the solutions provided on the internet. Nothing seems to work.it says
Your requirements could not be resolved to an installable set of packages.
Problem 1
-installation request for symfony/symfony v2.8.4.1 -> satisfiable by symfony/symfony[v.2.8.41].
-symfony/symfony v2.8.41 requires ext-xml *-> the requested PHP extension xml is missing from your system.
You didn't mentioned the system on which you run Symfony and which PHP version you use.
For Ubuntu with PHP 7 you just need to install the xml extension through apt: sudo apt-get install php7.0-xml
For Windows you can follow the guidelines in the PHP documentation
For Mac OS X you can use a package installer like Homebrew or use a tool which will install many package at once
After that, make sure the extensions are enabled in your PHP ini file.
When I try to perform:
composer create-project -s dev sylius/sylius:dev-master
I receive the following error:
Installing sylius/sylius (dev-master 0da3c0022d3118135e56908dfa4c69e6699770ce)
- Installing sylius/sylius (dev-master master)
Cloning master
Created project in sylius
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for fabpot/goutte v1.0.3 -> satisfiable by fabpot/goutte[v1.0.3].
- fabpot/goutte v1.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 2
- Installation request for instaclick/php-webdriver 1.0.17 -> satisfiable by instaclick/php-webdriver[1.0.17].
- instaclick/php-webdriver 1.0.17 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
- fabpot/goutte v1.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- behat/mink-goutte-driver v1.0.9 requires fabpot/goutte ~1.0.1 -> satisfiable by fabpot/goutte[v1.0.3].
- Installation request for behat/mink-goutte-driver v1.0.9 -> satisfiable by behat/mink-goutte-driver[v1.0.9].
This error occurs when you are missing the PHP curl extensions. Some of the sylius dependencies are dependent on that extension.
To solve this error just install and enable the php-curl extension.
With apt-get:
sudo apt-get install php5-curl
Or follow:
http://php.net/manual/en/curl.installation.php
Add minimum-stability option to composer.json file.
{
"require": {
"php-ews/php-ews": "dev-master"
},
"minimum-stability": "dev"
}