LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 853|回复: 2

在SUSE上配置PHP出错,告急

[复制链接]
发表于 2007-7-13 19:26:09 | 显示全部楼层 |阅读模式
Configuring extensions
checking for OpenSSL support... no
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... /usr/local
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... no
checking for cyrus imap support... no
checking for xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for Berkeley DB2 support... no
checking for DBM support... no
checking for CDB support... no
checking for INI File support... no
checking for FlatFile support... no
checking whether to enable DBA interface... no
checking whether to enable dbase support... no
checking whether to enable dbx support... no
checking whether to enable direct I/O support... no
checking for DOM support... no
checking for DOM XSLT support... no
checking for DOM EXSLT support... no
checking whether to enable EXIF (metadata from images) support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for FDF support... no
checking whether to enable the bundled filePro support... no
checking for FriBidi support... no
checking whether to enable FTP support... yes
checking for GD support... yes
checking for the location of libjpeg... /usr/local
checking for the location of libpng... /usr/local
checking for the location of libXpm... /usr/local
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/local
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
configure: error: libXpm.(a|so) not found.

提示 libXpm.(a|so) not found.后面根本没法下去了
我zlib用的zlib-1.2.1

PHP的配置参数
./configure --with-apxs2=/usr/local/apache/bin/apxs --disable-debug --enable-ftp --enable-inline-optimization --enable-safe-mode --enable-track-vars --enable-tarns-sid --enable-xml --with-mysql --with-xml --enable-magic-quotes --with-system-regex --enable-sockets --with-jpeg-dir=/usr/local --with-zlib-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local --with-xpm-dir=/usr/local --with-freetype-dir=/usr/local
 楼主| 发表于 2007-7-13 19:27:35 | 显示全部楼层
在rh8 rh9 rh10上按这个配置都正常通过
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-13 21:24:39 | 显示全部楼层
下了个RPM的GD库安装文件,重新安装
rpm -i gd-1.8.4-11.i386.rpm
rpm -i gd-devel-1.8.4-11.i386.rpm
rpm -i libjpeg-6b-26.i386.rpm
rpm -i libjpeg-devel-6b-26.i386.rpm
rpm -i libpng10-1.0.13-8.i386.rpm
rpm -i libpng10-devel-1.0.13-8.i386.rpm
然后重新配置PHP
./configure --with-apxs2=/usr/local/apache/bin/apxs --disable-debug --enable-ftp --enable-inline-optimization --enable-safe-mode --enable-track-vars --enable-tarns-sid --enable-xml --with-mysql --with-xml --with-gd=/usr/ --with-jpeg-dir=/usr/
正常通过
make通过
make install通过

  MMD,这个论坛回复是总是提示登录,才写的东东没了,非得重新登录一下才能再回复,管理员得处理一下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表