Home > Backend Development > PHP Tutorial > gd库 - GD Library extension not available with this PHP installation.

gd库 - GD Library extension not available with this PHP installation.

WBOY
Release: 2016-06-06 20:11:32
Original
1479 people have browsed it

laravel 调用intervention,
php配置显示gd库已经安装

php -i | grep -i gd

/etc/php5/cli/conf.d/20-gd.ini,
gd
GD Support => enabled
GD Version => 2.1.1-dev
gd.jpeg_ignore_warning => 0 => 0

回复内容:

laravel 调用intervention,
php配置显示gd库已经安装

php -i | grep -i gd

/etc/php5/cli/conf.d/20-gd.ini,
gd
GD Support => enabled
GD Version => 2.1.1-dev
gd.jpeg_ignore_warning => 0 => 0

命令行执行 php 时调用的 php.ini 和 apache/ngix 调用php模块时使用的php.ini通常不是同一个文件,你可以新建一个 info.php 调用 phpinfo() 然后在浏览器中打开,看看里面有没有GD库。

<code>debian 执行sudo apt-get install php5-gd</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template