前提・実現したいこと
composerを使い、cake.phpインストール
composer create-project --prefer-dist cakephp/app Cake.php でCake.php を作成しようとすると
Your requirements could not be resolved to an installable set of packages.
というエラー発生
発生している問題・エラーメッセージ
composer create-project --prefer-dist cakephp/app Cake.php でCake.php を作成しようとすると
Your requirements could not be resolved to an installable set of packages.
というエラー発生
エラーメッセージ Your requirements could not be resolved to an installable set of packages.
該当のソースコード
composer create-project --prefer-dist cakephp/app Cake.phpls PHP Warning: PHP Startup: Unable to load dynamic library 'intl.so' (tried: /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), /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so.so (dlopen(/usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so.so, 0x0009): dlopen(): file not found: /usr/lib/php/extensions/no-debug-non-zts-20180731/intl.so.so)) in Unknown on line 0 Installing cakephp/app (4.0.3) - Installing cakephp/app (4.0.3): Loading from cache Created project in Cake.phpls Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - cakephp/cakephp 4.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 4.0.3 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 4.0.2 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 4.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 4.0.0-beta4 requires cakephp/chronos 2.x-dev as 2.0.0 -> no matching package found. - cakephp/cakephp 4.0.0-beta3 requires cakephp/chronos 2.x-dev as 2.0.0 -> no matching package found. - cakephp/cakephp 4.0.0-beta2 requires cakephp/chronos 2.x-dev as 2.0.0 -> no matching package found. - cakephp/cakephp 4.0.0-beta1 requires cakephp/chronos 2.x-dev as 2.0.0 -> no matching package found. - cakephp/cakephp 4.0.0-alpha2 requires cakephp/chronos 2.x-dev as 2.0.0 -> no matching package found. - cakephp/cakephp 4.0.0-alpha1 requires cakephp/chronos 2.x-dev as 2.0.0 -> no matching package found. - cakephp/cakephp 4.0.0-RC2 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 4.0.0-RC1 requires cakephp/chronos 2.x-dev as 2.0.0 -> no matching package found. - cakephp/cakephp 4.0.0 requires ext-intl * -> the requested PHP extension intl is missing from your system. - Installation request for cakephp/cakephp ^4.0 -> satisfiable by cakephp/cakephp[4.0.0, 4.0.0-RC1, 4.0.0-RC2, 4.0.0-alpha1, 4.0.0-alpha2, 4.0.0-beta1, 4.0.0-beta2, 4.0.0-beta3, 4.0.0-beta4, 4.0.1, 4.0.2, 4.0.3, 4.x-dev]. Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details. - It's a private package and you forgot to add a custom repository to find it Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems. 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.
試したこと
Your requirements could not be resolved to an installable set of packages.
や
cakephp/cakephp 4.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
で検索をかけ、他のteratailなどを見た
php.iniに;extension=php_intl.so追記など実行
が解消できなかった
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。