linux小白,red hat 7.0 下安装php 7.0.13,完成之后在phoinfo中的gd扩展内没有freetype。
编译脚本
./configure --with-apxs2=/usr/local/apache/bin/apxs --prefix=/usr/local/php --with-gd --with-freetype-dir=/usr/include/freetype2/freetype
freetype使用yum安装的,位置就在/usr/include/freetype2/freetype,编译完成并安装php之后,貌似并没有装上freetype。试了好几遍都不行,初入linux,也不知道问题出在哪。麻烦帮忙看看。
下图是phpinfo中的gd库信息,可见gd库是装上了的。
之前写过一个安装备忘[cetnos 7],直接粘过来了.

freetype截图:
安装依赖程序包
安装php
configure
缺少libiconv
注意
这里的
--prefix
和 php里的--with-iconv
值保持一致将安装包下文件 :
srclib/stdio.in.h
中_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
改为编译时内存不足
解决:添加swap交换内存
操作示例
编译与安装
这里要make好久,要耐心一下
配置php-fpm
参考