I am trying to install symfony using composer. I am using the following command
sudo composer create-project symfony/framework-standard-edition /var/www/html/infinite-jest
But I am getting the following errors
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sensio/distribution-bundle v3.0.12 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0].
- sensio/distribution-bundle v3.0.13 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0].
- sensio/distribution-bundle v3.0.14 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0].
- sensio/distribution-bundle v3.0.15 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0].
- sensiolabs/security-checker v2.0.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for sensio/distribution-bundle ~3.0.12 -> satisfiable by sensio/distribution-bundle[v3.0.12, v3.0.13, v3.0.14, v3.0.15].
What am I doing wrong and what should I do?
It seems that you don't have curl or php curl extension installed in your system.
And it is now recommended to use the new installer for symfony
Related
I want to install a package using composer for my PHP project.
I tried this first:
composer require jenssegers/mongodb --ignore-platform-reqs
But it doesn't work with this method. Therefore, I removed the mongodb and after install again.
But it doesn't work this method.
composer install
Problem 1
- Installation request for mongodb/mongodb 1.4.2 -> satisfiable by mongodb/mongodb[1.4.2].
- mongodb/mongodb 1.4.2 requires ext-mongodb ^1.5.0 -> the requested PHP extension mongodb is missing from your system.
Problem 2
- mongodb/mongodb 1.4.2 requires ext-mongodb ^1.5.0 -> the requested PHP extension mongodb is missing from your system.
- jenssegers/mongodb v3.5.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.4.2].
- Installation request for jenssegers/mongodb v3.5.0 -> satisfiable by jenssegers/mongodb[v3.5.0].
I'm using PHP 7. I want to install the components necessary to run the code here -- https://github.com/Bit-Wasp/stratum-php . I want to make client connections to a stratum pool. I'm not clear on what exact components I need to do that so I decided to install them all, but I'm getting some errors
localhost:stratum-php-master davea$ composer require bitwasp/bitcoin bitwasp/bitcoin-lib bitwasp/bitcoin-node bitwasp/bitcoin-p2p bitwasp/buffertools bitwasp/commonblockchain bitwasp/secp256k1-php bitwasp/stratum bitwasp/testing-php bitwasp/thread
Using version v0.0.34.2 for bitwasp/bitcoin
Using version ^1.2 for bitwasp/bitcoin-lib
Using version ^0.0.2 for bitwasp/bitcoin-node
Using version ^0.0.17 for bitwasp/bitcoin-p2p
Using version ^0.5.0 for bitwasp/buffertools
Using version ^1.0 for bitwasp/commonblockchain
Using version ^0.1.2 for bitwasp/secp256k1-php
Using version ^0.3.0 for bitwasp/stratum
Using version ^0.1.1 for bitwasp/testing-php
Using version ^0.0.1 for bitwasp/thread
./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
- The requested package bitwasp/stratum No version set (parsed as 1.0.0) is satisfiable by bitwasp/stratum[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
Problem 2
- Installation request for bitwasp/bitcoin v0.0.34.2 -> satisfiable by bitwasp/bitcoin[v0.0.34.2].
- bitwasp/bitcoin v0.0.34.2 requires bitwasp/buffertools ^0.4.0 -> satisfiable by bitwasp/buffertools[0.4.x-dev, v0.4.0, v0.4.1] but these conflict with your requirements or minimum-stability.
Problem 3
- Installation request for bitwasp/bitcoin-node ^0.0.2 -> satisfiable by bitwasp/bitcoin-node[v0.0.2].
- bitwasp/bitcoin-node v0.0.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
Problem 4
- Installation request for bitwasp/bitcoin-p2p ^0.0.17 -> satisfiable by bitwasp/bitcoin-p2p[v0.0.17].
- bitwasp/bitcoin-p2p v0.0.17 requires bitwasp/bitcoin ~0.0.33.1 -> satisfiable by bitwasp/bitcoin[0.0.33.x-dev, v0.0.33.1, v0.0.33.2, v0.0.33.3] but these conflict with your requirements or minimum-stability.
Problem 5
- bitwasp/bitcoin-lib v1.2.3 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- bitwasp/bitcoin-lib v1.2.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- bitwasp/bitcoin-lib v1.2.1 requires mdanter/ecc dev-master#89640a0873e212a723212e7f374f973b7d1fe6f6 -> satisfiable by mdanter/ecc[dev-master] but these conflict with your requirements or minimum-stability.
- bitwasp/bitcoin-lib 1.2.0 requires mdanter/ecc dev-master#89640a0873e212a723212e7f374f973b7d1fe6f6 -> satisfiable by mdanter/ecc[dev-master] but these conflict with your requirements or minimum-stability.
- Installation request for bitwasp/bitcoin-lib ^1.2 -> satisfiable by bitwasp/bitcoin-lib[1.2.0, v1.2.1, v1.2.2, v1.2.3].
Installation failed, reverting ./composer.json to its original content.
Looking at the first error,
The requested package bitwasp/stratum No version set (parsed as 1.0.0) is satisfiable by bitwasp/stratum[No version set (parsed as 1.0.0)] but these conflict with your requirements or minimum-stability.
How do I figure out / specify the version that the error is complaining about?
Edit When I specified the version recommended and re-ran the command I got these errors ...
localhost:stratum-php-master davea$ composer require bitwasp/bitcoin bitwasp/bitcoin-lib bitwasp/bitcoin-node bitwasp/bitcoin-p2p bitwasp/buffertools:0.4.0 bitwasp/commonblockchain bitwasp/secp256k1-php bitwasp/stratum bitwasp/testing-php bitwasp/thread
Using version v0.0.34.2 for bitwasp/bitcoin
Using version ^1.2 for bitwasp/bitcoin-lib
Using version ^0.0.2 for bitwasp/bitcoin-node
Using version ^0.0.17 for bitwasp/bitcoin-p2p
Using version ^1.0 for bitwasp/commonblockchain
Using version ^0.1.2 for bitwasp/secp256k1-php
Using version ^0.3.0 for bitwasp/stratum
Using version ^0.1.1 for bitwasp/testing-php
Using version ^0.0.1 for bitwasp/thread
./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
- The requested package bitwasp/stratum 1.0.0 is satisfiable by bitwasp/stratum[1.0.0] but these conflict with your requirements or minimum-stability.
Problem 2
- Installation request for bitwasp/bitcoin v0.0.34.2 -> satisfiable by bitwasp/bitcoin[v0.0.34.2].
- bitwasp/bitcoin v0.0.34.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
Problem 3
- Installation request for bitwasp/bitcoin-node ^0.0.2 -> satisfiable by bitwasp/bitcoin-node[v0.0.2].
- bitwasp/bitcoin-node v0.0.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
Problem 4
- Installation request for bitwasp/bitcoin-p2p ^0.0.17 -> satisfiable by bitwasp/bitcoin-p2p[v0.0.17].
- bitwasp/bitcoin-p2p v0.0.17 requires bitwasp/bitcoin ~0.0.33.1 -> satisfiable by bitwasp/bitcoin[0.0.33.x-dev, v0.0.33.1, v0.0.33.2, v0.0.33.3] but these conflict with your requirements or minimum-stability.
Problem 5
- mdanter/ecc v0.5.0 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- mdanter/ecc v0.4.5 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- mdanter/ecc v0.4.4 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- mdanter/ecc v0.4.3 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- mdanter/ecc v0.4.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- mdanter/ecc v0.4.1 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- mdanter/ecc v0.4.0 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- bitwasp/buffertools v0.4.0 requires mdanter/ecc ~0.4 -> satisfiable by mdanter/ecc[v0.4.0, v0.4.1, v0.4.2, v0.4.3, v0.4.4, v0.4.5, v0.5.0].
- Installation request for bitwasp/buffertools 0.4.0 -> satisfiable by bitwasp/buffertools[v0.4.0].
Installation failed, reverting ./composer.json to its original content.
Even if I could not see the problem with bitwasp/stratum so far (where does v1.0.0 come from?), I found another hint: you require bitwasp/bitcoin in v0.0.34.2 which explicitly requires bitwasp/buffertools in v0.4.0, but this conflicts with v0.5.0 you've required.
So, you should change the command line to require v0.4.0 of bitwasp/buffertools by writing it as bitwasp/buffertools:0.4.0. If there is still an error, please post it.
After all, I have the feeling that these packages are not really well maintained...
Every time when i am running "composer require jenssegers/mongodb ^3.0" this command in my command prompt. I am just getting below error can any one suggest. Thanks in advance.
Installation failed, reverting ./composer.json to its original content.
D:\XAMPP\htdocs\library>composer require jenssegers/mongodb
Using version ^3.0 for jenssegers/mongodb
./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
- jenssegers/mongodb v3.0.0 requires mongodb/mongodb ^1.0.0 -> satisfiable b
y mongodb/mongodb[1.0.0, 1.0.1].
- jenssegers/mongodb v3.0.1 requires mongodb/mongodb ^1.0.0 -> satisfiable b
y mongodb/mongodb[1.0.0, 1.0.1].
- jenssegers/mongodb v3.0.2 requires mongodb/mongodb ^1.0.0 -> satisfiable b
y mongodb/mongodb[1.0.0, 1.0.1].
- mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP ext
ension mongodb is missing from your system.
- mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP ext
ension mongodb is missing from your system.
- Installation request for jenssegers/mongodb ^3.0 -> satisfiable by jensseg
ers/mongodb[v3.0.0, v3.0.1, v3.0.2].
To enable extensions, verify that they are enabled in those .ini files:
- D:\XAMPP\php\php.ini
You can also run php --ini inside terminal to see which files are used by PH
P in CLI mode.
try this
composer require jenssegers/mongodb --ignore-platform-reqs
When I try to update packages with the terminal command : php composer.phar update I have this error message
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4].
- sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4].
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.4 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for sensio/distribution-bundle ~4.0 -> satisfiable by sensio/distribution-bundle[v4.0.0]."
As you can see from message: you need to install ext-curl extension for PHP.
To install it in Ubuntu you need to run next command:
sudo apt-get install php5-curl
Don't forget to restart apache (or fpm) after it:
sudo service apache2 restart
or fpm:
sudo service php5-fpm restart
The error message is telling you that sensio/distribution-bundle v4 requires sensiolabs/security-checker v2.0.x, which in turn requires the PHP curl extension, which is not installed. So composer cannot (currently) fulfil the requirements specified in your composer.json. At a basic level, you need to install the curl extension.
Why this happened in your case is difficult to determine without more detail:
Have you recently upgraded from distribution bundle v3 to v4? Looks like the dependency on security-checker was introduced between those. You could possibly revert to v3 to avoid this issue.
Has the PHP environment changed, to remove the curl extension?
Hie I get the following error when trying create a symfony project. This has been working well until I tried to start another project. Help please.
$ php composer.phar create-project symfony/framework-standard-edition BookSite
Installing symfony/framework-standard-edition (v2.6.3)
- Installing symfony/framework-standard-edition (v2.6.3)
Loading from cache
Created project in BookSite
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
- sensio/distribution-bundle v3.0.12 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0].
- sensio/distribution-bundle v3.0.13 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0].
- sensio/distribution-bundle v3.0.14 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0].
- sensio/distribution-bundle v3.0.15 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.0].
- sensiolabs/security-checker v2.0.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for sensio/distribution-bundle ~3.0.12 -> satisfiable by sensio/distribution-bundle[v3.0.12, v3.0.13, v3.0.14, v3.0.15].
Install PHP extension curl
apt-get install php5-curl
Install php extension:
sudo apt install php7.0-curl