作者whitecolor (白色)
看板Linux
标题[问题] PHP centos freetype 载入失败
时间Wed Oct 14 16:22:48 2015
大大好 不知道是否能询问环境问题
os:centos 5.9
php version: 5.6.0
gd version: bundled (2.1.0 compatible)
我在环境要加入 支持GD的元件 freetype(version 2.6.1)
compile freetype step:
1. ./configure --prefix=/usr/local/freetype --enable-shared
2. make && make install
compile gd step
1. 切换到 gd forder => /ext/gd
2. phpize
3. ./configure --prefix=/usr/local/gd --with-freetype-dir=/usr/local/freetype
4. make && make install
recompile php
1. 切换到 php forder :
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pdo-mysql
--with-mysql --with-mysqli --with-mssql=/usr/local/freetds -with-openssl
--with-gd --with-freetype-dir=/usr/local/freetype --with-jpeg-dir
--with-png-dir --enable-gd-native-ttf --with-curl --enable-ftp
--enable-mbstring --with-zlib --with-config-file-path=/usr/local/apache2
2. make && make install
看了 phpinfo,GD有成功但 freetype 却失败
想问问可能问题点是?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.32.163.6
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1444810971.A.78C.html
1F:→ whitecolor: 以解决,少做了 make clean 10/14 16:56