I have a project in Laravel-5.1 and I have changed my platform from win10 to Ubuntu.
Showing error:
Loading composer repositories with package inf
In php7.2 Ubuntu 18.04 LTS and ubuntu 19.04
sudo apt-get install php-gd php-xml php7.2-mbstring
Works like a Charm
A lot of good answers already for Ubuntu. I'm on Linux and had the same problem but none of the commands above worked for me.
With Linux and php70 I used the following command which worked great:
sudo yum install php70-mbstring -y
Problem :
Problem 1
- laravel/framework v5.8.38 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- laravel/framework v5.8.38 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- laravel/framework v5.8.38 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
- Installation request for laravel/framework (locked at v5.8.38, required as 5.8.*) -> satisfiable by laravel/framework[v5.8.38].
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.
Solution :
if you using xampp just remove ' ; ' from
;extension=mbstring
in php.ini , save it, done!
After installing packages from given answers, i still get some errors then i install following package and it works fine:
for specific version:
command for php 7.0
sudo apt-get install php7.0-xml
in some cases you also needs a package php7.0-common . install it same as above command.
Your error message is pretty explicit about what is going wrong:
laravel/framework v5.2.9 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
Do you have mbstring
installed on your server and is it enabled?
You can install mbstring
as part of the libapache2-mod-php5 package:
sudo apt-get install libapache2-mod-php5
Or standalone with:
sudo apt-get install php-mbstring
Installing it will also enable it, however you can also enable it by editing your php.ini
file and remove the ;
that is commenting it out if it is already installed.
If this is on your local machine, then follow the appropriate steps to install this on your environment.
The good solution for this error please run this command
composer install --ignore-platform-reqs