im trying to update symfony 2.6 to 2.7
i've changed in my composer.json to 2.7 version
"symfony/symfony": "2.7.*"
im running
composer update symfony/symfony --with-dependencies
and getting this error
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
- Conclusion: don't install symfony/symfony v2.7.41
- Conclusion: don't install symfony/symfony v2.7.40
........
- Conclusion: don't install symfony/symfony v2.7.2
- Conclusion: don't install symfony/symfony v2.7.1
- don't install symfony/asset v3.4.4|don't install symfony/symfony v2.7.0
- don't install symfony/symfony v2.7.0|remove symfony/asset v3.4.4
- don't install symfony/symfony v2.7.0|don't install symfony/asset v3.4.4
- Installation request for symfony/symfony 2.7.* -> satisfiable by symfony/symfony[v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2.7.2
, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.25, v2.7.26, v2.7.27, v2.7.28, v2.7.29, v2.7.3, v2.7.30, v2.7.31, v2.7.32, v2.7.33, v2.7.34, v2.7.35, v2.7.36, v2.7.37, v2.7.38, v2.7.39, v2.7.4, v
2.7.40, v2.7.41, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9].
- Installation request for symfony/asset (locked at v3.4.4) -> satisfiable by symfony/asset[v3.4.4].
i dont understand what it wants from me
here is my composer.json
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/", "SymfonyStandard": "app/" }
},
"require": {
"php": ">=5.3.9",
"doctrine/doctrine-bundle": "~1.2",
"doctrine/orm": "~2.2,>=2.2.3",
"incenteev/composer-parameter-handler": "~2.0",
"sensio/distribution-bundle": "~3.0",
"sensio/framework-extra-bundle": "~3.0",
"symfony/assetic-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/symfony": "2.7.*",
"twig/extensions": "~1.0",
"gedmo/doctrine-extensions": "^2.3.1",
"stof/doctrine-extensions-bundle": "dev-master",
"symfony/dom-crawler": "~2.6",
"friendsofsymfony/user-bundle": "~2.0#dev",
"ircmaxell/password-compat": "^1.0",
"helios-ag/fm-elfinder-bundle": "~5",
"egeloen/ckeditor-bundle": "^3.0",
"vich/uploader-bundle": "^1.4",
"google/apiclient": "~2.0",
"masih/youtubedownloader": "^2.8"
},
"require-dev": {
"sensio/generator-bundle": "~2.3"
},
"scripts": {
"post-root-package-install": [
"SymfonyStandard\\Composer::hookRootPackageInstall"
],
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::removeSymfonyStandardFiles"
]
},
"config": {
"bin-dir": "bin",
"component-dir": "web/assets"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.7-dev"
}
}
}
i've updated symfony/assets separately but it did not help
also tried updating sensio/framework-extra-bundle and vich/uploader-bundle
which are referencing the symfoy/asset bundle
this also did not help
thanks for the comments
i've installed clean symfony 2.7
based on previous composer why symfony/asset
that told me vich/uploader-bundle 1.4.2 requires symfony/asset (^2.3|^3.0)
i added it first with composer require vich/uploader-bundle
it automatically added version ^0.14.0
i've copied it to my composer and updated only it
composer update vich/uploader-bundle --with-dependencies
and after that changed symfony version to 2.7 and updated
composer update symfony/symfony --with-dependencies
everything worked fine :)
Related
I am trying to install 3 packages, 1 of which I forked on GitHub. The installation fails and the error message says to remove the root package and the git branch on which I am (develop) which makes no sense.
What I tried:
Delete the composer.lock
Delete the vendor folder
Execute the composer clearcache command
Try on a blank project : it works
In summary, on a blank project it works properly but not on my other project (esynaps/api-v2.e-synaps.com).
The error message:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- don't install elasticsearch/elasticsearch 5.0.x-dev|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.0.0|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.1.0|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.1.1|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.1.2|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.1.3|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.2.0|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.3.0|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.3.1|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.3.2|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.3.2|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.3.1|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.3.0|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.2.0|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.1.3|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.1.2|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.1.1|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.1.0|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch v5.0.0|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch 5.3.3|remove esynaps/api-v2.e-synaps.com dev-develop
- don't install elasticsearch/elasticsearch 5.0.x-dev|remove esynaps/api-v2.e-synaps.com dev-develop
- Installation request for esynaps/api-v2.e-synaps.com dev-develop -> satisfiable by esynaps/api-v2.e-synaps.com[dev-develop].
- Installation request for elasticsearch/elasticsearch ^5.0 -> satisfiable by elasticsearch/elasticsearch[5.0.x-dev, v5.0.0, v5.1.0, v5.1.1, v5.1.2, v5.1.3, v5.2.0, v5.3.0, v5.3.1, v5.3.2, 5.3.3].
Here is the composer.json of the blank project:
{
"name": "project/test",
"minimum-stability": "dev",
"prefer-stable": true,
"authors": [
{
"name": "my name",
"email": "my#email.com"
}
],
"repositories": [
{
"type": "vcs",
"url": "https://github.com/esynaps/elasticsearch-php"
}
],
"require": {
"ongr/elasticsearch-bundle": "^5.0",
"ongr/elasticsearch-dsl": "^5.0",
"elasticsearch/elasticsearch": "^5.0"
}
"replace": {
"elasticsearch/elasticsearch": "dev-master"
}
}
The link to the fork: https://github.com/esynaps/elasticsearch-php
Here is the composer.json of the target project:
{
"name": "esynaps/api-v2.e-synaps.com",
"license": "proprietary",
"type": "project",
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
},
"files": [
"vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php"
]
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/esynaps/elasticsearch-php"
},
{
"type": "vcs",
"url": "https://github.com/esynaps/neo4j-php-ogm"
},
{
"type": "vcs",
"url": "https://github.com/angelov/neo4j-symfony"
}
],
"require": {
"php": ">=7.1",
"akeneo/spreadsheet-parser": "^1.2",
"beberlei/DoctrineExtensions": "^1.0",
"box/spout": "^2.7",
"c0de8/matchmaker": "^2.0",
"defuse/php-encryption": "^2.1",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/orm": "^2.5",
"friendsofsymfony/rest-bundle": "^2.2",
"graphaware/neo4j-php-ogm": "dev-master",
"incenteev/composer-parameter-handler": "^2.0",
"jms/serializer-bundle": "^1.1",
"justinrainbow/json-schema": "^5.2",
"nelmio/api-doc-bundle": "dev-master",
"nelmio/cors-bundle": "^1.5",
"neo4j/neo4j-bundle": "dev-method-reset",
"ongr/elasticsearch-bundle": "5.*",
"ongr/elasticsearch-dsl": "5.*",
"elasticsearch/elasticsearch": "5.*",
"phpdocumentor/reflection-docblock": "*",
"phpoffice/phpexcel": "^1.8",
"piwik/device-detector": "^3.7",
"ptrofimov/matchmaker": "*",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "^5.0",
"symfony/monolog-bundle": "^3.1.0",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^2.3.10",
"symfony/symfony": "3.*",
"twig/twig": "^1.0||^2.0"
},
"require-dev": {
"behat/behat": "^3.3",
"behat/mink": "^1.7",
"behat/mink-browserkit-driver": "^1.3",
"behat/mink-extension": "^2.2",
"behat/mink-selenium2-driver": "^1.3",
"behat/symfony2-extension": "^2.1",
"phpunit/phpunit": "^6.3",
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.3"
},
"replace": {
"elasticsearch/elasticsearch": "dev-master"
},
"scripts": {
"symfony-scripts": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-install-cmd": [
"#symfony-scripts"
],
"post-update-cmd": [
"#symfony-scripts"
],
"test": "phpunit",
"assets": "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
},
"config": {
"sort-packages": true
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "web",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": null
}
}
$ php -v
PHP 7.1.7 (cli) (built: Jul 6 2017 16:51:52) ( ZTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.7, Copyright (c) 1999-2017, by Zend Technologies
$ composer -v
Composer version 1.6.5 2018-05-04 11:44:59
Thanks to rob006 for his help.
Just remove the "replace" property in the composer.json. The utility of this property has been misunderstood.
https://getcomposer.org/doc/04-schema.md#replace
Lists packages that are replaced by this package. This allows you to fork a package, publish it under a different name with its own version numbers, while packages requiring the original package continue to work with your fork because it replaces the original package.
I've an old Symfony project and here is composer.json:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": {"": "src/"}
},
"require": {
"php": ">=5.5.9",
"symfony/symfony": "*",
"symfony/console": ">=2.2.3",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"facebook/php-sdk-v4" : "4.0.*",
"symfony/finder": "^3.1",
"sonata-project/core-bundle": "^3.1",
"sonata-project/seo-bundle": "^2.0",
"sonata-project/admin-bundle": "^3.6"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
} }
First I'd use:
php composer.phar self-update
Then I used below command to upgrade:
php composer.phar update
And here is the result:
Search for a package: symfony
Found 15 packages matching symfony
[0] symfony/symfony [1] rgies/symfony [2] php-tmdb/symfony [3] webforge/symfony [4] lexpress/symfony1 [5] symfony/symfony1 [6] sabaki-dev/symfony1 [7] behat/symfony2-extension [8] escapestudios/symfony2-coding-standard [9] smarkio/symfony1 [10] languara/symfony3 [11] m6web/symfony2-coding-standard [12] irongit/symfony2-stream-response [13] polishsymfonycommunity/symfony2-mocker-extension [14] symfony/console
Enter package # to add, or the complete package name if it is not listed: 0
Enter the version constraint to require (or leave blank to use the latest version):
Using version ^3.1 for symfony/symfony
Search for a package: ./composer.json has been updated
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
- Conclusion: don't install symfony/symfony v3.1.6
- Conclusion: don't install symfony/symfony v3.1.5
- Conclusion: don't install symfony/symfony v3.1.4
- Conclusion: don't install symfony/symfony v3.1.3
- Installation request for sensio/generator-bundle (locked at v2.5.3, required as ~2.3) -> satisfiable by sensio/generator-bundle[v2.5.3].
- Conclusion: don't install symfony/symfony v3.1.2
- Conclusion: don't install symfony/symfony v3.1.1
- don't install symfony/finder v3.1.6|don't install symfony/symfony v3.1.0
- don't install symfony/symfony v3.1.0|remove symfony/finder v3.1.6
- don't install symfony/symfony v3.1.0|don't install symfony/finder v3.1.6
- Installation request for symfony/symfony ^3.1 -> satisfiable by symfony/symfony[v3.1.0, v3.1.1, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6].
- Installation request for symfony/finder (locked at v3.1.6, required as ^3.1) -> satisfiable by symfony/finder[v3.1.6], symfony/symfony[v3.1.6].
Installation failed, reverting ./composer.json to its original content.
I did it with php composer.phar self-update and then php composer.phar update successfully changed to symfony 2.8
Im facing issues installing the wiseape/sofort-ueberweisung gateway for the payum bundle. I can see it's a version dependency issue on payum core but can't figure out how to solve it.
My installed payum core has version 1.1 and wiseape/sofort-ueberweisung only requires 0.12.0 so I'm lost here as it also tells me to not install a core version of 0.12.x-dev?
This is the package: https://github.com/wiseape/payum-sofortuberweisung
This is the command I run:
sudo php composer.phar require "wiseape/payum-sofortuberweisung"
This is the result:
Using version ^1.1 for wiseape/payum-sofortuberweisung
./composer.json has been updated
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
- wiseape/payum-sofortuberweisung 1.x-dev requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.0 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.1 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.2 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.3 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.4 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- wiseape/payum-sofortuberweisung v1.1.5 requires payum/core ~0.12.0 -> satisfiable by payum/core[0.12.x-dev].
- Conclusion: don't install payum/core 0.12.x-dev
- Installation request for wiseape/payum-sofortuberweisung ^1.1 -> satisfiable by wiseape/payum-sofortuberweisung[1.x-dev, v1.1.0, v1.1.1, v1.1.2, v1.1.3, v1.1.4, v1.1.5].
This is my composer.json
{
"minimum-stability": "dev",
"name": "ubuntu/api",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"files": [
"app/AppKernel.php"
]
},
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.8.*#dev",
"doctrine/orm": "^2.4.8",
"doctrine/doctrine-bundle": "~1.4",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~5.0#dev",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "~2.0",
"snc/redis-bundle": "1.1.8",
"predis/predis": "0.8.*",
"payum/payum-bundle": "*#stable",
"psliwa/pdf-bundle": "^1.0",
"tfox/mpdf-port-bundle": "^1.3",
"payum/offline": "*#stable",
"payum/paypal-express-checkout-nvp": "^1.1",
"phpunit/phpunit": "^5.1",
"payum/core": "^1.1",
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
"symfony/phpunit-bridge": "~2.7"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
}
}
}
The short answer the library you want to use require pretty old payum core. There are four ways to go:
You can downgrade payum core version. In this case you can lost bug fixes, and feature improvements made in Payum.
Upgrade the library wiseape/sofort-ueberweisung up to 1.0 version. Upgrade notes may help you here a lot: https://github.com/Payum/Payum/blob/master/UPGRADE.md
There is an alternative extension https://github.com/invit/payum-sofortueberweisung which works in production, though it requrie payum version 0.15. Should be easier to upgrade from it to 1.0.
Also I started adding the sofort extension right into payum https://github.com/Payum/Payum/pull/447. The PR based on init's work. There are some things to finish up and test. Unfortunately I dont give you any ETA.
I am trying to setup a Symfony project that I cloned from a github repo but I'm having problems installing the dependencies.
When I run composer install, this is the result:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for doctrine/mongodb 1.0.0-BETA1 -> satisfiable by doctrine/mongodb[1.0.0-BETA1].
- doctrine/mongodb 1.0.0-BETA1 requires ext-mongo * -> the requested PHP extension mongo is missing from your system.
Problem 2
- Installation request for symfony/icu 1.1.x-dev -> satisfiable by symfony/icu[1.1.x-dev].
- symfony/icu 1.1.x-dev requires lib-icu >=3.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
Problem 3
- symfony/icu 1.1.x-dev requires lib-icu >=3.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it.
- symfony/symfony 2.3.x-dev requires symfony/icu ~1.0 -> satisfiable by symfony/icu[1.1.x-dev].
- Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].
This is the composer.json
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.3.*",
"symfony/icu": "1.1.*",
"doctrine/orm": "2.3.4",
"doctrine/common": "2.3.0",
"doctrine/mongodb-odm": "1.0.*#dev",
"doctrine/mongodb-odm-bundle": "3.0.*#dev",
"twig/twig": "v1.12.2",
"twig/extensions": "v1.0.0",
"monolog/monolog": "1.3.1",
"symfony/monolog-bundle": "v2.3.0",
"doctrine/doctrine-bundle": "v1.2.0",
"doctrine/dbal": "v2.3.2",
"doctrine/doctrine-fixtures-bundle": "2.2.*",
"sensio/generator-bundle": "v2.3.4",
"jdorn/sql-formatter": "v1.2.0",
"gedmo/doctrine-extensions": "v2.3.5",
"symfony/assetic-bundle": "2.4.*#dev",
"symfony/swiftmailer-bundle": "master",
"jms/security-extra-bundle": "1.1.*",
"jms/di-extra-bundle": "1.0.*",
"jms/debugging-bundle": "dev-master",
"sensio/distribution-bundle": "2.3.*",
"sensio/framework-extra-bundle": "2.3.*",
"guzzle/guzzle": "*",
"rezzza/mailchimp-bundle": "1.0.*#dev",
"knplabs/gaufrette": "dev-master",
"knplabs/knp-gaufrette-bundle": "0.2.*#dev",
"imagine/Imagine": "dev-master",
"stfalcon/tinymce-bundle": "v0.2.0",
"gregwar/captcha-bundle": "dev-master",
"friendsofsymfony/rest-bundle": "1.2.2",
"jms/serializer-bundle": "0.13.0",
"chromedia/utilities": "dev-master",
"chromedia/security-token-bundle": "dev-master"
},
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
},
"minimum-stability": "dev"
}
Thanks!
The composer explicitly say that your system misses ext-mongo, lib-icu, and the symfony/icu which is dependent on the 2nd one.
For ext-mongo, check in your php.ini if extension=mongo.so is commented, if it is, uncomment it.
For lib-icu, your missing the intl extension of php for the setup you can follow this answer: Problems with lib-icu dependency when installing Symfony 2.3.x via Composer
I can't install sonata-project/user-bundle with symfony2 2.4. Composer gives me such error message:
Problem 1
- Conclusion: remove symfony/symfony v2.4.0
- Installation request for symfony/framework-standard-edition 2.4.x-dev -> satisfiable by symfony/framework-standard-edition[2.4.x-dev].
- Conclusion: don't install symfony/symfony v2.4.0
- Installation request for sonata-project/user-bundle 2.2.2 -> satisfiable by sonata-project/user-bundle[2.2.2].
- Installation request for friendsofsymfony/user-bundle ~2.0#dev -> satisfiable by friendsofsymfony/user-bundle[2.0.x-dev].
- symfony/framework-standard-edition 2.4.x-dev requires sensio/framework-extra-bundle ~3.0 -> satisfiable by sensio/framework-extra-bundle[v3.0.0].
- sensio/framework-extra-bundle v3.0.0 requires symfony/framework-bundle ~2.4 -> satisfiable by symfony/symfony[v2.4.0], symfony/framework-bundle[v2.4.0].
- sensio/framework-extra-bundle v3.0.0 requires symfony/framework-bundle ~2.4 -> satisfiable by symfony/symfony[v2.4.0], symfony/framework-bundle[v2.4.0].
- Conclusion: don't install symfony/framework-bundle v2.4.0
My composer.json:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.*",
"doctrine/orm": "~2.2,>=2.2.3",
"doctrine/doctrine-bundle": "~1.2",
"twig/extensions": "~1.0",
"symfony/assetic-bundle": "~2.3",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/monolog-bundle": "~2.4",
"sensio/distribution-bundle": "~2.3",
"sensio/framework-extra-bundle": "~3.0",
"sensio/generator-bundle": "~2.3",
"incenteev/composer-parameter-handler": "~2.0",
"friendsofsymfony/user-bundle": "~2.0#dev",
"stof/doctrine-extensions-bundle": "~1.1#dev",
"sonata-project/admin-bundle": "~2.1",
"sonata-project/doctrine-orm-admin-bundle": "~2.1",
"sonata-project/user-bundle": "2.2.2",
"knplabs/knp-paginator-bundle": "2.3.*",
"knplabs/knp-menu-bundle": "1.1.*",
"knplabs/knp-menu": "1.1.*"
},
"scripts": {
"post-install-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"config": {
"bin-dir": "bin"
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "2.4-dev"
}
}
}
When I delete line "sonata-project/user-bundle": "2.2.2", from composer.json - composer update runs smoothly.
Is sonata-user [2.2.2] not compatible with Symfony2 2.4 ? I can't find any official info about that.
I chceck composer.json od SonataUserBundle and SonataAdminBundle (which I installed successfully), and both require "symfony/http-foundation": "~2.2", so I'm realy out of ideas...
Update
Ticket in github
https://github.com/sonata-project/SonataUserBundle/issues/300#issuecomment-31214179
Change version of friendsofsymfony/user-bundle by modifying composer.json -
"friendsofsymfony/user-bundle": "1.3.3",
and issue the command:
composer update
Worked for me on Symfony 2.4.0
Good News!
I have added fixes to make SonataUserBundle work with FOSUserBundle 2.0*
https://github.com/sonata-project/SonataUserBundle/pull/303