I'm trying to install Cake dc users on a Cakephp 3.1
That's a part of my composer.json that I'm almost sure that is properly setup mantain the cake version to 3.1:
"require": {
"php": ">=5.4.16",
"cakephp/cakephp": "~3.1",
I used the following command to setup cake:
composer create-project cakephp/app ar2016-2 3.1.*
and that's the result I get when I try to install DCUsers with the composer:
composer require cakedc/users:~3.1.0
./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: remove cakephp/cakephp 3.2.1
- Conclusion: don't install cakephp/cakephp 3.2.1
- cakedc/users 3.1.0 requires cakephp/cakephp ~3.1.0 -> satisfiable by cakephp/cakephp[3.1.0, 3.1.0-RC1, 3.1.0-beta, 3.1.0-beta2, 3.1.1, 3.1.10, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9].
...
It looks that it detects CakePHP 3.2.1 but everywhere I check show me that I'm using the proper 3.1. version. Any Idea?
Thanks in advance,
David
I'd doubt that it shows that you've installed 3.1 anywhere at all, because the latest release is 3.2.1 and, ~3.1 means >= 3.1 and < 4.0.0, and therefore I'm pretty sure that you have the latest version installed, ie 3.2.1, a quick bin/cake will probably confirm that.
https://getcomposer.org/doc/articles/versions.md#tilde
The cakedc/users version that you have requested, requires cakephp/cakephp:3.1.*, which means >= 3.1 and < 3.2, hence the error.
https://getcomposer.org/doc/articles/versions.md#wildcard
So either use the master branch of the plugin (it requires cakephp/cakephp:~3.1) until a proper release is issued, or use a more specific version constraint for the CakePHP framework, like 3.1.*
Thanks for the answer but it's just fixed, it was a problem of the plugin itself and cakedc fixed.
Related
I wanted to install eloquent-sluggable but I get this type of error
and my laravel version =5.5 and my php version is 7.0 but I don't know what can I do with this error.
If u know please help me.
My error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- illuminate/support v5.6.3 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
- illuminate/support v5.6.2 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
- illuminate/support v5.6.1 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
- illuminate/support v5.6.0 requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement.
- cviebrock/eloquent-sluggable 4.5.0 requires illuminate/support ~5.6.0 -> satisfiable by illuminate/support[v5.6.0, v5.6.1, v5.6.2, v5.6.3].
- Installation request for cviebrock/eloquent-sluggable 4.5 -> satisfiable by cviebrock/eloquent-sluggable[4.5.0].
Installation failed, reverting ./composer.json to its original content.
-------
I followed the related site but I can solve it.
Thanks.
Yes, you should be able to do that. The problem is pretty simple: As the error message says, these packages need at least PHP 7.1.3, while you have PHP 7.0.10 installed:
requires php ^7.1.3 -> your PHP version (7.0.10) does not satisfy that requirement
Updating your PHP version would to the trick. How this is done depends on how your development environment is setup.
I have an existing Symfony + SonataAdmin project which we've been running for a few years. I'd like to upgrade it to SonataAdmin 3.x. 3.0 would be a good start, then moving up to 3.x afterwards once we check it's all working.
However, I can't seem to get a viable set of composer dependencies to upgrade. The current settings include:
"sonata-project/admin-bundle": "~2.3",
"sonata-project/core-bundle": "~2.3",
"sonata-project/doctrine-orm-admin-bundle": "~2.3",
"sonata-project/user-bundle": "~2.3#dev",
"sonata-project/datagrid-bundle": "~2.2#dev",
"friendsofsymfony/user-bundle": "~1.3",
I've tried changing the first three to 3.0.* but I get the following error:
$ composer update --dry-run
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
- sonata-project/user-bundle 2.x-dev requires sonata-project/core-bundle ~2.2 -> satisfiable by sonata-project/core-bundle[2.2.0-2.2.7, 2.3.0-2.3.11, 2.x-dev] but these conflict with your requirements or minimum-stability.
- sonata-project/user-bundle 2.3.x-dev requires sonata-project/admin-bundle ~2.3|~2.4#dev -> satisfiable by sonata-project/admin-bundle[2.3.0-2.3.10, 2.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for sonata-project/user-bundle ~2.3#dev -> satisfiable by sonata-project/user-bundle[2.x-dev, 2.3.x-dev].
Chaging the dependency for user-bundle to:
"sonata-project/user-bundle": "3.0.*#dev",
or 3.0.*#dev, or 3.0.0 or 3.0.0#dev:
Just gives a different error:
$ composer update --dry-run
Loading composer repositories with package information
Updating dependencies (including require-dev)
[Composer\DependencyResolver\SolverProblemsException]
Problem 1
- The requested package sonata-project/user-bundle 3.0.* exists as sonata-project/user-bundle[2.3.x-dev, dev-master] but these are rejected by your constraint.
And, finally, trying "sonata-project/user-bundle": "dev-master", gives this error:
$ composer update --dry-run
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
- sonata-project/user-bundle dev-master requires sonata-project/admin-bundle ^3.1 -> satisfiable by sonata-project/admin-bundle[3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.x-dev] but these conflict with your requirements or minimum-stability.
- sonata-project/user-bundle dev-master requires sonata-project/admin-bundle ^3.1 -> satisfiable by sonata-project/admin-bundle[3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for sonata-project/user-bundle dev-master -> satisfiable by sonata-project/user-bundle[dev-master].
So... is there any version of sonata-project/user-bundle which is compatible with the 3.0.* versions of the other Sonata packages? Packagist seems to suggest that there's a 3.0.0 version of sonata-project/user-bundle, but haveI done something wrong in my composer syntax when trying to reference it?
Rules to achieve your goal with ease :
use stable versions and only that
don't constraint yourself too much, you can do it later.
Here is an excerpt of a composer.json of mine :
"sonata-project/admin-bundle": "^3.0",
"sonata-project/core-bundle": "^3.0",
"sonata-project/doctrine-orm-admin-bundle": "^3.0",
"sonata-project/notification-bundle": "^3.0",
"sonata-project/user-bundle": "^3.0",
Simple and beautiful.
I use Symfony 3.0.6, Sontata Admin Bundle 3.0.0 and the Doctrine ORM Admin Bundle on dev-master. The user bundle doesnt work even with dev-master. Is there a solution for Symfony 3.x yet?
Your requirements could not be resolved to an installable set of
packages.
Problem 1
- Conclusion: remove symfony/symfony v3.0.6
- Conclusion: don't install symfony/symfony v3.0.6
- Conclusion: don't install symfony/symfony v3.0.5
- Conclusion: don't install symfony/symfony v3.0.4
- Conclusion: don't install symfony/symfony v3.0.3
- Installation request for sonata-project/user-bundle dev-master ->
satisfiable by sonata-project/user-bundle[dev-master].
- Conclusion: don't install symfony/symfony v3.0.2
- Conclusion: don't install symfony/symfony v3.0.1
- sonata-project/user-bundle dev-master requires symfony/form ^2.3 ->
satisfiable by symfony/form[.....
The SonataUserBundle just released a 3.0.0 version 3 days ago, but does not seem to be compatible with SF3 yet, given the composer.json file:
{
"name": "sonata-project/user-bundle",
"require": {
"php": "^5.3 || ^7.0",
"symfony/http-foundation": "^2.3",
"symfony/form": "^2.3",
"symfony/security": "^2.3",
"symfony/console": "^2.3",
},
[...]
}
I am afraid we will have to wait a little bit longer.
Some issues were posted about it on the official repository:
https://github.com/sonata-project/SonataUserBundle/issues/724
The author's answer:
SF 3.0 is not supported because FOSUser 1.x does not support it.
FOSUser 2.x is not stable and is not supported by our bundle right now.
For the complete story, there were plans to release a SF3 compatible version of the FOSUserBundle on december 2015, but no news about that one has came since...
https://github.com/FriendsOfSymfony/FOSUserBundle/pull/1990
Let's wait & see!
Cannot complete the install because one or more required items could not be found.
Software being installed: Tern Toolings 1.1.0.201511082254 (tern.eclipse.ide.tools.feature.feature.group 1.1.0.201511082254)
Missing requirement: Tern - Eclipse 1.1.0.201511082254 (tern.eclipse 1.1.0.201511082254) requires 'bundle org.eclipse.swt 3.7.0' but it could not be found
Cannot satisfy dependency:
From: Tern - Eclipse - Core IDE 1.1.0.201511082254 (tern.eclipse.ide.core 1.1.0.201511082254)
To: bundle tern.eclipse 0.0.0
The key here is the "requires 'bundle org.eclipse.swt 3.7.0'" message - version 3.7.0 or newer of SWT is required.
It looks like your version of Eclipse is out of date, you need Eclipse 3.7 or 3.8 or Eclipse 4.2 or later.
[root#skadi:/var/www/mailinglist]$ composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- cakephp/cakephp 3.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
Problem 2
- cakephp/cakephp 3.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- cakephp/debug_kit 3.0.x-dev requires cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
- Installation request for cakephp/debug_kit 3.0.*-dev -> satisfiable by cakephp/debug_kit[3.0.x-dev].
Try this
sudo apt-get install mcrypt php5-mcrypt
sudo php5enmod mcrypt
on Ubuntu 13.10 and later there is a problem for migration of php modules configuration from /etc/php5/conf.d to /etc/php5/mods-available
If you don't solve verify the mcrypt library
updatedb
locate mcrypt.so
locate mcrypt.ini
Just for the record, as I didn't find a solution anywhere for Arch Linux: If you happen to use composer from the extra repository (extra/php-composer), it's actually not enough to enable the mcrypt extension in /etc/php/php.ini because the global composer script uses its own ini-file (/usr/share/php-composer/php.ini).
To fix the mcrypt error, you can either:
Enable mcrypt extension globally and run composer using php /usr/bin/composer.
Add mcrypt extension to /usr/share/php-composer/php.ini and prevent pacman from overwriting your changes by adding NoUpgrade = usr/share/php-composer/php.ini to /etc/pacman/pacman.conf.
I had this problem when I tried to install laravel with composer on my MAC Yosemite.
This was the error message I got from the terminal:
laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP
extension mcrypt is missing from your system.
I followed these instructions to install mcrypt on my MAC:
http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-yosemite-development-server/
And that fixed the problem
Composer was blocking my install of cakephp because of a dependency on mcrypt, despite the fact that mcrypt was installed and working in my php configuration.
I finally realized that Composer was checking the cli mode of php, and I resolved the dependency by simply copying mcrypt.ini from /etc/php5/conf.d to /etc/php5/cli/conf.d.