can't install php pusher on mac - php

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

Related

php artisan command not working in ubuntu

When i do php artisan or php artisan serve in my laravel project it shows some error and I don't know how to solve it. I tried removing composer and again installing it also doing composer update but it does not seem to solve the problem.
Operationg System: Ubuntu 20.04 LTS
My Error:
wiggly#Wiggly-Faun:~/Desktop/Web Designing/websites/Ticketing$ php artisan serve
PHP Warning: require(/home/wiggly/Desktop/Web
Designing/websites/Ticketing/vendor/autoload.php): failed to open stream: No such file or
directory in /home/wiggly/Desktop/Web Designing/websites/Ticketing/artisan on line 18
PHP Fatal error: require(): Failed opening required '/home/wiggly/Desktop/Web
Designing/websites/Ticketing/vendor/autoload.php' (include_path='.:/usr/share/php') in
/home/wiggly/Desktop/Web Designing/websites/Ticketing/artisan on line 18
When I do composer install inside my project is shows:
wiggly#Wiggly-Faun:~/Desktop/Web Designing/websites/Ticketing$
composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of
packages.
Problem 1
- Installation request for laravel/framework v7.18.0 -> satisfiable
by laravel/framework[v7.18.0].
- laravel/framework v7.18.0 requires ext-mbstring * -> the requested
PHP extension mbstring is missing from your system.
Problem 2
- Installation request for league/commonmark 1.5.1 -> satisfiable by
league/commonmark[1.5.1].
- league/commonmark 1.5.1 requires ext-mbstring * -> the requested
PHP extension mbstring is missing from your system.
Problem 3
- 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 4
- Installation request for facade/ignition 2.0.7 -> satisfiable by
facade/ignition[2.0.7].
- facade/ignition 2.0.7 requires ext-mbstring * -> the requested PHP
extension mbstring is missing from your system.
Problem 5
- Installation request for phar-io/manifest 1.0.3 -> satisfiable by
phar-io/manifest[1.0.3].
- phar-io/manifest 1.0.3 requires ext-dom * -> the requested PHP
extension dom is missing from your system.
Problem 6
- Installation request for phpunit/php-code-coverage 7.0.10 ->
satisfiable by phpunit/php-code-coverage[7.0.10].
- phpunit/php-code-coverage 7.0.10 requires ext-dom * -> the
requested PHP extension dom is missing from your system.
Problem 7
- Installation request for phpunit/phpunit 8.5.8 -> satisfiable by
phpunit/phpunit[8.5.8].
- phpunit/phpunit 8.5.8 requires ext-dom * -> the requested PHP
extension dom is missing from your system.
Problem 8
- Installation request for scrivo/highlight.php v9.18.1.1 ->
satisfiable by scrivo/highlight.php[v9.18.1.1].
- scrivo/highlight.php v9.18.1.1 requires ext-mbstring * -> the
requested PHP extension mbstring is missing from your system.
Problem 9
- Installation request for theseer/tokenizer 1.1.3 -> satisfiable by
theseer/tokenizer[1.1.3].
- theseer/tokenizer 1.1.3 requires ext-dom * -> the requested PHP
extension dom is missing from your system.
Problem 10
- laravel/framework v7.18.0 requires ext-mbstring * -> the requested
PHP extension mbstring is missing from your system.
- facade/flare-client-php 1.3.2 requires illuminate/pipeline
^5.5|^6.0|^7.0 -> satisfiable by laravel/framework[v7.18.0].
- Installation request for facade/flare-client-php 1.3.2 ->
satisfiable by facade/flare-client-php[1.3.2].
To enable extensions, verify that they are enabled in your .ini
files:
- /etc/php/7.4/cli/php.ini
- /etc/php/7.4/cli/conf.d/10-opcache.ini
- /etc/php/7.4/cli/conf.d/10-pdo.ini
- /etc/php/7.4/cli/conf.d/20-calendar.ini
- /etc/php/7.4/cli/conf.d/20-ctype.ini
- /etc/php/7.4/cli/conf.d/20-exif.ini
- /etc/php/7.4/cli/conf.d/20-ffi.ini
- /etc/php/7.4/cli/conf.d/20-fileinfo.ini
- /etc/php/7.4/cli/conf.d/20-ftp.ini
- /etc/php/7.4/cli/conf.d/20-gettext.ini
- /etc/php/7.4/cli/conf.d/20-iconv.ini
- /etc/php/7.4/cli/conf.d/20-json.ini
- /etc/php/7.4/cli/conf.d/20-phar.ini
- /etc/php/7.4/cli/conf.d/20-posix.ini
- /etc/php/7.4/cli/conf.d/20-readline.ini
- /etc/php/7.4/cli/conf.d/20-shmop.ini
- /etc/php/7.4/cli/conf.d/20-sockets.ini
- /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.4/cli/conf.d/20-sysvsem.ini
- /etc/php/7.4/cli/conf.d/20-sysvshm.ini
- /etc/php/7.4/cli/conf.d/20-tokenizer.ini
- /etc/php/7.4/cli/conf.d/20-zip.ini
You can also run `php --ini` inside terminal to see which files are
used by PHP in CLI mode.
Did you installed all the necessary vendor packages locally? Does your "vendor" directory exists?
Don't forget to use:
composer install
in the project directory to install necessary vendor packages.
Also, make sure you have installed necessary PHP extensions, such as mbstring and xml, you may install them via:
sudo apt install php-xml php-mbstring
Hopefullly this helps solve your question.

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.

Updating Composer in Digital Ocean Ubuntu via Terminal errors

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.

How do I install php curl for phpfarm?

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?

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