PhileCMS / Phile

A flat file CMS with a swappable parser and template engine.
https://philecms.github.io/
Other
257 stars 49 forks source link

Requires for PhileCMS dev-installaton #281

Closed Frodox closed 6 years ago

Frodox commented 8 years ago

For dev installation I need these deps:

$ composer.phar install
The "phile-cms/plugin-installer-plugin" plugin requires composer-plugin-api 1.0.0, this *WILL* break in the future and it should be fixed ASAP (require ^1.0 for example).
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 phpdocumentor/template-zend 1.3.2 -> satisfiable by phpdocumentor/template-zend[1.3.2].
    - phpdocumentor/template-zend 1.3.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
  Problem 2
    - Installation request for zendframework/zend-i18n 2.1.6 -> satisfiable by zendframework/zend-i18n[2.1.6].
    - zendframework/zend-i18n 2.1.6 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 3
    - phpdocumentor/template-zend 1.3.2 requires ext-xsl * -> the requested PHP extension xsl is missing from your system.
    - phpdocumentor/phpdocumentor v2.6.1 requires phpdocumentor/template-zend ~1.3 -> satisfiable by phpdocumentor/template-zend[1.3.2].
    - Installation request for phpdocumentor/phpdocumentor v2.6.1 -> satisfiable by phpdocumentor/phpdocumentor[v2.6.1].

  To enable extensions, verify that they are enabled in those .ini files:
    - /etc/php/cli-php5.6/php.ini
    - /etc/php/cli-php5.6/ext-active/opcache.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

So, it is:

Why do we need it for dev-installation, and what is the different between usual and dev-installation? I think it should b added to Wiki also :) (also, how to deal with missed deps)

NeoBlack commented 8 years ago

The pull request #286 solved your problem. The composer.json is cleanup and after it is merged, your problem is gone.

for the difference between dev and non-dev installation please read the composer documentation. in short: if you want to contribute you need the dev requirements too, e.g. for unit tests and documentation generation. this is not required for the usage in production.

james2doyle commented 8 years ago

@Frodox this should be closed now, can you give it another test?

Frodox commented 8 years ago

@james2doyle yup, of course.I'll do it on weekends.

james2doyle commented 8 years ago

@Frodox any update?

Frodox commented 8 years ago

@james2doyle , First of all, I get another error - looks like we need to update php requirements to PHP >= 5.6. I have CentOS 7 VM (apache 2.4 + php 5.4) for tests and I get:

