请问如何开启 Freetype?编译时已经启用 gd 和 Freetype

2016-05-09 17:22:42 +08:00
 NIGHTBUG
编译时参数
--with-gd --with-jpeg-dir --with-png-dir=/usr/include/libpng12 --with-freetype-dir=/usr/local/freetype

checking for GD support... yes
checking for the location of libvpx... no
checking for the location of libjpeg... yes
checking for the location of libpng... /usr/include/libpng12
checking for the location of libXpm... no
checking for FreeType 2... /usr/local/freetype
(其他省略)


phpinfo 输出时 GD 一栏中不出现 Freetype 的选项,求解如何正确配置?
php 版本 5.6.X
2744 次点击
所在节点    PHP
4 条回复
mcfog
2016-05-09 19:48:48 +08:00
带参数是第二次编译么?编译前 make clean, 编译后 make install ,还有是不是忘了重启 php-fpm?(
NIGHTBUG
2016-05-09 20:46:20 +08:00
@mcfog 必须重启过啊~没有效果,很诡异,系统是 Centosx64
mcfog
2016-05-10 10:24:37 +08:00
@NIGHTBUG 试试看`php -i | less`看看 CLI 里面的 GD 带不带 freetype ,是不是 fpm 配置的问题,或者 fpm 的 php 和你编译的 php 不是一份之类的
NIGHTBUG
2016-05-10 10:50:01 +08:00
@mcfog php-fpm -i
FreeType Support => enabled
FreeType Linkage => with freetype

原来一直是支持的
可是 phpinfo 就是不显示,相应的函数也没法调用。

php 的安装过程很标准,就是源码编译安装,后启动 php-fpm , server 是 Nginx

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/277390

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX