getting error while updating Composer

后端 未结 9 2025
有刺的猬
有刺的猬 2020-12-12 20:24

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

相关标签:
9条回答
  • 2020-12-12 21:00

    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

    0 讨论(0)
  • 2020-12-12 21:01

    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

    0 讨论(0)
  • 2020-12-12 21:04

    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!

    0 讨论(0)
  • 2020-12-12 21:05

    After installing packages from given answers, i still get some errors then i install following package and it works fine:

    • php-xml

    for specific version:

    • php7.0-xml

    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.

    0 讨论(0)
  • 2020-12-12 21:07

    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.

    0 讨论(0)
  • 2020-12-12 21:07

    The good solution for this error please run this command

    composer install --ignore-platform-reqs

    0 讨论(0)
提交回复
热议问题