Chinaunix首页 | 论坛 | 博客
  • 博客访问: 517031
  • 博文数量: 230
  • 博客积分: 5726
  • 博客等级: 大校
  • 技术积分: 2765
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-21 13:51
文章分类

全部博文(230)

文章存档

2011年(33)

2010年(40)

2009年(157)

分类: LINUX

2009-09-24 09:54:01

1.安装Zend
 ./install.sh
2.安装curl
 ./configure --prefix=/usr/local/curl
 make && make install
3.安装zlib
 [root@localhost ~]# rpm -qa |grep zlib
zlib-devel-1.2.1.2-1.2
zlib-1.2.1.2-1.2
4.安装libpng
[root@localhost ~]# rpm -qa |grep libpng
libpng10-devel-1.0.16-3.el4_5.1
libpng10-1.0.16-3.el4_5.1
libpng-devel-1.2.7-3.el4_5.1
libpng-1.2.7-3.el4_5.1
5.安装freetype
tar zxvf freetype-2.1.10.tar.gz
cd freetype-2.1.10
./configure --prefix=/usr/local/freetype2
make
make install
6.安装GD
tar zxvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure --prefix=/usr/local/gd2 --with-png --with-freetype --with-jpeg
make
make install

7.重新编译php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local//apache/bin/apxs --with-gd=/usr/local/gd2 --with-mysql=/usr/local/mysql --enable-mbstring --with-zlib-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-freetype-dir=/usr/local/freetype --enable-sockets --with-libxml-dir=/usr/local/libxml2 --with-mcrypt=/usr/local/libmcrypt --enable-ftp --with-curl=/usr/local/curl
make && make install
8.重启apache
 

 
阅读(1601) | 评论(0) | 转发(0) |
0

上一篇:SQL2005镜像制作

下一篇:php编译安装

给主人留下些什么吧!~~