Magento2 De Instalação:Compositor PHP versão erros no Windows
-
12-12-2019 - |
Pergunta
Eu tentei instalar o Magento2 no Windows que é executado PHP 5.5.19 e MySQL 5.6.X versões (a partir do pacote xampp) através de Compositor, mas recebi a seguinte erros depois de executar composer install
(por favor, confira aqui).
ATUALIZAÇÃO 1
https://github.com/magento/magento2/issues/813
ATUALIZAÇÃO 2 - Problema Matérias
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package php could not be found in any version, there may be
a typo in the package name.
Problem 2
- The requested package php could not be found in any version, there may be
a typo in the package name.
Problem 3
- Installation request for zendframework/zend-stdlib 2.3.1 -> satisfiable by
zendframework/zend-stdlib[2.3.1].
- zendframework/zend-stdlib 2.3.1 requires php >=5.3.23 -> no matching packa
ge found.
Problem 4
- Installation request for zendframework/zend-code 2.3.1 -> satisfiable by z
endframework/zend-code[2.3.1].
- zendframework/zend-code 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 5
- Installation request for zendframework/zend-server 2.3.1 -> satisfiable by
zendframework/zend-server[2.3.1].
- zendframework/zend-server 2.3.1 requires php >=5.3.23 -> no matching packa
ge found.
Problem 6
- Installation request for zendframework/zend-soap 2.3.1 -> satisfiable by z
endframework/zend-soap[2.3.1].
- zendframework/zend-soap 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 7
- Installation request for zendframework/zend-uri 2.3.1 -> satisfiable by ze
ndframework/zend-uri[2.3.1].
- zendframework/zend-uri 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 8
- Installation request for zendframework/zend-validator 2.3.1 -> satisfiable
by zendframework/zend-validator[2.3.1].
- zendframework/zend-validator 2.3.1 requires php >=5.3.23 -> no matching pa
ckage found.
Problem 9
- Installation request for zendframework/zend-console 2.3.1 -> satisfiable b
y zendframework/zend-console[2.3.1].
- zendframework/zend-console 2.3.1 requires php >=5.3.23 -> no matching pack
age found.
Problem 10
- Installation request for zendframework/zend-modulemanager 2.3.1 -> satisfi
able by zendframework/zend-modulemanager[2.3.1].
- zendframework/zend-modulemanager 2.3.1 requires php >=5.3.23 -> no matchin
g package found.
Problem 11
- Installation request for zendframework/zend-mvc 2.3.1 -> satisfiable by ze
ndframework/zend-mvc[2.3.1].
- zendframework/zend-mvc 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 12
- Installation request for zendframework/zend-text 2.3.1 -> satisfiable by z
endframework/zend-text[2.3.1].
- zendframework/zend-text 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 13
- Installation request for zendframework/zend-eventmanager 2.3.1 -> satisfia
ble by zendframework/zend-eventmanager[2.3.1].
- zendframework/zend-eventmanager 2.3.1 requires php >=5.3.23 -> no matching
package found.
Problem 14
- Installation request for zendframework/zend-view 2.3.1 -> satisfiable by z
endframework/zend-view[2.3.1].
- zendframework/zend-view 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 15
- Installation request for zendframework/zend-servicemanager 2.3.1 -> satisf
iable by zendframework/zend-servicemanager[2.3.1].
- zendframework/zend-servicemanager 2.3.1 requires php >=5.3.23 -> no matchi
ng package found.
Problem 16
- Installation request for zendframework/zend-json 2.3.1 -> satisfiable by z
endframework/zend-json[2.3.1].
- zendframework/zend-json 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 17
- Installation request for zendframework/zend-config 2.3.1 -> satisfiable by
zendframework/zend-config[2.3.1].
- zendframework/zend-config 2.3.1 requires php >=5.3.23 -> no matching packa
ge found.
Problem 18
- Installation request for zendframework/zend-form 2.3.1 -> satisfiable by z
endframework/zend-form[2.3.1].
- zendframework/zend-form 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 19
- Installation request for zendframework/zend-di 2.3.1 -> satisfiable by zen
dframework/zend-di[2.3.1].
- zendframework/zend-di 2.3.1 requires php >=5.3.23 -> no matching package f
ound.
Problem 20
- Installation request for zendframework/zend-serializer 2.3.1 -> satisfiabl
e by zendframework/zend-serializer[2.3.1].
- zendframework/zend-serializer 2.3.1 requires php >=5.3.23 -> no matching p
ackage found.
Problem 21
- Installation request for zendframework/zend-log 2.3.1 -> satisfiable by ze
ndframework/zend-log[2.3.1].
- zendframework/zend-log 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 22
- Installation request for zendframework/zend-http 2.3.1 -> satisfiable by z
endframework/zend-http[2.3.1].
- zendframework/zend-http 2.3.1 requires php >=5.3.23 -> no matching package
found.
Problem 23
- Installation request for magento/zendframework1 1.12.9 -> satisfiable by m
agento/zendframework1[1.12.9].
- magento/zendframework1 1.12.9 requires php >=5.2.11 -> no matching package
found.
Problem 24
- Installation request for composer/composer 1.0.0-alpha8 -> satisfiable by
composer/composer[1.0.0-alpha8].
- composer/composer 1.0.0-alpha8 requires php >=5.3.2 -> no matching package
found.
Problem 25
- Installation request for phpunit/phpunit 4.1.0 -> satisfiable by phpunit/p
hpunit[4.1.0].
- phpunit/phpunit 4.1.0 requires php >=5.3.3 -> no matching package found.
Problem 26
- Installation request for squizlabs/php_codesniffer 1.5.3 -> satisfiable by
squizlabs/php_codesniffer[1.5.3].
- squizlabs/php_codesniffer 1.5.3 requires php >=5.1.2 -> no matching packag
e found.
Problem 27
- phpmd/phpmd 2.1.3 requires php >=5.3.0 -> no matching package found.
- phpmd/phpmd 2.1.2 requires php >=5.3.0 -> no matching package found.
- phpmd/phpmd 2.1.1 requires php >=5.3.0 -> no matching package found.
- phpmd/phpmd 2.0.0 requires php >=5.3.0 -> no matching package found.
- phpmd/phpmd 1.5.1 requires php >=5.3.0 -> no matching package found.
- phpmd/phpmd 1.5.0 requires php >=5.3.0 -> no matching package found.
- phpmd/phpmd 1.4.1 requires php >=5.3.0 -> no matching package found.
- phpmd/phpmd 1.4.0 requires php >=5.3.0 -> no matching package found.
- Installation request for phpmd/phpmd @stable -> satisfiable by phpmd/phpmd
[1.4.0, 1.4.1, 1.5.0, 1.5.1, 2.0.0, 2.1.1, 2.1.2, 2.1.3].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common
problems.
Solução
Uma das abordagens dadas abaixo resolver o problema, cabe a você escolher um
Recomendado
Editar o compositor.json arquivo como mostrado abaixo:
"php": "~5.4.11|~5.5.0|~5.6.0",
Não é muito recomendado - mas certamente permitir que o magento pré-instalação (download necessário fornecedor de pacotes) começar
composer install --ignore-platform-reqs
PS:Créditos Vlad Veselov e nyov
Outras dicas
Certifique-se de que você tem mais recente versão do XAMPP instalado no windows que tenha o PHP versão 5.6.3
Se você estiver usando Magento2 versão 0.42.0-beta2 ou mais tarde você precisará fazer as seguintes alterações no compositor.json arquivo na linha de número 11.
"php": "~5.4.11|~5.5.0|~5.6.0",
Em caso de que se você estiver atualizando Magento2 a partir de qualquer versão antiga, então, essa mudança também é necessária.