I want to use
https://github.com/rappasoft/laravel-5-boilerplate as a starting point for my Laravel project, but when I do composer install i get the following errors.
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 guzzle/guzzle v3.9.3 -> satisfiable by guzzle/guzzle[v3.9.3].
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 2
- Installation request for stripe/stripe-php v1.18.0 -> satisfiable by stripe/stripe-php[v1.18.0].
- stripe/stripe-php v1.18.0 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- league/oauth1-client 1.5.0 requires guzzle/guzzle 3.* -> satisfiable by guzzle/guzzle[v3.9.3].
- Installation request for league/oauth1-client 1.5.0 -> satisfiable by league/oauth1-client[1.5.0].
How to resolve this?
you are missing php5-curl - CURL module for php5
sudo apt-get install php5-curl
and try to install again.
if you are using ubuntu 16.04, by default it comes with php 7. you are missing php-curl - CURL module for php7
sudo apt install php-curl
Related
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.
my error message that I am getting from the composer is:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for laravel/framework v5.4.28 -> satisfiable by laravel/framework[v5.4.28].
- laravel/framework v5.4.28 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for phpunit/phpunit 5.7.21 -> satisfiable by phpunit/phpunit[5.7.21].
- phpunit/phpunit 5.7.21 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 3
- laravel/framework v5.4.28 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- laravel/tinker v1.0.1 requires illuminate/console ~5.1 -> satisfiable by laravel/framework[v5.4.28].
- Installation request for laravel/tinker v1.0.1 -> satisfiable by laravel/tinker[v1.0.1].
I have tried uncommenting the extension=php_mbstring.dll but it still raises the error. I have tried to change the extension_dir in the "php.ini" and it gives an error. Help is appreciated.
-- EDIT BASED ON NEW INFORMATION --
Since this is Windows, re-installing PHP, enabling the extension in the PHP.INI file, and restarting the Webserver, should work.
-- PREVIOUS SOLUTION FOR LINUX --
You need to install mbstring for php.
Use:
sudo apt-get install phpX.X-mbstring
Where X.X is your version number of PHP.
Its worked for me:
sudo apt-get install php7.2-mbstring
It works
sudo apt-get install php7.3-mbstring
sudo apt install php-xml
composer update
I am trying to get started with laravel on windows and here is the command I tried:
rahul#rahulserver MINGW64 /d/PhpIdeaProjects/LaravelLearning
$ composer create-project laravel/laravel learning-laravel-5
Here is the output I get:
Installing laravel/laravel (v5.0.22)
- Installing laravel/laravel (v5.0.22)
Loading from cache
Created project in learning-laravel-5
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 danielstjules/stringy 1.9.0 -> satisfiable by danielstjules/stringy[1.9.0].
- danielstjules/stringy 1.9.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Problem 2
- Installation request for laravel/framework v5.0.16 -> satisfiable by laravel/framework[v5.0.16].
- laravel/framework v5.0.16 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
So how shall I move on and have it working?
The requested dependencies require the php extension mbstring as the error explains.
the requested PHP extension mbstring is missing from your system
So install the extension and it should install flawless.
mbstring is built in the libapache2-mod-php5 package. Run
sudo apt-get install libapache2-mod-php5
For windows environments check your php.ini and uncomment the line ;extension=php_mbstring.dll to extension=php_mbstring.dll - then restart your webserver.
I installed Composer for windows file.exe and tried to install cakePHP 3.1.1 just now for the first time, but got the below error. Files[CakePHP311] created in that folder and also have XAMPP[PHP version 5.6.8] + Windows 10 Pro.
What is this error and cakePHP files needed re-setup?
User#cccc/C/xampp/htdocs/cakePHP_Blog
$ composer create-project --prefer-dist cakephp/app cakePHPblog
Installing cakephp/app (3.1.1)
- Installing cakephp/app (3.1.1)
Downloading: 100%
Created project in cakePHPblog
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem
- cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extensi on intl is missing from your system.
- cakephp/cakephp 3.1.0-beta2 requires ext-intl * -> the requested PHP exten sion intl is missing from your system.
- cakephp/cakephp 3.1.0-beta requires ext-intl * -> the requested PHP extens ion intl is missing from your system.
- cakephp/cakephp 3.1.0-RC1 requires ext-intl * -> the requested PHP extensi on intl is missing from your system.
- cakephp/cakephp 3.1.0 requires ext-intl * -> the requested PHP extension i ntl is missing from your system.
- Installation request for cakephp/cakephp ~3.1 -> satisfiable by cakephp/ca kephp[3.1.0, 3.1.0-RC1, 3.1.0-beta, 3.1.0-beta2, 3.1.x-dev].
This error occurred from php-intl plugin missing.
If you use Linux, you can try apt-get install php5-intl or yum install php-intl command.
Make sure the extension php_intl is installed and enabled. It comes bundled with the XAMPP installation but may not be enabled. You can enable it by checking for the following line in your php.ini (located at /xampp/php/php.ini) which may be commented out and removing the comment:
;extension=php_intl.dll
TO (remove the semicolon)
extension=php_intl.dll
You will then need to restart Apache from the Xampp Control Panel.
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?