First of all, I am sorry if my question may be too vague. So, I will try to clarify my question as much as possible.
I am currently developing a Laravel application, and I am trying to use Intervention Image Facade. When I tried to use it to test an upload, I got the following error:-
NotSupportedException in Driver.php line 16: GD Library extension not available with this PHP installation.
所以,正如我试图做的那样,我使用sudo apt-get install libgd3
安装了GD库,使用sudo apt-get php5.6-gd
安装了php GD驱动程序.然而,这并没有起作用,同样的错误也不断出现在拉维尔.我明显错过了什么,接下来我应该做什么?
Edit 1.我使用以下命令查看php是否真正支持gd驱动程序:-php -i | grep -i --color gd
结果如下:-
/etc/php/5.6/cli/conf.d/20-gd.ini,
gd
GD Support => enabled
GD headers Version => 2.2.3
GD library Version => 2.2.3
gd.jpeg_ignore_warning => 0 => 0
GDM_LANG => en_US
GDMSESSION => ubuntu
_SERVER["GDM_LANG"] => en_US
_SERVER["GDMSESSION"] => ubuntu
希望这能帮助更多人.
EDIT 2 Thanks to all who answered. I found my solution in Mayank Pandey's answer.