How do I install php curl for phpfarm? - php

composer install gives error:
Problem 1
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for guzzle/guzzle v3.9.3 -> satisfiable by guzzle/guzzle[v3.9.3].
To enable extensions, verify that they are enabled in those .ini files:
- /opt/phpfarm/inst/php-5.4.45/lib/php.ini
I use phpfarm for multiple php version. During installation settings are not specified (for example, configoptions="\ –with-curl \ ... ").
How can I fix this now and install extensions?

Related

Library GD issue

While installing maatwebsite/excel composer it is throwing an error regarding gd library is missing. But I checked in my system gd is already enabled.
Please see the error message below. I also attached a screenshot for the error and phpinfo screen.
Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
Problem 2
phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

When Install composer in laravel get error

Here is the error when running composer install.
Laravel Version is 5.7
Problem 1
- Installation request for mdanter/ecc v0.5.2 -> satisfiable by mdanter/ecc[v0.5.2].
- mdanter/ecc v0.5.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
Problem 2
- mdanter/ecc v0.5.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system.
- spomky-labs/jose v7.1.0 requires mdanter/ecc 0.5.* -> satisfiable by mdanter/ecc[v0.5.2].
- Installation request for spomky-labs/jose v7.1.0 -> satisfiable by spomky-labs/jose[v7.1.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Sylius instalation

Any ideas? :3 I have got a problem with installing sylius. I installed a lamp and composer. So that should work. Also, I tried to install curl and things like that.
Problem 1
- Installation request for jeremykendall/php-domain-parser 3.0.0 -> satisfiable by jeremykendall/php-domain-parser[3.0.0].
- jeremykendall/php-domain-parser 3.0.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for league/uri 4.1.1 -> satisfiable by league/uri[4.1.1].
- league/uri 4.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- Installation request for behat/behat v3.1.0 -> satisfiable by behat/behat[v3.1.0].
- behat/behat v3.1.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 4
- league/uri 4.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- payum/payum 1.3.2 requires league/uri ~4.0 -> satisfiable by league/uri[4.1.1].
- Installation request for payum/payum 1.3.2 -> satisfiable by payum/payum[1.3.2].
To enable extensions, verify that they are enabled in your .ini files:
[long .ini files list]
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
1.find your php.ini
2.make sure the directive extension_dir=C:\path\to\server\php\ext is set and adjust the path (set your PHP extension dir)
3.make sure the directive extension=php_mbstring.dll is set (uncommented)
If this doesn't work and the php_mbstring.dll file is missing, then the PHP installation of this stack is simply broken and you can install it with:
sudo apt-get install php-mbstring

can't install php pusher on mac

i got this error
Problem 1
- pusher/pusher-php-server v2.6.0 requires ext-curl * -> the requested PHP extension curl is missing from your sy stem.
- pusher/pusher-php-server 2.6.3 requires ext-curl * -> the requested PHP extension curl is missing from your sys tem.
- pusher/pusher-php-server 2.6.2 requires ext-curl * -> the requested PHP extension curl is missing from your sys tem.
- pusher/pusher-php-server 2.6.1 requires ext-curl * -> the requested PHP extension curl is missing from your sys tem.
- Installation request for pusher/pusher-php-server ^2.6 -> satisfiable by pusher/pusher-php-server[2.6.1, 2.6.2,
2.6.3, v2.6.0].
when i tried to install pusher for laravel project on on my mac machine (sierra 10.12)
i already add this line on my php.ini file: extension=curl.so
error still the same

Can't update composer.phar - Symfony

When I try to update packages with the terminal command : php composer.phar update I have this error message
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4].
- sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4].
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.4 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.2 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- Installation request for sensio/distribution-bundle ~4.0 -> satisfiable by sensio/distribution-bundle[v4.0.0]."
As you can see from message: you need to install ext-curl extension for PHP.
To install it in Ubuntu you need to run next command:
sudo apt-get install php5-curl
Don't forget to restart apache (or fpm) after it:
sudo service apache2 restart
or fpm:
sudo service php5-fpm restart
The error message is telling you that sensio/distribution-bundle v4 requires sensiolabs/security-checker v2.0.x, which in turn requires the PHP curl extension, which is not installed. So composer cannot (currently) fulfil the requirements specified in your composer.json. At a basic level, you need to install the curl extension.
Why this happened in your case is difficult to determine without more detail:
Have you recently upgraded from distribution bundle v3 to v4? Looks like the dependency on security-checker was introduced between those. You could possibly revert to v3 to avoid this issue.
Has the PHP environment changed, to remove the curl extension?

Categories