requires ext-intl * php - 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

Related

How do I install these PHP extensions on Ubuntu? [duplicate]

This question already has answers here:
How to install all required PHP extensions for Laravel?
(5 answers)
Closed 3 years ago.
Ubuntu 16.04.
nginx version: nginx/1.10.0 (Ubuntu)
PHP 7.0.8-0ubuntu0.16.04.3
When I run composer install -v in Magento 2 directory I get this:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Dependency resolution completed in 0.000 seconds
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested PHP extension ext-gd * is missing from your system. Install or enable PHP's gd extension.
Problem 2
- The requested PHP extension ext-dom * is missing from your system. Install or enable PHP's dom extension.
Problem 3
- The requested PHP extension ext-simplexml * is missing from your system. Install or enable PHP's simplexml extension.
Problem 4
- The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension.
Problem 5
- The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension.
Problem 6
- The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension.
Problem 7
- The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension.
Problem 8
- The requested PHP extension ext-mbstring * is missing from your system. Install or enable PHP's mbstring extension.
Problem 9
- The requested PHP extension ext-zip * is missing from your system. Install or enable PHP's zip extension.
Problem 10
- Installation request for braintree/braintree_php 3.7.0 -> satisfiable by braintree/braintree_php[3.7.0].
- braintree/braintree_php 3.7.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 11
- Installation request for pelago/emogrifier v0.1.1 -> satisfiable by pelago/emogrifier[v0.1.1].
- pelago/emogrifier v0.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 12
- Installation request for phpunit/phpunit 4.1.0 -> satisfiable by phpunit/phpunit[4.1.0].
- phpunit/phpunit 4.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 13
- Installation request for theseer/fdomdocument 1.6.1 -> satisfiable by theseer/fdomdocument[1.6.1].
- theseer/fdomdocument 1.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 14
- theseer/fdomdocument 1.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- sebastian/phpcpd 2.0.0 requires theseer/fdomdocument ~1.4 -> satisfiable by theseer/fdomdocument[1.6.1].
- Installation request for sebastian/phpcpd 2.0.0 -> satisfiable by sebastian/phpcpd[2.0.0].
How do I install these extensions? I have LEMP stack installed.
You can most probably use your package manager to do this.
For the gd extension specifically you can run
sudo apt-get update && sudo apt-get install php7.0-gd
And there is probably a similar package for the rest of the extensions available.
with apt-cache search you can search for packages. for example
apt-cache search php7.0
will find you all packages related to php7.0

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

OSX 10.10 PHP Composer not finding required extensions intl and mcrypt

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.

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!

Categories