PHP centos freetype 載入失敗 - Linux

Table of Contents

大大好 不知道是否能詢問環境問題

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 卻失敗
想問問可能問題點是?

--

All Comments

Yuri avatarYuri2015-10-17
以解決,少做了 make clean