# php ../composer.phar 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 phpunit/php-code-coverage 3.3.1 -> satisfiable by phpunit/php-code-coverage[3.3.1].
    - phpunit/php-code-coverage 3.3.1 requires php ^5.6 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 2
    - Installation request for phpunit/phpunit 5.3.2 -> satisfiable by phpunit/phpunit[5.3.2].
    - phpunit/phpunit 5.3.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
  Problem 3
    - Installation request for phpunit/phpunit-mock-objects 3.1.3 -> satisfiable by phpunit/phpunit-mock-objects[3.1.3].
    - phpunit/phpunit-mock-objects 3.1.3 requires php >=5.6 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 4
    - Installation request for sebastian/code-unit-reverse-lookup 1.0.0 -> satisfiable by sebastian/code-unit-reverse-lookup[1.0.0].
    - sebastian/code-unit-reverse-lookup 1.0.0 requires php >=5.6 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 5
    - Installation request for sebastian/object-enumerator 1.0.0 -> satisfiable by sebastian/object-enumerator[1.0.0].
    - sebastian/object-enumerator 1.0.0 requires php >=5.6 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 6
    - Installation request for sebastian/resource-operations 1.0.0 -> satisfiable by sebastian/resource-operations[1.0.0].
    - sebastian/resource-operations 1.0.0 requires php >=5.6.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 7
    - Installation request for sebastian/version 2.0.0 -> satisfiable by sebastian/version[2.0.0].
    - sebastian/version 2.0.0 requires php >=5.6 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 8
    - Installation request for squizlabs/php_codesniffer 2.6.0 -> satisfiable by squizlabs/php_codesniffer[2.6.0].
    - squizlabs/php_codesniffer 2.6.0 requires ext-xmlwriter * -> the requested PHP extension xmlwriter is missing from your system.
  Problem 9
    - Installation request for symfony/filesystem v3.0.4 -> satisfiable by symfony/filesystem[v3.0.4].
    - symfony/filesystem v3.0.4 requires php >=5.5.9 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 10
    - Installation request for symfony/translation v3.0.4 -> satisfiable by symfony/translation[v3.0.4].
    - symfony/translation v3.0.4 requires php >=5.5.9 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 11
    - Installation request for zendframework/zend-cache 2.7.0 -> satisfiable by zendframework/zend-cache[2.7.0].
    - zendframework/zend-cache 2.7.0 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 12
    - Installation request for zendframework/zend-config 2.6.0 -> satisfiable by zendframework/zend-config[2.6.0].
    - zendframework/zend-config 2.6.0 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 13
    - Installation request for zendframework/zend-eventmanager 3.0.1 -> satisfiable by zendframework/zend-eventmanager[3.0.1].
    - zendframework/zend-eventmanager 3.0.1 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 14
    - Installation request for zendframework/zend-filter 2.7.1 -> satisfiable by zendframework/zend-filter[2.7.1].
    - zendframework/zend-filter 2.7.1 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 15
    - Installation request for zendframework/zend-hydrator 1.1.0 -> satisfiable by zendframework/zend-hydrator[1.1.0].
    - zendframework/zend-hydrator 1.1.0 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 16
    - Installation request for zendframework/zend-i18n 2.7.2 -> satisfiable by zendframework/zend-i18n[2.7.2].
    - zendframework/zend-i18n 2.7.2 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 17
    - Installation request for zendframework/zend-json 2.6.1 -> satisfiable by zendframework/zend-json[2.6.1].
    - zendframework/zend-json 2.6.1 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 18
    - Installation request for zendframework/zend-math 2.7.0 -> satisfiable by zendframework/zend-math[2.7.0].
    - zendframework/zend-math 2.7.0 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 19
    - Installation request for zendframework/zend-serializer 2.7.1 -> satisfiable by zendframework/zend-serializer[2.7.1].
    - zendframework/zend-serializer 2.7.1 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 20
    - Installation request for zendframework/zend-servicemanager 2.7.5 -> satisfiable by zendframework/zend-servicemanager[2.7.5].
    - zendframework/zend-servicemanager 2.7.5 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 21
    - Installation request for zendframework/zend-stdlib 2.7.7 -> satisfiable by zendframework/zend-stdlib[2.7.7].
    - zendframework/zend-stdlib 2.7.7 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
  Problem 22
    - zendframework/zend-cache 2.7.0 requires php ^5.5 || ^7.0 -> your PHP version (5.4.16) does not satisfy that requirement.
    - phpdocumentor/phpdocumentor v2.8.5 requires zendframework/zend-cache ~2.1 -> satisfiable by zendframework/zend-cache[2.7.0].
    - Installation request for phpdocumentor/phpdocumentor v2.8.5 -> satisfiable by phpdocumentor/phpdocumentor[v2.8.5].

  To enable extensions, verify that they are enabled in those .ini files:
    - /etc/php.ini
    - /etc/php.d/curl.ini
    - /etc/php.d/fileinfo.ini
    - /etc/php.d/json.ini
    - /etc/php.d/phar.ini
    - /etc/php.d/zip.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

:D

I will try to use php 5.6+ and give feedback.

Schlaefer commented 8 years ago

Afaik for the non-dev version you can use composer's --non-dev flag, which should work with 5.4. But giving the fact that PHP-versions below 5.6 aren't supported anymore a general bump to 5.6 should be O.K.

Schlaefer commented 6 years ago

This should fixed by #305