linux_php_jpeg6,png,gd

wangzhensheng發表於2008-09-10

linux 下編譯安裝gd後php的探針總是不能檢測到,以下是編譯pnp,jpeg6,freetype ,gd,最後從新編譯php後才算能夠探測到gd.編譯php後要從起apache

[@more@]

# 編譯png
./configure --prefix=/usr/local/png

# 編譯jpeg6
./configure --with-jpeg=/usr/local/jpeg6 --with-png --with-zlib --with-freetype=/usr/local/freetype --with-xpm

# 編譯freetype
./configure --prefix=/usr/local/freetype

# 編譯 gd
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg6 --with-png=/usr/local/lib
--with-zlib=/usr/local/lib
--with-freetype=/usr/local/freetype

# 編譯php
./configure --prefix=/usr/local/php5 --with-apxs2=/www/apache/bin/apxs
--with-mysql=/usr/local/mysql
--enable-ftp --enable-sockets --with-gd=/usr/local/gd
--enable-gd-native-ttf --with-ttf --enable-track-vars --enable-magic-quotes --with-iconv
--with-mbstring --enable-ftp --with-config-file-path=/usr/local/php5/etc

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8806316/viewspace-1010516/,如需轉載,請註明出處,否則將追究法律責任。

相關文章