1
我已根據https://getcomposer.org/doc/00-intro.md#globally上的說明安裝了全球作曲家,然後嘗試安裝drush。不幸的是,drush未能安裝給出以下錯誤:Drush無法安裝:您的要求無法解析爲可安裝的一組套件
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/console v3.0.1 -> satisfiable by symfony/console[v3.0.1].
- symfony/console v3.0.1 requires php >=5.5.9 -> your PHP version (5.4.16) or value of "config.platform.php" in composer.json does not satisfy that requirement.
Problem 2
- symfony/console v3.0.1 requires php >=5.5.9 -> your PHP version (5.4.16) or value of "config.platform.php" in composer.json does not satisfy that requirement.
- psy/psysh v0.6.1 requires symfony/console ~2.3.10|^2.4.2|~3.0 -> satisfiable by symfony/console[v3.0.1].
- Installation request for psy/psysh v0.6.1 -> satisfiable by psy/psysh[v0.6.1].
即使http://docs.drush.org/en/master/install列表:
Drush 8 master PHP 5.4.5+
我的環境是:
CentOS Linux release 7.2.1511 (Core)
php -v
PHP 5.4.16 (cli) (built: Jun 23 2015 21:17:27)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
,不幸的是我不能升級PHP因爲我需要嚴格遵循RHEL/CentOS官方版本。
然後,我決定試用一下Drush 7.x的分支,不幸的是還贈送:
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/console v3.0.1 -> satisfiable by symfony/console[v3.0.1].
- symfony/console v3.0.1 requires php >=5.5.9 -> your PHP version (5.4.16) or value of "config.platform.php" in composer.json does not satisfy that requirement.
Problem 2
- symfony/console v3.0.1 requires php >=5.5.9 -> your PHP version (5.4.16) or value of "config.platform.php" in composer.json does not satisfy that requirement.
- psy/psysh v0.6.1 requires symfony/console ~2.3.10|^2.4.2|~3.0 -> satisfiable by symfony/console[v3.0.1].
- Installation request for psy/psysh v0.6.1 -> satisfiable by psy/psysh[v0.6.1].
我應該在這種情況下怎麼辦?
是的,我做到了,但不幸的是它出上述描述的依賴。我手動符號鏈接到drush命令的路徑是可執行的,它現在正在爲我工作,但「官方」安裝方式仍然失敗。 – Nick