SlaSerX / stalker

:man_technologist: Stalker MW Portal auto install script
https://slaserx.dev
73 stars 106 forks source link

PHING EXECUTION FAILS ON UBUNTU 16.04 #67

Closed d3rmey closed 3 years ago

d3rmey commented 3 years ago

Due to composer repositories have been updated, phing execution during the Ministra deployment might fail on Ubuntu 16.04


https://wiki.infomir.eu/eng/ministra-tv-platform/ministra-installation-guide/faq/what-to-do-if-phing-execution-fails-on-ubuntu-16-04


The "ocramius/package-versions" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option. The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option. You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3. Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Your lock file does not contain a compatible set of packages. Please run composer update.

Problem 1

ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4. If you can not upgrade PHP you can require composer/package-versions-deprecated to resolve this with PHP 7.0+.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.


To avoid this, it is needed to use composer version 1.9.1.

  1. Download the patch composer_version_1.9.1.patch inside the Ministra directory (stalker_portal by default) and apply it to the deploy/build.xml file

sudo patch -p0 < composer_version_1.9.1.patch

  1. Run phing to complete the build
SlaSerX commented 3 years ago

all its work for me try to patch composer