Extension gd is missing from your system - laravel composer Update

前端 未结 13 2138
野趣味
野趣味 2021-01-31 14:00

I newly install Dompdf in Laravel Project via Composer (composer require barryvdh/laravel-dompdf). After enter the Command Terminal Reply Following Errors.

相关标签:
13条回答
  • 2021-01-31 14:12

    For Windows : Uncomment this line in your php.ini file

    ;extension=php_gd2.dll
    

    If the above step doesn't work uncomment the following line as well:

    ;extension=gd2
    
    0 讨论(0)
  • 2021-01-31 14:16

    Open your php.ini and uncomment this line:

    ;extension=php_gd2.dll

    0 讨论(0)
  • 2021-01-31 14:16

    Using Manjaro(Arch) Linux:

    $ sudo pacman -S php-gd
    

    In file /etc/php/php-ini, add the line:

    extension=gd.so
    
    0 讨论(0)
  • 2021-01-31 14:17

    if you are working in PHP version 7.2 then you have to install

    sudo apt-get install php7.2-gd
    
    0 讨论(0)
  • 2021-01-31 14:17

    This worked for me:

    composer require "ext-gd:*" --ignore-platform-reqs
    
    0 讨论(0)
  • 2021-01-31 14:17

    On CentOS 7, try running following command:

    sudo yum install php72u-gd.x86_64
    
    0 讨论(0)
提交回复
热议问题