ubuntu中的php GD库错误 [英] php GD library error in ubuntu

查看:28
本文介绍了ubuntu中的php GD库错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 ubuntu 11.04,当我打开终端并输入 php -a 时,它显示了一些类似这样的错误

I am using ubuntu 11.04 and when I am opening terminal and typing php -a it is showing some error like this

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/gd.so' - /usr/lib/php5/20090626/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

我认为 GD 库有问题.有什么办法可以解决吗?

I think there is some problem with GD library.Is there any option to solve it?

推荐答案

是的.试试吧:

sudo apt-get install php5-gd

您可能需要删除 php.ini 中的违规行,无论是在 php.ini 中还是在可能是/etc/php5/conf.d/gd.ini.

You probably will have to remove the offending line in your php.ini, either in php.ini or in /etc/php5/conf.d/gd.ini maybe.

这篇关于ubuntu中的php GD库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