PHP centos freetype 載入失敗 - Linux

Jake avatar
By Jake
at 2015-10-14T16:22

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

--
Tags: Linux

All Comments

Yuri avatar
By Yuri
at 2015-10-17T00:04
以解決,少做了 make clean

關於使用usb安裝Ubuntu

Tristan Cohan avatar
By Tristan Cohan
at 2015-10-13T20:23
最近正在學習如何使用Ubuntu 很想試著用usb安裝 不過對於每次遇到磁碟切割都很頭痛 原因是我不清楚這個and#34;磁碟and#34;是指usb 還是我的電腦 小妹不才 第一次在此版發文 還請見諒 若有違反板規 也請鞭小力一點 謝謝大家 - ...

我想請教關於MIT license

Tristan Cohan avatar
By Tristan Cohan
at 2015-10-13T14:06
※ 引述《fourdollars (四元)》之銘言: : 另外有一種是主動拋棄著作權的條款 : http://creativecommons.tw/cc0 : 也是挺有趣的 :-) 大部份國家的著作權法是規定著作人格權是不能拋棄的。 能拋棄的只是著作財產權。 例如我國著作權法第二十一條就有規定 ...

我想請教關於MIT license

Hedda avatar
By Hedda
at 2015-10-13T12:33
另外有一種是主動拋棄著作權的條款 http://creativecommons.tw/cc0 也是挺有趣的 :-) ※ 引述《EdwardGJLee (LGJ)》之銘言: : : 推 qas612820704: 我可以請教關於 and#34;不要把別人的 copyright 給丟掉。and#34; 10/1 ...

我想請教關於MIT license

Kyle avatar
By Kyle
at 2015-10-13T07:57
: 推 qas612820704: 我可以請教關於 and#34;不要把別人的 copyright 給丟掉。and#34; 10/12 23:23 : → qas612820704: 跟不用掛MIT的差別嗎? 10/12 23:24 copyr ...

監控串流並用awk及時打印出來

Victoria avatar
By Victoria
at 2015-10-13T00:25
※ 引述《makefriends (5 + 2 = life)》之銘言: : 各位大大 : 小弟想對監控的串流訊息的每一行用awk加上時間戳後存成文字檔。 : 舉個例子: : ping -c 50 127.0.0.1 | awk and#39;{ print strftime(and#34;%Tand#34; ...