试图升级弹性豆茎到php 8.1,我需要它的作曲家monolog和symfony。错误日志显示我在8.0上。
在.eb扩展名/02_my_Commands.config中,我尝试添加此命令,但没有收到任何命令错误。
commands:
00_upgrade_php:
command: |
sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum -y install yum-utils
sudo yum -y install rpl
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
sudo yum-config-manager --disable 'remi-php*'
sudo yum-config-manager --enable remi-php81
rpl [remi-php81] "[remi-php81]\npriority=1" /etc/yum.repos.d/remi-php81.repo -e
sudo yum upgrade -y php php-*不过,它说我还在PHP8.0版上,我不明白为什么
以下是错误:
Problem 1
- monolog/monolog is locked to version 3.0.0 and an update of this package was not requested.
- monolog/monolog 3.0.0 requires php >=8.1 -> your php version (8.0.6) does not satisfy that requirement.
Problem 2
- symfony/translation is locked to version v6.1.0 and an update of this package was not requested.
- symfony/translation v6.1.0 requires php >=8.1 -> your php version (8.0.6) does not satisfy that requirement.
Problem 3
- symfony/translation-contracts is locked to version v3.1.0 and an update of this package was not requested.
- symfony/translation-contracts v3.1.0 requires php >=8.1 -> your php version (8.0.6) does not satisfy that requirement.
Problem 4
- monolog/monolog 3.0.0 requires php >=8.1 -> your php version (8.0.6) does not satisfy that requirement.
- google/apiclient v2.12.5 requires monolog/monolog ^1.17||^2.0||^3.0 -> satisfiable by monolog/monolog[3.0.0].
- google/apiclient is locked to version v2.12.5 and an update of this package was not requested.发布于 2022-10-10 18:11:54
升级平台版本可能会解决您的问题,它应该附带已安装的php8.1 AWS PHP平台。
https://stackoverflow.com/questions/72468413
复制相似问题