我有此脚本:调用未定义功能imagefttext()
Configure Command => './configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-mbstring' '--enable-sockets' '--with-bz2' '--with-curl' '--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/opt' '--with-png-dir=/opt' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '--with-mysql' '--with-mysqli' '--with-openssl' '--with-zlib' '--enable-zip'
我收到以下错误
PHP Fatal error: Call to undefined function imagefttext() in /root/test.php on line 9
我运行CentOS的:
<?php
$im = imagecreatetruecolor(300, 150);
imagettftext($a, $b, $c, $d, $e);
imagepng($im);
?>
我编译,并且我有gd-devel,freetype-devel和其他软件包。我不确定它为什么不起作用。有人有主意吗?
在此先感谢!
你是显示的代码是从错误信息 –
我的坏不同。致命错误:调用未定义函数imagettftext() – Tech163
'此函数需要GD库和»FreeType库。' – mario