简体   繁体   中英

cakephp 3.0 composer installation issue

After executing

php composer.phar create-project -s dev cakephp/app 

I receive the following problem

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 cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
  • cakephp/cakephp 3.0.x-dev requires php >=5.4.19 -> no matching package found.

NB:

  • I have php 5.4.4 installed
  • I have composer updated to the latest commit
  • OS : MAC MAVRICX

The error message reads:

cakephp/cakephp 3.0.x-dev requires php >=5.4.19

But

I have php 5.4.4 installed

php 5.4.4 is not >= 5.4.19, cannot be used, and cannot be upgraded via composer hence the error output. The solution to this is to install a version of php that does satisfy that requirement.

first install php5-intl than go for composser

sudo apt-get install php5-intl

  Note: This is required.

Step 1 cd /ldc/home/

Step 2 curl -s https://getcomposer.org/installer | php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM