ITPub博客

首页 > 应用开发 > IT综合 > linux_php_jpeg6,png,gd

linux_php_jpeg6,png,gd

原创 IT综合 作者:wangzhensheng 时间:2008-09-10 21:26:16 0 删除 编辑

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博客 ” ,链接:https://blog.itpub.net/8806316/viewspace-1010516/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2013-01-02

  • 博文量
    137
  • 访问量
    260334