简体   繁体   English

在GD支持下重新编译PHP以在centos上运行JpGraph

[英]recompile PHP with GD support to run JpGraph on centos

I want to recompile PHP with GD support to run JpGraph on centos 5.9 i686. 我想重新编译具有GD支持的PHP,以便在centos 5.9 i686上运行JpGraph。 when i want to see charts, i face with ehis error. 当我想查看图表时,会遇到ehis错误。 I have installed an accounting script on this server called IBSng please help me do this... 我已在此服务器上安装了名为IBSng的记帐脚本,请帮助我执行此操作...

the complete text of this error is: 该错误的全文为:

JpGraph Error This PHP installation is not configured with the GD library. JpGraph错误此PHP安装未使用GD库进行配置。 Please recompile PHP with GD support to run JpGraph. 请重新编译具有GD支持的PHP以运行JpGraph。 (Neither function imagetypes() nor imagecreatefromstring() does exist) (函数imagetypes()和imagecreatefromstring()都不存在)

You shouldn't need to recompile PHP. 您不需要重新编译PHP。 GD can be installed as a dynamic library. GD可以作为动态库安装。

You need to find a yum repo that offers php-gd for your PHP version. 您需要找到一个为您的PHP版本提供php-gd的yum库。 Then run 然后跑

yum install gd gd-devel php-gd
yum install gd gd-devel php-gd

要么

apt-get install php-gd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM