OSX 10.10 PHP Composer not finding required extensions intl and mcrypt - php

I am attempting to create a cake PHP application on OSX 10.10 using the following command:
php /usr/local/bin/composer.phar create-project --prefer-dist cakephp/app testapp
When I do I am getting the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.0 -> satisfiable by cakephp/cakephp[3.0.0, 3.0.0-RC1, 3.0.0-RC2, 3.0.0-alpha1, 3.0.0-alpha2, 3.0.0-beta1, 3.0.0-beta2, 3.0.0-beta3, 3.0.1, 3.1.x-dev, 3.0.x-dev].
I have installed the intl extension via pear/pecl but still continue to get this error.
Please someone restore my faith in PHP.

You might have to run php5enmod intl to activate the PHP5 module.
Otherwise, check if you have installed intl to the right PHP installation on OS X: there is a standard OS X one, but if you have installed a PHP version beside the OS X version, check if you have the right PHP in your $PATH variable.

Related

I am trying to install php on my mac os but getting errors as per memory

$ php composer.phar install
i keep getting all sorts of errors
Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 268435456 bytes) in phar:///Users/namdionwuachu/repos/notejam/cakephp/notejam/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223
Check https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors for more info on how to handle out of memory errors.Namdis-MBP:notejam namdionNNNNamdis-MBP:notejam namdionwuachu$ COMPOSER_MEMORY_LIMIT=2G php composer.phar update
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 3.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.9.0-RC2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.9.0-RC1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.9.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.8.9 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.8.8 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.8.7 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.8.6 requires ext-intl * -> the requested PHP extension intl is missing from your
I need your help thanks Namdi

Trouble Installing CakePHP on XAMPP Mac

So I've been trying to install Cake on a Mac laptop running Xampp. So far I have been unsuccessful. When I try to create a project, it just returns this->
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cakephp/cakephp 3.2.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.2.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.2.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.2.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.2.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.2 -> satisfiable by cakephp/cakephp[3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4].
I have installed icu4c and it says intl is installed on phpinfo.php, but this error message keeps showing up. I have been working on this for about 4 hours.
i installed cakePHP3 on osx by following the instructions:
open php.ini file in xmapp, the file should be located in "xampp->etc" folder. Edit this file, first find ";extension=php_intl.dll" line and change it to "extension=php_intl.dll" remove ';'. Hope this will help.
let me know what error you are getting if installtion is failing.

PHP ext-intl * extension installation issue for Cakephp 3.0 on OSX Yosmite

I am trying to install cakephp 3.0 using composer on MAC OSX Yosmite.
But when I run these command line on terminal:
cd /Applications/XAMPP/htdocs/CakeBake
php composer.phar create-project cakephp/app
I encounter following errors :
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.0 -> satisfiable by cakephp/cakephp[3.0.0, 3.0.0-RC1, 3.0.0-RC2, 3.0.0-alpha1,
3.0.0-alpha2, 3.0.0-beta1, 3.0.0-beta2, 3.0.0-beta3, 3.0.1, 3.0.2, 3.0.3, 3.1.x-dev, 3.0.x-dev].
I have already activated : extension=php_intl.dll and also added extension=intl.so to my php.ini in XAMPP/etc/php.ini.
Php version on my computer is php 5.6.8 and XAMPP 5.6.8-0.
Note: I believed I have installed intl extension through the terminal using ICU libraries.(I am not sure if its the right way to put it. I am very new to all these thing). But It still giving me this error. Any help would be greatly appreciated. I hope I provided enough information.
Try to enable extension=php_intl.dll in your php.ini

I am having trouble installing CakePHP on my Mac

I currently have XAMPP 5.6.8 and MAMP 3.2.1 installed on my computer. I also have Composer installed globally on my Mac. I tried all the suggestions in CakePHP but I am not able to install it. I looked all over this forum and none of the suggestions have worked for me. This is the error I get when I type in the commands into the terminal.
Carloss-Mac-mini:~ Carlos_Zetroc$ composer create-project --prefer-dist cakephp/app [CakePHP]
Installing cakephp/app (3.0.2)
- Installing cakephp/app (3.0.2)
Loading from cache
Created project in [CakePHP]
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-beta1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-alpha1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0-RC1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.0.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.0 -> satisfiable by cakephp/cakephp[3.0.0, 3.0.0-RC1, 3.0.0-RC2, 3.0.0-alpha1, 3.0.0-alpha2, 3.0.0-beta1, 3.0.0-beta2, 3.0.0-beta3, 3.0.1, 3.0.2, 3.1.x-dev, 3.0.x-dev].
If anybody can help me out I'd greatly appreciate it.
You have to install and enable ext-intl on your system before installing cakePhp.
You will get the instruction here
Check http://book.cakephp.org/3.0/en/installation.html#requirements
In XAMPP, intl extension is included but you have to uncomment extension=php_intl.dll in php.ini and restart the server through the XAMPP Control Panel.
The OSX answer to this is to go to "php-osx.liip.ch" and run this command for PHP 5.6 (Current stable) in your command line interface (CLI):
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.6
After that is complete, establish the path to your PHP binary. You could use anything you want, but I used vim. Here is the command at the CLI:
"vim ~/.bash_profile"
This will lead you to a CLI text editor. I am told that some people may not have a "usr" directory, if not, feel free to make one. Please go elsewhere to see how to do this.
In the meanwhile, after you have executed "vim ~/.bash_profile", and inside the editor, feel free to press "i" for insert, and then type your path. The line is "export PATH="/usr/local/php5/bin:$PATH". When you are done that, press escape and then ":wq" the ":" stand for "I wanna enter a command", and "wq" stands for "write and quit". When it is done, you will be returned to the command line.
You then enable you path by typing "source ~/.bash_profile". This will enable your new path. Close the CLI and restart it (if needed). Your new path will be "/usr/local/php5/bin/php". You can ascertain this if you type "which php" at the CLI.
This will now change the PHP universal from the default PHP that came with your Mac to the one you then specified. After which, feel free to bake with composer!

requires ext-intl * php

I am using UBUNTU 14.04 and with xampp installed.
however, I am having issue download package from
https://github.com/giggsey/libphonenumber-for-php. I have got the composer installed as well.
created composer.json file
When I run php composer.phar install I received following error
Problem 1
- giggsey/libphonenumber-for-php 6.2.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- giggsey/libphonenumber-for-php 6.2.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- giggsey/libphonenumber-for-php 6.2.0.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- giggsey/libphonenumber-for-php 6.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- giggsey/libphonenumber-for-php 6.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- giggsey/libphonenumber-for-php 6.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- giggsey/libphonenumber-for-php 6.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for giggsey/libphonenumber-for-php ~6.0 -> satisfiable by giggsey/libphonenumber-for-php[6.0, 6.1, 6.1.1, 6.2, 6.2.0.1, 6.2.1, 6.2.2].
You can install the intl extension via apt-get:
sudo apt-get install php5-intl
Restart your server after the installation completes:
sudo service apache2 restart

Categories