Socialite installation error Laravel - laravel

I have installed socialite before but haven't experienced this type of error. All of a sudden this error pops up.
What is the problem that caused these errors?
c:\xampp\htdocs\laravel-projects\chats>composer require laravel/socialite
Using version ^2.0 for laravel/socialite
./composer.json has been created
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
- laravel/socialite v2.0.0 requires league/oauth1-client ~1.0 -> satisfiable
by league/oauth1-client[1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0,
1.5.0, 1.5.1, 1.6.0, 1.6.1]
- laravel/socialite v2.0.3 requires league/oauth1-client ~1.0 -> satisfiable
- laravel/socialite v2.0.7 requires league/oauth1-client ~1.0 -> satisfiable
by league/oauth1-client[1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0,
1.5.0, 1.5.1, 1.6.0, 1.6.1].
- league/oauth1-client 1.0.0 requires guzzle/guzzle 3.* -> satisfiable by gu
- league/oauth1-client 1.0.1 requires guzzle/guzzle 3.* -> satisfiable by gu
zzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1
.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5
.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9
.1, v3.9.2, v3.9.3].
- league/oauth1-client 1.5.1 requires guzzle/guzzle 3.* -> satisfiable by gu
zzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1
.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5
.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9
.1, v3.9.2, v3.9.3].
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension cu
rl is missing from your system.
- guzzle/guzzle v3.3.0 requires ext-curl * -> the requested PHP extension cu
socialite[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15,
v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9
].
To enable extensions, verify that they are enabled in those .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PH
P in CLI mode.
Installation failed, deleting ./composer.json.
I have removed many repeating errors with different version since the error code was very big.

Run composer install or composer update first. Then try running composer require laravel/socialite.
And you have not installed curl, install it first.

I solved it by enabling the curl in Php.ini file and install socialite as usual and it worked

Related

composer install Doctrine/DBAL fails in Laravel 9 with PHP 8.2

I got an error when trying to install doctrine/dbal in order to add timestamp type according to laravel doc in order to allow changing timestamp column in migration.
Here is the message
composer require doctrine/dbal
Using version ^3.6 for doctrine/dbal
./composer.json has been updated
Running composer update doctrine/dbal
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- nette/schema v1.2.2 requires php >=7.1 <8.2 -> your php version (8.2.2) does not satisfy that requirement.
- league/commonmark 2.3.5 requires league/config ^1.1.1 -> satisfiable by league/config[v1.1.1].
- laravel/framework v9.30.0 requires league/commonmark ^2.2 -> satisfiable by league/commonmark[2.3.5].
- league/config v1.1.1 requires nette/schema ^1.2 -> satisfiable by nette/schema[v1.2.2].
- laravel/framework is locked to version v9.30.0 and an update of this package was not requested.
How can I deal with that ? Installing nette/schema before ?
It's saying that a depency cannot be updated / installed with your PHP version. Pay special atention to this line:
- nette/schema v1.2.2 requires php >=7.1 <8.2 -> your php version (8.2.2) does not satisfy that requirement.
You have to check another nette/schema version that support PHP version 8.2.2 (your version) or downgrade PHP

I can't install laravel 6 even my php is 7.2

