I'm trying to install the FOSUserBundle on Symfony2.
On trying to run this command in the Terminal
composer update friendsofsymfony/user-bundle
I am presented with 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
- symfony/icu v1.2.0 requires lib-icu >=4.4 -> 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/icu v1.2.0 requires lib-icu >=4.4 -> the requested linked library icu has the wrong version installed or is missing from
your system, make sure to have the extension providing it.
- Installation request for symfony/icu == 1.2.0.0 -> satisfiable by symfony/icu[v1.2.0].
I have read about the INTL extension not being installed correct, so I followed these instructions, restarted MAMP and the issue is still present!
I've checked with phpinfo() also and it's confirmed that INTL has been installed. I'm at a loss on how to get rid of these errors!
The issue is still present because you are running composer update only for FOSUserBundle.
First try to run composer update symfony/icu, and then run composer update friendsofsymfony/user-bundle.
If this doesn't work, try updating all your vendors with composer update
Related
I Want to install Drush on my MAC, I followed these steps: "https://www.drupal.org/node/1674222" only I got an error when I run "composer install" in the Drush directory.
I downloaded Drush from the Drush Github (https://github.com/drush-ops/drush)
The project is about to make a custom Drush command to export old Drupal project settings (.yml files) to a new project.
The error is something about there is no version set? I found this: "https://drupal.stackexchange.com/questions/241431/how-do-i-resolve-this-installation-error" and I tried to downgrade the version but still the same error.
The error message:
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 drush/drush No version set (parsed as 1.0.0) -> satisfiable by drush/drush[No version set (parsed as 1.0.0)].
- drupal/core 8.7.x-dev conflicts with drush/drush[No version set (parsed as 1.0.0)].
- Installation request for drupal/core 8.7.x-dev -> satisfiable by drupal/core[8.7.x-dev].
In Ubuntu 18.04, I have php installed. I confirmed it work with index.php testing. I now try to install composer
composer install
But below error was shown:
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 symfony/routing v4.1.6 -> satisfiable by symfony/routing[v4.1.6].
- don't install symfony/symfony v3.4.17|don't install symfony/routing v4.1.6
- Installation request for symfony/symfony v3.4.17 -> satisfiable by symfony/symfony[v3.4.17].
I have previously install Symfony as a package by
sudo apt install php-symfony
php-symfony is already the newest version (3.4.6+dfsg-1ubuntu0.1).
Do I uninstall symfony and replace it with symfony/routing v4.1.6?
I googled for a long time but I cannot find relevant instructions. Symfony documentation appears to only show instruction on using composer to install Symfony. But I now have trouble to install composer. Please help, thanks!
The symfony/symfony package already includes the Routing component (which you try to install with the symfony/routing package). This is something Composer wrongly allowed in older versions and was fixed in Composer 1.7.3.
Do you really need the Routing component in version 4? If that's the case, you need to remove symfony/symfony first and require all the needed components explicitly if you cannot upgrade all Symfony packages to 4.1.
If you want to install a new Symfony project, I recommend not using the packaged php-symfony and instead use composer to create a new project from scratch. I don't know much about the package, but as you can tell from the version it is outdated (v3.4.18 is the current version). Relying on an outdated package is not recommended. Instead use the recommended way to set up a new project:
composer create-project symfony/skeleton my-project
If you want a full stack application you can also use symfony/website-skeleton as the basis for the project. If you want to stick to the old 3.4 version you can add the constraint to the command:
composer create-project symfony/skeleton:"^3.4"
See also https://symfony.com/doc/current/setup.html
I'm just want to install themosis to start new project and i have some problem during installation.
composer create-project themosis/themosis myProject
and the installation fails because obviously missing a package symfony.
Installing themosis/themosis (1.2.3)
- Installing themosis/themosis (1.2.3)
Loading from cache
Created project in myProject
Loading composer repositories with package information
Warning: Accessing wpackagist.org over http which is an insecure protocol.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- themosis/framework 1.2.3 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.2 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.1 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.0 requires symfony/http-foundation 2.4.2 -> no matching package found.
- Installation request for themosis/framework 1.2.* -> satisfiable by themosis/framework[1.2.0, 1.2.1, 1.2.2, 1.2.3].
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 for more details.
Read for further common problems.
I 'm new to this framework and have already done tests and everything worked on my local machine .
Would you have a solution to continue the install of themosis
Thanks for your help.
I was bug on packagist. Now it's fixed. Go try it!
I'm trying to update my symfony project using composer. I'm running into a strange issue I'm not really sure how to handle. My php version is high enough to update but its formatted in such a way composer wont let me update. Here's my error message:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/symfony v3.0.1 requires php >=5.5.9 -> your PHP version (5.6.11-1ubuntu3.1) does not satisfy that requirement.
- symfony/symfony v3.0.0 requires php >=5.5.9 -> your PHP version (5.6.11-1ubuntu3.1) does not satisfy that requirement.
- Installation request for symfony/symfony 3.0.* -> satisfiable by symfony/symfony[v3.0.0, v3.0.1].
As you can see, my php version is indeed high enough to update, however, composer says no. How to I force it to update anyway?
How to I force it to update anyway?
With the --ignore-platform-reqs option composer ignore all the php, ext-*, lib-* requirements and force the installation even if the local machine does not fulfill these.
composer install --ignore-platform-reqs
composer update --ignore-platform-reqs
The option is available also for create-project, remove and require.
The documentation can be read here.
I am installing Sylius. In my command prompt I did
composer create-project -s dev sylius/sylius
I get this error message :
C:\wamp\www\Symfony>composer create-project -s dev sylius/sylius
Installing sylius/sylius (dev-master 18d981683430c0afd1a102b6fc67f8ffeaabddc0)
- Installing sylius/sylius (dev-master master)
Cloning master
Created project in C:\wamp\www\Symfony\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 symfony/icu 1.2.x-dev -> satisfiable by symfony/icu[1.2.x-dev].
- symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> 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 2
- Installation request for instaclick/php-webdriver 1.0.x-dev -> satisfiable by instaclick/php-webdriver[1.0.x-dev].
- instaclick/php-webdriver 1.0.x-dev requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
- Installation request for instaclick/php-webdriver dev-master -> satisfiable by instaclick/php-webdriver[dev-master].
- instaclick/php-webdriver dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 4
- symfony/icu 1.2.x-dev requires lib-icu >=4.4 -> 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.2.x-dev].
- Installation request for symfony/symfony 2.3.x-dev -> satisfiable by symfony/symfony[2.3.x-dev].
What I tried :
php composer.phar self update
php composer.phar install
Deleting sylius directory
Reinstalling sylius with the create-project command
Fresh installation of Symfony 2.3.4 and reinstallation of sylius
Did what was told in the first answer: enable extension curl and intl
Used the function get_loaded_extension() to confirm that curl and intl are loaded. Well, it is loaded
WAMP has two php.ini files, one for apache and one for CLI. When you click on WAMP tray icon in php modules you can see only modules enabled for apache, and so enabling and disabling modules takes effect only for apache copy of php.ini.
Try enabling curl and intl in X:\path\to\wamp\bin\php\php.ini which is config for CLI (BTW. config for apache is placed in X:\path\to\wamp\bin\apache\bin\php.ini).
It looks like you need to install two PHP extensions to make this work: curl and intl (which provides the lib-icu required by symfony/icu). Since you are using Windows, I recommend the official guide on how to install extensions on Windows systems. You can find the intl extension in the PECL repository here.
curl should be installed on your WAMP already, but disabled by default. See the top answer to this question for instructions on how to enable it.
Sylius has now released the latest version v1.0.0 which I have covered in a blog to install it. Here is the Source: https://www.cloudways.com/blog/install-sylius-ecommerce-framework/
You just need to run the following cammands in SSH or Terminal Sylius will be installed
$ composer create-project -s beta sylius/sylius-standard project
$ cd project
$ npm install
$ npm run gulp
$ bin/console sylius:install