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
Related
This question already has answers here:
Composer error: "PHP extension fileinfo is missing from your system"
(12 answers)
Closed 2 years ago.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- intervention/image is locked to version 2.5.0 and an update of this package was not requested.
- intervention/image 2.5.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 2
- league/flysystem is locked to version 1.0.53 and an update of this package was not requested.
- league/flysystem 1.0.53 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 3
- league/flysystem 1.0.53 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- tcg/voyager v1.2.6 requires league/flysystem ~1.0.41 -> satisfiable by league/flysystem[1.0.53].
- tcg/voyager is locked to version v1.2.6 and an update of this package was not requested
You can simple edit your php.ini file and enable the fileinfo extension. All extensions that are disabled are shown starting from a ; semicolon and every enabled one does not have the semicolon ; before it.
Here is the image
I am using a mac and in the command line, I am logged into the server, and want to install composer however I get a number of issues (see below). I don't need PHP unit and so I have also tried composer install --no-dev but the same errors are appearing. Any idea or solution?
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for tijsverkoyen/css-to-inline-styles 2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2].
- tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
Problem 2
- tijsverkoyen/css-to-inline-styles 2.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- laravel/framework v7.3.0 requires tijsverkoyen/css-to-inline-styles ^2.2.2 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.2].
- Installation request for laravel/framework v7.3.0 -> satisfiable by laravel/framework[v7.3.0].
I also tried to install the tijsverkoyen via Sudo and receive another list of issues
Problem 1
- phpunit/phpunit 8.5.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 8.5.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 8.5.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 8.5.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- phpunit/phpunit 8.5.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Installation request for phpunit/phpunit ^8.5 -> satisfiable by phpunit/phpunit[8.5.0, 8.5.1, 8.5.2, 8.5.3, 8.5.x-dev].
The error message says you're missing the PHP extension ext-dom.
You'll need to install it by running sudo apt install php-xml.
This question already has answers here:
Composer error while installing Laravel: 'mbstring' is missing?
(3 answers)
Closed 6 years ago.
problem 1
- Installation request for laravel/framework v5.3.18 -> satisfiable by laravel/framework[v5.3.18].
- laravel/framework v5.3.18 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for phpunit/phpunit 5.6.1 -> satisfiable by phpunit/phpunit[5.6.1].
- phpunit/phpunit 5.6.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
To enable extensions, verify that they are enabled in those .ini files:
- /etc/php/7.0/cli/php.ini
- /etc/php/7.0/cli/conf.d/10-opcache.ini
- /etc/php/7.0/cli/conf.d/10-pdo.ini
- /etc/php/7.0/cli/conf.d/15-xml.ini
- /etc/php/7.0/cli/conf.d/20-calendar.ini
You don't have mbstring installed with your php.
If you have access to the server, and it's a Linux one, you can install it with
sudo apt-get install php-mbstring
Hope I was helpful.
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!
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