[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]
PHP+GD的安装
e800.com.cn  日期:2005-04-05 13:12  作者:佚名  来源:http://www.linuxdby.com/articleadd.php?s=  
  

  一、下载

  gd-2.0.33.tar.gz http://www.boutell.com/gd/

  jpegsrc.v6b.tar.gz http://www.ijg.org/

  libpng-1.2.7.tar.tar http://sourceforge.net/projects/libpng/

  zlib-1.2.2.tar.gz http://sourceforge.net/projects/zlib/

  freetype-2.1.9.tar.gz http://sourceforge.net/projects/freetype/

  php-4.3.9.tar.gz http://www.php.net

  二、说明

  最新的GD库包括了对GIF的支持,所以不要打GIF补丁

  http://sourceforge.net/ 好多源代码包可以在上面找到

  安装步骤:

  先安装zlib,freetype,libpng,jpeg,再装GD,再装PHP

  三、安装

  1.装zlib

  tar zxvf zlib-1.2.2.tar.gz
  cd zlib-1.2.2
  ./configure
  make
  make install

  2.安装libpng

  tar zxvf libpng-1.2.7.tar.tar
  cd libpng-1.2.7
  cd scripts/
  mv makefile.linux ../makefile
  cd ..
  make
  make install
  注意,这里的makefile不是用./configure生成,而是直接从scripts/里拷一个

  3.安装freetype

  tar zxvf freetype-2.1.9.tar.gz
  cd freetype-2.1.9
  ./configure
  make
  make install

  4.安装Jpeg

  tar zxvf jpegsrc.v6b.tar.gz
  cd jpeg-6b/
  ./configure --enable-shared
  make
  make test
  make install
  注意,这里configure一定要带--enable-shared参数,不然,不会生成共享库

  5.安装GD

  tar zxvf gd-2.0.33.tar.gz
  cd gd-2.0.33
  ./configure --with-png --with-freetype --with-jpeg
  make install

  6.安装PHP

  tar zxvf php-4.3.9.tar.gz
  cd php-4.3.9
  ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd --with-zlib --with-png --with-jpeg --with-freetype --enable-sockets
  make
  make install

  7.配置Apache支持PHP

  8.测试

  phpinfo();
  ?>

  Ok.....


【责编:evan】
404 Not Found

404 Not Found

/resource/include/ArticleUpOrDown.jsp was not found on this server.


Resin 2.1.16 (built Tue Feb 15 11:12:27 PST 2005)
评论】 【收藏本页】 【打印】 【关闭

   [发表评论] 姓名: 密码:匿名    用户注册

    相关文章
404 Not Found

404 Not Found

/resource/include/ArticleRelationShip.jsp was not found on this server.


Resin 2.1.16 (built Tue Feb 15 11:12:27 PST 2005)
[an error occurred while processing this directive] 404 Not Found

404 Not Found

/resource/include/ar_right.jsp was not found on this server.


Resin 2.1.16 (built Tue Feb 15 11:12:27 PST 2005)

关于e800 - 广告服务 - 招聘信息 - 用户注册 - 用户反馈 - 合作伙伴 - 版权声明 - 网站地图
Copyright © 2003-2006 北京亿八佰电子商务有限公司 版权所有,未经许可不得转载
联系: webmaster@e800.com.cn 电话: (8610)65530088
京ICP证040593号