I working on my local computer(server). This is first time to install Laravel 6. By typing this command,
Laravel new project
The said
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- This package requires php ^7.2 but your HHVM version does not satisfy that requirement.
Problem 2
- Installation request for doctrine/lexer 1.2.0 -> satisfiable by doctrine/lexer[1.2.0].
- doctrine/lexer 1.2.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 3
- Installation request for laravel/framework v6.14.0 -> satisfiable by laravel/framework[v6.14.0].
- laravel/framework v6.14.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 4
- Installation request for laravel/tinker v2.2.0 -> satisfiable by laravel/tinker[v2.2.0].
- laravel/tinker v2.2.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 5
- Installation request for monolog/monolog 2.0.2 -> satisfiable by monolog/monolog[2.0.2].
- monolog/monolog 2.0.2 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 6
- Installation request for symfony/css-selector v5.0.4 -> satisfiable by symfony/css-selector[v5.0.4].
- symfony/css-selector v5.0.4 requires php ^7.2.5 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 7
- Installation request for symfony/mime v5.0.4 -> satisfiable by symfony/mime[v5.0.4].
- symfony/mime v5.0.4 requires php ^7.2.5 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 8
- Installation request for symfony/service-contracts v2.0.1 -> satisfiable by symfony/service-contracts[v2.0.1].
- symfony/service-contracts v2.0.1 requires php ^7.2.5 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 9
- Installation request for symfony/translation-contracts v2.0.1 -> satisfiable by symfony/translation-contracts[v2.0.1].
- symfony/translation-contracts v2.0.1 requires php ^7.2.5 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 10
- Installation request for phpdocumentor/reflection-docblock 5.0.0 -> satisfiable by phpdocumentor/reflection-docblock[5.0.0].
- phpdocumentor/reflection-docblock 5.0.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 11
- 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 php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 12
- Installation request for phpunit/phpunit 8.5.2 -> satisfiable by phpunit/phpunit[8.5.2].
- phpunit/phpunit 8.5.2 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 13
- Installation request for sebastian/global-state 3.0.0 -> satisfiable by sebastian/global-state[3.0.0].
- sebastian/global-state 3.0.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 14
- Installation request for sebastian/type 1.1.3 -> satisfiable by sebastian/type[1.1.3].
- sebastian/type 1.1.3 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
Problem 15
- doctrine/lexer 1.2.0 requires php ^7.2 -> your PHP version (7.1.26) does not satisfy that requirement.
- egulias/email-validator 2.1.15 requires doctrine/lexer ^1.0.1 -> satisfiable by doctrine/lexer[1.2.0].
- Installation request for egulias/email-validator 2.1.15 -> satisfiable by egulias/email-validator[2.1.15].
I am using wamp server
My composer version is
CLI version
How can I fix this? thank you in advance!
It seems like your command line is using a different version of PHP (it seems HHVM).
Try type
where php
in a command prompt and check if the given path is the same inside the WAMP installation folder

I cant install Video thumbnail in my laravel project

I want to install ffmpeg on my laravel project but I am getting this errors.
Problem 1
- Conclusion: remove evenement/evenement v2.1.0
- Conclusion: don't install evenement/evenement v2.1.0
- php-ffmpeg/php-ffmpeg 0.5.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- php-ffmpeg/php-ffmpeg 0.5.1 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- php-ffmpeg/php-ffmpeg 0.6.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- alchemy/binary-driver 1.5.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- Can only install one of: evenement/evenement[1.0.x-dev, v2.1.0].
- Can only install one of: evenement/evenement[v1.0.0, v2.1.0].
- Can only install one of: evenement/evenement[v1.1.0, v2.1.0].
- Installation request for evenement/evenement (locked at v2.1.0) -> satisfiable by evenement/evenement[v2.1.0].
- Installation request for pawlox/video-thumbnail ^1.0 -> satisfiable by pawlox/video-thumbnail[v1.0.3].
- Conclusion: don't install monolog/monolog 2.0.0|install php-ffmpeg/php-ffmpeg 0.5.0|install php-ffmpeg/php-ffmpeg 0.5.1|install php-ffmpeg/php-ffmpeg 0.6.0|install alchemy/binary-driver 1.5.0
- Conclusion: remove monolog/monolog 2.0.0|install php-ffmpeg/php-ffmpeg 0.5.0|install php-ffmpeg/php-ffmpeg 0.5.1|install php-ffmpeg/php-ffmpeg 0.6.0|install alchemy/binary-driver 1.5.0
- pawlox/video-thumbnail v1.0.3 requires php-ffmpeg/php-ffmpeg ~0.5 -> satisfiable by php-ffmpeg/php-ffmpeg[0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.7.x-dev, v0.10.0, v0.11.0, v0.11.1, v0.11.1-pl-1, v0.12, v0.13, v0.14].
- php-ffmpeg/php-ffmpeg v0.14 requires alchemy/binary-driver ^1.5 || ~2.0.0 || ^5.0 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0, 5.0.0, 5.1.0, v2.0.0].
- php-ffmpeg/php-ffmpeg v0.13 requires alchemy/binary-driver ^1.5 || ~2.0.0 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0, v2.0.0].
- php-ffmpeg/php-ffmpeg v0.12 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.1-pl-1 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.1 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.0 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.10.0 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- alchemy/binary-driver 5.1.0 requires monolog/monolog ^1.3 -> satisfiable by monolog/monolog[1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.17.2, 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0,
1.25.0, 1.25.1, 1.25.2, 1.25.3, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.x-dev].
- alchemy/binary-driver v2.0.0 requires monolog/monolog ^1.3 -> satisfiable by monolog/monolog[1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.17.2, 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.25.0,
1.25.1, 1.25.2, 1.25.3, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.x-dev].
- Can only install one of: monolog/monolog[1.25.3, 2.0.0].
- Can only install one of: monolog/monolog[1.x-dev, 2.0.0].
- Can only install one of: monolog/monolog[1.10.0, 2.0.0].
- Can only install one of: monolog/monolog[1.11.0, 2.0.0].
- Can only install one of: monolog/monolog[1.3.0, 2.0.0].
- Can only install one of: monolog/monolog[1.3.1, 2.0.0].
- Can only install one of: monolog/monolog[1.4.0, 2.0.0].
- Can only install one of: monolog/monolog[1.4.1, 2.0.0].
- Can only install one of: monolog/monolog[1.5.0, 2.0.0].
- Can only install one of: monolog/monolog[1.6.0, 2.0.0].
- Can only install one of: monolog/monolog[1.7.0, 2.0.0].
- Can only install one of: monolog/monolog[1.8.0, 2.0.0].
- Can only install one of: monolog/monolog[1.9.0, 2.0.0].
- Can only install one of: monolog/monolog[1.9.1, 2.0.0].
- Installation request for monolog/monolog (locked at 2.0.0) -> satisfiable by monolog/monolog[2.0.0].
I am using laravel 6.4.1
I have researched on the solution but I could not get any.
I don't know that the problem could be.
What could be the solution. thanks
Try this:
Add to your composer.json:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/PHP-FFMpeg/BinaryDriver.git"
}
],
Install the binary-driver ffmpeg dependency:
run composer require php-ffmpeg/binary-driver=dev-master
Install php-ffm:
composer require php-ffmpeg/php-ffm

