Mac upgrade Yosemite After installing GD's FreeType extension

Source: Internet
Author: User
Tags php error phpinfo

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.