问题描述
我正在尝试在Symfony 5上安装 smalot / cups-ipp 程序包,但所需程序包存在依赖性问题。
I'm trying to install smalot/cups-ipp package on Symfony 5 but I have dependency issue with required packages.
到安装 smalot / cups-ipp ,我运行以下命令:
To install smalot/cups-ipp, I run following command:
# composer require smalot/cups-ipp:dev-master
结果是:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for smalot/cups-ipp dev-master -> satisfiable by smalot/cups-ipp[dev-master].
- smalot/cups-ipp dev-master requires php-http/socket-client ^1.0 -> satisfiable by php-http/socket-client[v1.0.0, v1.1.0, v1.2.0, v1.3.0, v1.4.0, v1.4.1] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
我尝试了普通版本(不是dev-master),但是我遇到了另一个 symfony依赖问题/ yaml 软件包。
I tried normal version (not dev-master) but I got another dependency issue with symfony/yaml package.
我安装了 php-http / socket-client ,它需要 symfony / options-resolver 。
symfony / options-resolver 在Symfony 5的版本5中。所以我安装了 php-http / socket -client (在开发者主版本中),否则我还有另一个依赖项问题。
symfony/options-resolver is in version 5 for Symfony 5. So I installed php-http/socket-client in dev-master version otherwise I have another dependency issue.
所以现在我有:
# composer show -i
symfony/options-resolver v5.0.8
php-http/socket-client dev-master
我的问题是 smalot / cups-ipp 需要 php-http / socket-client ,而不是1.4版。那么,您是否知道我如何才能使用当前版本为dev-master(2.0)的 php-http / socket-client 软件包强制 smalot / cups-ipp 安装? / p>
My problem is that smalot/cups-ipp requires php-http/socket-client in version 1.4, not version 2.0. So do you know how I can force smalot/cups-ipp installation with current php-http/socket-client package which is in dev-master (2.0) version?
推荐答案
您可以在,直到今天才发布了该软件包。此更新可缓解所有程序包限制。
As you can see on https://github.com/smalot/cups-ipp/releases, there has been a release of that package just today. This update eases all package restrictions.
Packagist尚不提供此功能,这是维护人员必须通过自动更新进行配置或手动触发的-在此之前,您必须等待。
It is not yet available on Packagist, that's something that the maintainer must either configure through auto updates or trigger manually - until then, you have to wait.
这篇关于Symfony 5:使用Composer安装smalot / cups-ipp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!