折腾了几天都没搞定,各们帮帮忙

tianweima 2009-02-28 11:49:02
刚接触php和linux,折腾了好几了还是搞不定.
主要问题是验证码显示不出来,地址是http://211.136.109.178:88/socialnetwork/signup.php
问了软件商说是我的GD没装,搞了好几天,GD应是装上了,但还是不行.php的信息显示地址是:http://211.136.109.178:88/socialnetwork/phpinfo.php
配置php的信息如下:

loading cache ./config.cache
.....
.....
checking whether to enable input filter support... yes
checking pcre install prefix... no
checking whether to enable FTP support... no
checking OpenSSL dir for FTP... no
checking for GD support... yes
checking for the location of libjpeg... /usr/local/jpeg6/
checking for the location of libpng... /usr/local/libpng2/
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... /usr/local/freetype/
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... (cached) yes
checking for png_write_image in -lpng... (cached) yes
If configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... (cached) yes
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) yes
checking for gdImageGif in -lgd... (cached) yes
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) yes
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking for gdImageCreateFromGd2 in -lgd... (cached) yes
checking for gdImageCreateTrueColor in -lgd... (cached) yes
checking for gdImageSetTile in -lgd... (cached) yes
checking for gdImageEllipse in -lgd... no
checking for gdImageSetBrush in -lgd... (cached) yes
checking for gdImageStringTTF in -lgd... (cached) yes
checking for gdImageStringFT in -lgd... (cached) yes
checking for gdImageStringFTEx in -lgd... (cached) yes
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageGifCtx in -lgd... (cached) yes
checking for gdCacheCreate in -lgd... (cached) yes
checking for gdFontCacheShutdown in -lgd... (cached) yes
checking for gdFreeFontCache in -lgd... (cached) yes
checking for gdFontCacheMutexSetup in -lgd... no
checking for gdNewDynamicCtxEx in -lgd... (cached) yes
checking for gdImageCreate in -lgd... (cached) yes
checking for GNU gettext support... no
checking for GNU MP support... no
checking whether to enable hash support... yes
checking whether byte ordering is bigendian... (cached) no
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking for iconv support... yes
checking for iconv... (cached) yes
checking if iconv is glibc's... yes
......
......
Generating files
creating ./config.status
creating php5.spec
creating main/build-defs.h
creating scripts/phpize
creating scripts/man1/phpize.1
creating scripts/php-config
creating scripts/man1/php-config.1
creating sapi/cli/php.1
creating main/php_config.h
main/php_config.h is unchanged
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+

Thank you for using PHP.
...全文
350 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
tianweima 2009-03-06
  • 打赏
  • 举报
回复
是phpz编译没有成功,谢谢各位
luojxun 2009-02-28
  • 打赏
  • 举报
回复
http://211.136.109.178:88/socialnetwork/phpinfo.php
看了看你的这里的确没有gd

有的话应该有如下表
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled


dll那是windows里才有的东东,呵呵

Linux上要激活 GD 支持,配置 PHP 时加上 --with-gd[=DIR],DIR 是 GD 的基本安装目录。要使用推荐的绑定的 GD 库版本(首次绑定于 PHP 4.3.0),使用 --with-gd。要编译 GD 库,需要libpng 和 libjpeg。
bookmoth 2009-02-28
  • 打赏
  • 举报
回复
感觉还是gd库没装的感觉。
你试试gd_info();能有输出不?
luojxun 2009-02-28
  • 打赏
  • 举报
回复
写如下代码
<?php
phpinfo();
?>

运行一下看看有没有GD
tianweima 2009-02-28
  • 打赏
  • 举报
回复
那些全都打开了
tianweima 2009-02-28
  • 打赏
  • 举报
回复
打开了
  • 打赏
  • 举报
回复
请问你的php.ini打开了GD吗?
extension=php_gd2.dll
打开了没?
hzcenter 2009-02-28
  • 打赏
  • 举报
回复
'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-mysql=/usr/local/mysql'

我只看到你编译php时候这些参数。并没有with-gd这个选项
luojxun 2009-02-28
  • 打赏
  • 举报
回复
--with-gd=/usr/local/gd2/=/usr/local/gd2/

你用的是高版本的php就 --with-gd就可以了

要使用推荐的绑定的 GD 库版本使用 --with-gd
tianweima 2009-02-28
  • 打赏
  • 举报
回复
怎么检查路径,好像在
<?php
phpinfo();
?>
上没有
  • 打赏
  • 举报
回复
你检查一下路径啊
tianweima 2009-02-28
  • 打赏
  • 举报
回复
我的配置命令是:
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-jpeg-dir=/usr/local/jpeg6/ --with-png-dir=/usr/local/libpng2/ --with-gd=/usr/local/gd2/ --with-freetype-dir=/usr/local/freetype/ --with-zlib-dir=/usr/local/zlib2/ -with-mysql=/usr/local/mysql
这个是否正确,还有原来的php不是我装的,会不会是安装的原文件路径不对?

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