使用macports安装特定的PHP版本

时间:2017-07-26 18:37:35

标签: php macos symfony composer-php macports

我需要模仿我的托管环境,因此作曲家和symfony会尊重环境。

我的主机是PHP 7.0.6 我的本地环境是7.0.21

升级期间,doctrine / doctrine-bundle会发出错误

Problem 1
    - This package requires php >=7.0.18 but your PHP version (7.0.6) does not satisfy that requirement.
  Problem 2
    - Installation request for ocramius/proxy-manager 2.0.4 -> satisfiable by ocramius/proxy-manager[2.0.4].
    - ocramius/proxy-manager 2.0.4 requires php 7.0.0 - 7.0.5 || ^7.0.7 -> your PHP version (7.0.6) does not satisfy that requirement.
  Problem 3
    - doctrine/migrations v1.5.0 requires ocramius/proxy-manager ^1.0|^2.0 -> satisfiable by ocramius/proxy-manager[2.0.4].
    - doctrine/migrations v1.5.0 requires ocramius/proxy-manager ^1.0|^2.0 -> satisfiable by ocramius/proxy-manager[2.0.4].
    - ocramius/proxy-manager 2.0.4 requires php 7.0.0 - 7.0.5 || ^7.0.7 -> your PHP version (7.0.6) does not satisfy that requirement.
    - Installation request for doctrine/migrations v1.5.0 -> satisfiable by doctrine/migrations[v1.5.0].

我按照这些说明https://trac.macports.org/wiki/howto/InstallingOlderPort 并跟踪正确版本的macport https://github.com/macports/macports-ports/commit/99a636bc52126e82187694ad73c413e22d13f68c

所以我跑了

git clone --single-branch https://github.com/macports/macports-ports.git
cd macports-ports
git checkout 99a636bc52126e82187694ad73c413e22d13f68c

但我仍然拥有相同版本的PHP 任何帮助都会非常感激。

0 个答案:

没有答案