rippled-php icon indicating copy to clipboard operation
rippled-php copied to clipboard

PHP 7.2 can not install from composer

Open feishaos opened this issue 6 years ago • 4 comments
trafficstars

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 avatar Feb 15 '19 13:02 feishaos

Composer v1.8 is installed by Brew.

feishaos avatar Feb 15 '19 13:02 feishaos

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

snk-lab avatar Jul 05 '19 09:07 snk-lab

Please try:

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

and then:

composer req foxrp/rippled-php

tomcyr avatar Dec 04 '19 14:12 tomcyr

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.`

anon59310 avatar Apr 20 '23 15:04 anon59310