Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error: composer create-project aimeos/aimeos myshop #361

Closed
davistv opened this issue Feb 3, 2021 · 4 comments
Closed

Installation error: composer create-project aimeos/aimeos myshop #361

davistv opened this issue Feb 3, 2021 · 4 comments

Comments

@davistv
Copy link

davistv commented Feb 3, 2021

Environment

  1. Version 2020.10.x-dev
  2. Operating system: Mac

Describe the bug
myshop install instructions don't work on current Mac OS X. Tried PHP 7 and 8 (installed via brew).

PHP 7 output:
`davistv@Muska2 aimeos-demo % /usr/bin/php /usr/local/bin/composer create-project aimeos/aimeos myshop
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so)) in Unknown on line 0
The "fxp/composer-asset-plugin" 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 "fxp/composer-asset-plugin" 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.
Creating a "aimeos/aimeos" project at "./myshop"
The "fxp/composer-asset-plugin" plugin (installed globally) 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.
Installing aimeos/aimeos (2020.10.6)

  • Installing aimeos/aimeos (2020.10.6): Extracting archive
    Created project in /Users/davistv/Sites/aimeos-demo/myshop
    The "fxp/composer-asset-plugin" plugin (installed globally) 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.

@php -r "file_exists('.env') || copy('.env.example', '.env');"
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so)) in Unknown on line 0
@php -r "mkdir('public/files'); mkdir('public/preview'); mkdir('public/uploads');"
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so)) in Unknown on line 0
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- aimeos/aimeos-laravel[2020.10.1, ..., 2020.10.x-dev] require aimeos/aimeos-core 2020.10.* -> satisfiable by aimeos/aimeos-core[2020.10.1, ..., 2020.10.x-dev].
- aimeos/aimeos-core[2020.10.1, ..., 2020.10.x-dev] require ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
- Root composer.json requires aimeos/aimeos-laravel ~2020.10 -> satisfiable by aimeos/aimeos-laravel[2020.10.1, ..., 2020.10.x-dev].

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

Output with PHP8:
`davistv@Muska2 aimeos-demo % composer create-project aimeos/aimeos myshop
The "fxp/composer-asset-plugin" 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 "fxp/composer-asset-plugin" 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.
Creating a "aimeos/aimeos" project at "./myshop"
The "fxp/composer-asset-plugin" plugin (installed globally) 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.
Installing aimeos/aimeos (2018.10.3)

  • Installing aimeos/aimeos (2018.10.3): Extracting archive
    Created project in /Users/davistv/Sites/aimeos-demo/myshop
    The "fxp/composer-asset-plugin" plugin (installed globally) 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.

@php -r "file_exists('.env') || copy('.env.example', '.env');"
@php -r "mkdir('public/files'); mkdir('public/preview'); mkdir('public/uploads');"
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- phpunit/phpunit[6.0.0, ..., 6.5.14] require php ^7.0 -> your php version (8.0.0) does not satisfy that requirement.
- Root composer.json requires phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, ..., 6.5.14].
`

To Reproduce
Steps to reproduce the behavior:

  1. mkdir aimeos-demo
  2. cd aimeos-demo
  3. composer create-project aimeos/aimeos myshop (or /usr/bin/php /usr/local/bin/composer create-project aimeos/aimeos myshop for PHP 7)
  4. See error

Expected behavior
Install a working myshop demo.

@aimeos
Copy link
Owner

aimeos commented Feb 3, 2021

It seems you have a broken PHP installation or at least php-intl extension is missing and something is requiring "fxp/composer-asset-plugin" which isn't compatible to your composer 2.x (but that's not required by the Aimeos package).

@davistv
Copy link
Author

davistv commented Feb 3, 2021

I'll try installing php-intl for my native PHP install, but I'm not sure how many devs use the built-in PHP for their work. Most devs I know use brew to manage PHP versions for projects. The PHP 8 failure error has to do with phpunit requiring php ^7.0, can that be resolved?

@davistv
Copy link
Author

davistv commented Feb 4, 2021

The "fxp/composer-asset-plugin" 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.

fxpio/composer-asset-plugin#334

This isn't getting fixed any time soon, Foxy is supposed to replace composer-asset-plugin now anyway. It seems like this is going to need more work than I can contribute right now.

@aimeos
Copy link
Owner

aimeos commented Feb 5, 2021

OK, we've fixed the problem in the composer.json. You can now install Aimeos using PHP 8 (version 2020.10.7)

@aimeos aimeos closed this as completed Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants