"Freetype-confignotfound" is prompted during Mac compilation and installation of php7. How can this problem be solved?

Source: Internet
Author: User
Tags webp
{Code ...}
checking for FlatFile support... nochecking whether to enable DBA interface... nochecking whether to enable DOM support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for ENCHANT support... nochecking whether to enable EXIF (metadata from images) support... nochecking for fileinfo support... nochecking whether to enable input filter support... yeschecking pcre install prefix... nochecking whether to enable FTP support... yeschecking OpenSSL dir for FTP... nochecking for GD support... yeschecking for the location of libwebp... nochecking for the location of libjpeg... yeschecking for the location of libpng... yeschecking for the location of libXpm... nochecking for FreeType 2... yeschecking whether to enable truetype string function in GD... yeschecking whether to enable JIS-mapped Japanese font support in GD... noIf configure fails try --with-webp-dir=
 
  checking for jpeg_read_header in -ljpeg... yeschecking for png_write_image in -lpng... yesIf configure fails try --with-xpm-dir=
   
    configure: error: freetype-config not found.
   
 

Reply content:
checking for FlatFile support... nochecking whether to enable DBA interface... nochecking whether to enable DOM support... yeschecking for xml2-config path... (cached) /usr/bin/xml2-configchecking whether libxml build works... (cached) yeschecking for ENCHANT support... nochecking whether to enable EXIF (metadata from images) support... nochecking for fileinfo support... nochecking whether to enable input filter support... yeschecking pcre install prefix... nochecking whether to enable FTP support... yeschecking OpenSSL dir for FTP... nochecking for GD support... yeschecking for the location of libwebp... nochecking for the location of libjpeg... yeschecking for the location of libpng... yeschecking for the location of libXpm... nochecking for FreeType 2... yeschecking whether to enable truetype string function in GD... yeschecking whether to enable JIS-mapped Japanese font support in GD... noIf configure fails try --with-webp-dir=
 
  checking for jpeg_read_header in -ljpeg... yeschecking for png_write_image in -lpng... yesIf configure fails try --with-xpm-dir=
   
    configure: error: freetype-config not found.
   
 

Make a link
Ln-s/usr/include/freetype2/freetype. h/usr/include/freetype2/freetype. h
I did this in ubuntu.
Of course, if libfreetype? -If no dev exists, there is no way.
PHP 7 is advanced.

Apt-get-y install libfreetype6-dev

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.