Business requirements to use the Imagefttext function, found that the GD library was initially installed without adding FreeType. This article is mainly for you to share a PHP GD library to add FreeType expansion of the method, with a good reference
When you execute configura, the following message is displayed: configure: error: freetype. hnotfound. freetype is installed using brew. You can also query this file stk-tianwen: freetype2hufeiyan $ lsusrlocal1_defreetype2freetype.
1. Modify the sourceCp/etc/apt/sources.list/etc/apt/sources.list.bakVim/etc/apt/sources.listFirst delete the contents, then write the following:Deb Http://mirrors.163.com/ubuntu/precise main restricted universe multiverseDeb
Event Origin: Discuz Background to open the Chinese code hint said does not support FreeType, but FreeType seems to need GD2 call to take effect.So the installation of GD2, installation of GD2 by the time the installation of Jpeg,png,zlibThe
Mac upgrade system to Yosemite 10.10, for you coder, still need some time to toss!@ Under the Stars students reflect PHPCMS verification code picture can not be normal display, feedback the verification code needs GD library support FreeType, here
Recently use their own computer to do a small thing, need to use the verification code, with the thinkphp framework, TP Verification code needs FreeType Library support, MAC OS X with Apache and PHP, directly configured can be used, very convenient,
Linux under compilation GD (Freetype+libjpeg+libpng+gd-devel)1. Check whether the FreeType is installedRpm-qa | grep FreeTypeNo words compiled freetype here
When using thinkphp, the verification code does not display, there is an error: "Call to undefined function imagettftext ()", which is due to the lack of freetype extension in the PHP GD library;The solution is as follows:Download FreeType
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.