Composer require dependencies and version issue. Is it possible to force or change satisfiable version requirements?

I am currently working in Laravel 5.6.
I am trying to use the Corcel composer package.
It looks like I already have a version of the hautelook/phpass installed and locked at 0.3.5. Corcel seams to want 0.3.4. Is there a way to force Corcel ge to use 0.3.5 so I don't have to play with my lock?
From my terminal:
$ composer require jgrossi/corcel Using version ^2.6 for
jgrossi/corcel ./composer.json has been updated 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
Installation request for hautelook/phpass (locked at 0.3.5) -> satisfiable by hautelook/phpass[0.3.5].
jgrossi/corcel 2.6.x-dev requires hautelook/phpass 0.3.4 -> satisfiable by hautelook/phpass[0.3.4].
jgrossi/corcel v2.6.0 requires hautelook/phpass 0.3.4 -> satisfiable by hautelook/phpass[0.3.4].
jgrossi/corcel v2.6.1 requires hautelook/phpass 0.3.4 -> satisfiable by hautelook/phpass[0.3.4].
jgrossi/corcel v2.6.2 requires hautelook/phpass 0.3.4 -> satisfiable by hautelook/phpass[0.3.4].
Conclusion: don't install hautelook/phpass 0.3.4
Installation request for jgrossi/corcel ^2.6 -> satisfiable by jgrossi/corcel[2.6.x-dev, v2.6.0, v2.6.1, v2.6.2].
Installation failed, reverting ./composer.json to its original content.
Update:
moving forward when I run into version issues in a composer package I typically fork the repo, make my edits and use my repo in place until the original developer gets a chance to update.
Jeffery Way has a great tutorial on it here
[https://laracasts.com/series/whats-new-in-laravel-8/episodes/11][1]
[1]: https://laracasts.com/series/whats-new-in-laravel-8/episodes/11

composer update returns requirements could not be resolved

$ composer 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
- jenssegers/mongodb v3.3.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
- jenssegers/mongodb v3.3.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
- jenssegers/mongodb v3.3.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
- mongodb/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.2 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.1 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.0 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.5 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.4 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.3 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -> the requested PHP extension mongodb is missing from your system.
- Installation request for jenssegers/mongodb ^3.3 -> satisfiable by jenssegers/mongodb[v3.3.0, v3.3.1].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/7.1/php.ini
- /usr/local/etc/php/7.1/conf.d/php-memory-limits.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
The problem is, that the mongodb extension is not installed our outdated.
Check the documentation to install mongodb for your operating system: https://secure.php.net/manual/en/mongodb.setup.php
and make sure the extension is enabled in your php.ini by checking for:
extension=mongodb.so
If the system you are using is different from where the code will run and that is why you don't have the extension installed you can also choose to ignore the platform requirements.

Resources