Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 7.2 can not install from composer #8

Open
feishaos opened this issue Feb 15, 2019 · 4 comments
Open

PHP 7.2 can not install from composer #8

feishaos opened this issue Feb 15, 2019 · 4 comments

Comments

@feishaos
Copy link

macOS Mojave 10.14.3
PHP 7.2.7 (cli) (built: Jun 22 2018 06:27:50) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.7, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans

composer require foxrp/rippled-php:dev-master
./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

  • Can only install one of: php-http/httplug[v2.0.0, v1.1.0].
  • Can only install one of: php-http/httplug[v1.1.0, v2.0.0].
  • Can only install one of: php-http/httplug[v1.1.0, v2.0.0].
  • foxrp/rippled-php dev-master requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
  • Installation request for foxrp/rippled-php dev-master -> satisfiable by foxrp/rippled-php[dev-master].
  • Installation request for php-http/httplug (locked at v2.0.0) -> satisfiable by php-http/httplug[v2.0.0].

Installation failed, reverting ./composer.json to its original content.

@feishaos
Copy link
Author

Composer v1.8 is installed by Brew.

@snk-lab
Copy link

snk-lab commented Jul 5, 2019

I also face similar problems.
The following error occurs when you execute composer require foxrp/rippled-php

composer require foxrp/rippled-php
Using version ^1.0 for foxrp/rippled-php
./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
    - Installation request for php-http/httplug (locked at v2.0.0) -> satisfiable by php-http/httplug[v2.0.0].
    - foxrp/rippled-php 1.0.0 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - foxrp/rippled-php 1.0.1 requires php-http/httplug ^1.1 -> satisfiable by php-http/httplug[v1.1.0].
    - Conclusion: don't install php-http/httplug v1.1.0
    - Installation request for foxrp/rippled-php ^1.0 -> satisfiable by foxrp/rippled-php[1.0.0, 1.0.1].


Installation failed, reverting ./composer.json to its original content.

composer require php-http/httplug: 1.0
composer require php-http/httplug: 1.1
I tried, etc. but other libraries require httplug v2.0.0 and get an error.

PHP 7.3.3
Laravel5.8

@tomcyr
Copy link

tomcyr commented Dec 4, 2019

Please try:

composer req php-http/guzzle6-adapter v1.1.1

and then:

composer req foxrp/rippled-php

@anon59310
Copy link

Issue persists even trying the solutions suggested in this post so far.

`[server@vps ~]$ composer req foxrp/rippled-php
Using version ^1.0 for foxrp/rippled-php
./composer.json has been updated
Running composer update foxrp/rippled-php
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires foxrp/rippled-php ^1.0 -> satisfiable by foxrp/rippled-php[1.0.0, 1.0.1].
- foxrp/rippled-php[1.0.0, ..., 1.0.1] require php-http/httplug ^1.1 -> found php-http/httplug[v1.1.0] but the package is fixed to 2.4.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require foxrp/rippled-php:*" to figure out if any version is installable, or "composer require foxrp/rippled-php:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants