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库是装上了的。

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
ringa_lee