簡體   English   中英

如何確定我的“要求或最低穩定性”以滿足Compser依賴性安裝?

[英]How do I figure out my “requirements or minimum-stability” to satisfy a compser dependency install?

我正在使用PHP7。我想在此處安裝運行代碼所需的組件-https: //github.com/Bit-Wasp/stratum-php 我想將客戶端連接到層池。 我不清楚需要執行哪些確切的組件,因此我決定全部安裝它們,但是出現了一些錯誤

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.

看第一個錯誤,

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.

如何找出/指定錯誤所抱怨的版本?


編輯當我指定推薦的版本並重新運行命令時,出現這些錯誤...

 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. 

即使到目前為止我仍然看不到bitwasp/stratum的問題(v1.0.0是從哪里來的?),我還是發現了另一個提示:您在v0.0.34.2中需要使用bitwasp/bitcoin ,而在v0中明確需要使用bitwasp/buffertools 。 4.0,但這與您要求的v0.5.0沖突。

因此,您應該通過將命令行寫為bitwasp/buffertools:0.4.0來更改命令行以要求v0.4.0的bitwasp/buffertools bitwasp/buffertools:0.4.0 如果仍然有錯誤,請發布。

畢竟,我感到這些軟件包的維護得不好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM