symfony-cmf / simple-cms-bundle

UNMAINTAINED - A more-than-simple cms based on the cmf components
http://cmf.symfony.com/
49 stars 45 forks source link

Problems install with composer #130

Closed cgoosey1 closed 9 years ago

cgoosey1 commented 9 years ago

I am trying to install your package with composer and I keep getting: "Your requirements could not be resolved to an installable set of packages."

My composer.json looks like this:

{
    "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.3",
        "symfony/symfony": "2.5.*",
        "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": "~3.0",
        "sensio/framework-extra-bundle": "~3.0",
        "incenteev/composer-parameter-handler": "~2.0",
        "friendsofsymfony/user-bundle": "~2.0@dev",
        "hwi/oauth-bundle": "0.4.*@dev",
        "symfony-cmf/simple-cms-bundle": "*",

        "doctrine/data-fixtures": "1.0.0",
        "doctrine/doctrine-fixtures-bundle": "2.2.0",
        "doctrine/migrations": "1.0.*@dev",
        "doctrine/doctrine-migrations-bundle": "2.1.*@dev",
        "friendsofsymfony/jsrouting-bundle": "1.5.3",
        "zeroem/curl-bundle": "*"
    },
    "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"
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "2.5-dev"
        }
    },
    "minimum-stability": "Stable"
}

and the error message I am getting back from composer looks like:

php -d memory_limit=-1 /usr/sbin/composer update

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
    - doctrine/phpcr-bundle 1.2.1 requires phpcr/phpcr-implementation 2.1.* -> no matching package found.
    - doctrine/phpcr-bundle 1.2.0 requires phpcr/phpcr-implementation 2.1.* -> no matching package found.
    - doctrine/phpcr-bundle 1.1.2 requires phpcr/phpcr-implementation 2.1.* -> no matching package found.
    - doctrine/phpcr-bundle 1.1.1 requires phpcr/phpcr-implementation 2.1.* -> no matching package found.
    - doctrine/phpcr-bundle 1.1.0 requires phpcr/phpcr-implementation 2.1.* -> no matching package found.
    - doctrine/phpcr-bundle 1.0.0 requires phpcr/phpcr-implementation 2.1.* -> no matching package found.
    - symfony/framework-standard-edition 2.5.x-dev requires symfony-cmf/simple-cms-bundle * -> satisfiable by symfony-cmf/simple-cms-bundle[1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.2.0].
    - symfony-cmf/simple-cms-bundle 1.1.0 requires doctrine/phpcr-bundle >=1.1.0,<1.2-dev -> satisfiable by doctrine/phpcr-bundle[1.1.0, 1.1.1, 1.1.2].
    - symfony-cmf/simple-cms-bundle 1.1.1 requires doctrine/phpcr-bundle >=1.1.0,<1.2-dev -> satisfiable by doctrine/phpcr-bundle[1.1.0, 1.1.1, 1.1.2].
    - symfony-cmf/simple-cms-bundle 1.2.0 requires doctrine/phpcr-bundle ~1.1 -> satisfiable by doctrine/phpcr-bundle[1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.2.1].
    - symfony-cmf/simple-cms-bundle 1.0.0 requires doctrine/phpcr-bundle 1.0.* -> satisfiable by doctrine/phpcr-bundle[1.0.0].
    - symfony-cmf/simple-cms-bundle 1.0.1 requires doctrine/phpcr-bundle 1.0.* -> satisfiable by doctrine/phpcr-bundle[1.0.0].
    - Installation request for symfony/framework-standard-edition 2.5.x-dev -> satisfiable by symfony/framework-standard-edition[2.5.x-dev].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Could it be related to this issue: https://github.com/composer/composer/issues/2811 I tried to require an implementation of phpcr/phpcr-implementation but it didn't help

dbu commented 9 years ago

yes, indeed. this is the reason for that ticket to exist ;-)

phpcr/phpcr-implementation is a meta package. it is provided by jackalope-doctrine-dbal and jackalope-jackrabbit. you need to require one of those to use the SimpleCmsBundle. (the alternative would be to implement an ORM entity for the simplecms bundle, then we could drop the requirement of simplecms to phpcr-odm).

see http://symfony.com/doc/master/cmf/cookbook/database/choosing_storage_layer.html and http://symfony.com/doc/master/cmf/cookbook/database/choosing_phpcr_implementation.html for more information and background.

cgoosey1 commented 9 years ago

I swear i tried requiring a phpcr implementation, but now its worked effortlessly! Thank you for the help!

dbu commented 9 years ago

you are welcome :-) glad it worked!