Extension gd is missing from your system - laravel composer Update

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

    It may not be enabled for php-cli, you can enable like this;

    sudo phpenmod gd
    

    UPDATE

    I guess, you are using ppa:ondrej php package (5.6), which is confusing you with default ubuntu 14.04 php package (5.5.9).

    To install php 5.6 gd library from ppa:ondrej, you should use:

    sudo apt-get install php5.6-gd
    

提交回复
热议问题