Call to undefined function imageantialias

出现这个问题,首先看一下phpinfo(),到底有没有装freetype,gd等,没装的话,必然会出现这个问题,可我是把gd装了几次了,每在phpinfo里看,发现什么都支持了,可是运行还是出现Call to undefined function imageantialias,在网上找了好半天,才发现在一句,

Note : This function is only available if PHP is compiled with the bundled version of the GD library.

还找到下而这一段,

Now a package is compiled is set within the files contained in the debian directory of a package. Rules for configuring the compile process can be found in debian/rules. In this file there is a line that reads --with-gd=shared,/usr --enable-gd-native-ttf / . This links to the Ubuntu distributed version of LibGD as a shared library. It is part of the autoconf script that customises the compilation of PHP. I replaced this line with --with-gd=shared --enable-gd-native-ttf / . This causes the compilation process to use the bundled version of GD and make a shared library.

什么意思呢,自己看吧,反正是gd必须编译成.so文件,在php.ini中加载进来才能用imageantialias,编译的选项上而有的,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值