linux9.0+php4.33+GD2.0.15安装笔记

来源:互联网 发布:中兴软件技术有限公司 编辑:程序博客网 时间:2024/04/28 11:33
linux9.0+php4.33+GD2.0.15安装笔记[绝对可以成功]
http://www.chinaunix.net 作者:unigium  发表于:2004-01-16 12:45:41

首先感谢这里所有人对我的支持,特别感谢那些帮助我的人,叩首!
安装环境:linux9.0,在配置防火墙的时候要打开ssh/www
以下是我在安装的时候所用的软件清单:
php-4.3.3.tar.bz 
gd-2.0.15.tar.gz
jpeg-v6b.tar.gz
libpng-1.2.5.tar.gz
zlib-1.1.4.tar.gz
freetype-2.1.5.tar.bz2
httpd-2.0.47.tar.gz
php-4.3.3.tar.gz

1、安装jpeg-6b
#./configure
#make
编译成功,但是在安装的时候报错,系统提示不能将文件拷贝到/usr/local/man/man1这个目录,于是建立目录以后安装成功:
#mkdir /usr/local/man & /usr/local/man/man1
安装记录
# make install
# make install-lib  //以前因为没有执行这一步安装导致在编译php时报错

2、libpng-1.2.5的安装配置
#cp scripts/makefile.gcmmx makefile //makefile.gcmmx是针对MMX指令集优化的
#make && make install

3、zlib-1.1.4安装配置
#./configure --shared //shared生成zlib的共享库文件
#make && make install

4、freetype-2.1.5安装配置
#./configure
#make && make install

5.gd-1.0.15安装配置
#./configure
配置完成后,注意输出的信息是否如下:
** Configuration summary for gd 2.0.15:

   Support for PNG library:          yes
   Support for JPEG library:         yes
   Support for Freetype 2.x library: yes
   Support for Xpm library:          no
Xpm库以前安装不成功,如果程序部门不常用用,一般PNG/JPEG/FREETYPE三个库打开支持就行
#make && make install
#cp gd.h /usr/local/lib //编译PHP的时候会缺少这个文件出错

6、apache2.0.47安装配置
#./configure --prefix=/www/httpd --enable-so
#make && make install
//安装成功
7、php-4.3.3安装配置
# ./configure --prefix=/www/httpd/php --with-apxs2=/www/httpd/bin/apxs --enable-track-vars --with-zlib-dir=/usr/local/lib 

--with-gd=/usr/local/lib --enable-sysvmsg --enable-sockets --enable-sysvshm --enable-sysvsem 

--enable-gd-native-ttf --with-ttf=/usr/lib --disable-debug --with-tiff-dir=/usr/lib 

--with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-mysql --with-xml --with-gdbm-dir=/usr/lib 

--enable-ftp --enable-inline-optimization --with-gettext=/usr/lib --enable-magic-quotes --enable-safe-mode 

--enable-bcmath --enable-wddx --with-freetype-dir=/usr/local/lib
#make && make install
//要把php.ini文件cp到你安装php目录下的lib下面,不然对php.ini的配置不会生效
//安装成功
再次叩头感谢
借鉴的参考文献
http://chinaunix.net/jh/13/161118.html
http://www.chinaunix.net/jh/13/195204.html
http://www.neweasier.com/article/2002-12-15/1039947379.html