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 to try to solve, if the problem, can communicate!
First confirm whether the GD library has been supported, print phpinfo (); Found GD support enabled, but did not FreeType information, try the following:
Installing FreeType
Go to Apple official Open Source support: http://www.apple.com/opensource/Find and download GD required ZLIB/LIBPNG/JPEG/FREETYPE/LIBGD, which provides a package and execution script:
Baidu Network disk download password: 3euq
can also be downloaded individually, for example:
Curl-o http://download.savannah.gnu.org/releases/freetype/freetype-2.4.4.tar.bz2
Unzip and execute the downloaded gd.tar.gz
TAR-ZXF gd.tar.gzcd Gdsudo./install
Then refresh the phpinfo (); Or look at the libraries supported by PHP:
Php-m
Still don't see the freetype, because these libraries are only installed, but still need to recompile PHP, to enable.
Next is to recompile PHP, add FreeType support, because the original PHP has been compiled GD, recompile GD must join--with-freetype, otherwise on PHP still can not get FreeType support ...
Today is here, really dizzy!!
Mac needs open source class library can go to Apple official website query: http://www.apple.com/opensource/
When recompiling PHP, to add the--with-freetype, seemingly different PHP version, there is a need to pay attention to the place!
If you encounter compile-time make * * * * * * ext/phar/phar.php error 139, you must first empty all of the brew's components, especially the OpenSSL
Mac upgrade Yosemite After installing GD's FreeType extension