linux_php_jpeg6,png,gd

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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8806316/viewspace-1010516/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值