Extension gd is missing from your system - laravel composer Update

前端 未结 13 2453
野趣味
野趣味 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:22

    If you are working in PHP version 5.* then you have to install

    sudo apt-get install php5-gd
    

    And if you are working in PHP version 7.* then you have to install

    sudo apt-get install php7.0-gd
    

    Hope it will work...

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

    sudo apt-get install php7.2-gd... it worked for me
    

提交回复
热议问题