• 技术文章 >后端开发 >php教程

    Mac 编译安装php7时提示“freetype-config not found”,怎么解决

    不言不言2018-05-25 16:49:40原创4345
    checking for FlatFile support... no
    checking whether to enable DBA interface... no
    checking whether to enable DOM support... yes
    checking for xml2-config path... (cached) /usr/bin/xml2-config
    checking whether libxml build works... (cached) yes
    checking for ENCHANT support... no
    checking whether to enable EXIF (metadata from images) support... no
    checking for fileinfo support... no
    checking whether to enable input filter support... yes
    checking pcre install prefix... no
    checking whether to enable FTP support... yes
    checking OpenSSL dir for FTP... no
    checking for GD support... yes
    checking for the location of libwebp... no
    checking for the location of libjpeg... yes
    checking for the location of libpng... yes
    checking for the location of libXpm... no
    checking for FreeType 2... yes
    checking whether to enable truetype string function in GD... yes
    checking whether to enable JIS-mapped Japanese font support in GD... no
    If configure fails try --with-webp-dir=checking for jpeg_read_header in -ljpeg... yes
    checking for png_write_image in -lpng... yes
    If configure fails try --with-xpm-dir=configure: error: freetype-config not found.

    回复内容:

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

    做一个链接咯
    ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h
    我在ubuntu下是这样搞的
    当然如果libfreetype?-dev都没有那就没办法了
    都用php7了 好先进

    apt-get -y install libfreetype6-dev

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    专题推荐:php mac
    上一篇:IE浏览器接口被挂起 下一篇:自己动手写 PHP MVC 框架(40节精讲/巨细/新人进阶必看)

    相关文章推荐

    • 一文理解和实现现代PHP框架里的IOC容器• 深入了解PHP:用gdb调试源码• 实例介绍:使用Docker快速搭建多版本PHP开发环境• 实例详解PHP统计代码行数及文件数量的方法• php的ajax联动菜单_PHP教程
    1/1

    PHP中文网