php安装好麻烦,安装PHP遇到的mcrpyt麻烦,请高手指点

安装PHP遇到的mcrpyt麻烦,请高手指点

(2011-08-28 04:44:17)

标签:

杂谈

安装PHP遇到的mcrpyt麻烦,请高手指点系统环境是:AS4.0

编译器相关包:

gcc-java-3.4.4-2

compat-gcc-32-3.2.3-47.3

libgcc-3.4.4-2

gcc-g77-3.4.4-2

gcc-c++-3.4.4-2

gcc-objc-3.4.4-2

compat-libgcc-296-2.96-132.7.2

gcc-3.4.4-2

gcc-gnat-3.4.4-2

compat-gcc-32-c++-3.2.3-47.3

libmcrypt 编译参数:

./configure --prefix=/path/to --enable-dependency-tracking

--enable-dynamic-loading\

--enable-shared=yes --disable-posix-threads

正常通过,并安装成功

mhash 编译参数:

./configure --prefix=/path/to --enable-shared=yes

--enable-dependency-tracking

正常通过并且安装

并且在/etc/ld.so.conf中添加了上述两个相关的lib路径,运行ldconfig

mcrypt:

CFLAGS="-I/path...(mhash安装路径)/include

-L/path/to/mhash/lib"\

./configure --prefix=/opt/mcrypt-2.6.4

--enable-shared=yes--enable-static=yes\

--enable-dependency-tracking--with-libmcrypt-prefix=/opt/libmcrypt-2.5.7

\

--with-libiconv-prefix=/opt/libiconv-1.9.2

这样编译是可以通过的,也可以安装,但在编译过程中有这样一个警告:

checking mcrypt.h usability... yes

checking mcrypt.h presence... no

configure: WARNING: mcrypt.h: accepted by the compiler, rejected by

the preprocessor!bh2h.com

configure: WARNING: mcrypt.h: proceeding with the preprocessor's

result

configure: WARNING: ## ------------------------------------

##

configure: WARNING: ## Report this to

[email]bug-autoconf@gnu.org[/email]. ##

configure: WARNING: ## ------------------------------------

##

checking for mcrypt.h... no

现在问题来了......

1、在编译php是带有--with-gd=/path/to/gd--with-mcrpyt=/path/to/mcrpyt就提示一下错误:

checking for gdImageString16 in -lgd... no

checking for gdImagePaletteCopy in -lgd... no

checking for gdImageCreateFromPng in -lgd... no

checking for gdImageCreateFromGif in -lgd... no

checking for gdImageGif in -lgd... no

checking for gdImageWBMP in -lgd... no

checking for gdImageCreateFromJpeg in -lgd... no

checking for gdImageCreateFromXpm in -lgd... no

checking for gdImageCreateFromGd2 in -lgd... no

checking for gdImageCreateTrueColor in -lgd... no

checking for gdImageSetTile in -lgd... no

checking for gdImageEllipse in -lgd... no

checking for gdImageSetBrush in -lgd... no

checking for gdImageStringTTF in -lgd... no

checking for gdImageStringFT in -lgd... no

checking for gdImageStringFTEx in -lgd... no

checking for gdImageColorClosestHWB in -lgd... no

checking for gdImageColorResolve in -lgd... no

checking for gdImageGifCtx in -lgd... no

checking for gdCacheCreate in -lgd... no

checking for gdFontCacheShutdown in -lgd... no

checking for gdFreeFontCache in -lgd... no

checking for gdNewDynamicCtxEx in -lgd... no

checking for gdImageCreate in -lgd... no

configure: error: GD build test failed. Please check the config.log

for details.

如果不添加--with-mcryp,gd是可以编译通过的。

2,如果不带gd参数,只带--with-mcrpyt=/path/to/mcrpyt

,则提示http://www.ao-games.info/gongsi/577.html:

mcrypt.h not found,please reinstall libmcrpt.

现在确定是mcrypt出问题,请问有经验的高手兄弟 指点下小弟。你已经安装好了GD了么?

不然的话,php咋GD?我的php编译参数是这样的:

./configure

--prefix=/opt/php-5.1.2--with-libxml-dir=/opt/libxml2-2.6.26

--with-zlib-dir=/opt/zlib-1.2.3 \

--enable-mbstring --enable-calendar--enable-bcmath--enable-ftp

--with-mcrypt=/opt/mcrypt-2.6.4\

--with-gd=/opt/gd-2.0.33--with-jpeg-dir=/opt/jpeg-6b

--with-png-dir=/opt/libpng-1.2.12 \

--with-freetype-dir=/opt/freetype-2.1.10--with-t1lib=/opt/t1lib-5.1.0

--enable-gd-native-ttf\

--enable-gd-native-ttf--with-mhash=/opt/mhash-0.9.7

--with-mysql=/opt/mysql-5.0.22 \

--with-mm=/opt/mm-1.4.0 --enable-sysvmsg--enable-sysvsem

--enable-sysvshm --enable-zend-multibyte\

--with-apxs2=/opt/httpd-2.0.55/bin/apxs--enable-force-cgi-redirect

--enable-magic-quotes、

--with-xpm-dir=/usr/X11R6/lib

结果:

checking for GD support... yes

checking for the location of libjpeg... /opt/jpeg-6b

checking for the location of libpng... /opt/libpng-1.2.12

checking for the location of libXpm... /usr/X11R6/lib

checking for FreeType 1.x support... no

checking for FreeType 2... /opt/freetype-2.1.10

checking for T1lib support... /opt/t1lib-5.1.0

checking whether to enable truetype string function in GD...

yes

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

checking for XpmFreeXpmImage in -lXpm... yes

checking for T1_StrError in -lt1... yes

checking for gdImageString16 in -lgd... no

checking for gdImagePaletteCopy in -lgd... no

checking for gdImageCreateFromPng in -lgd... no

checking for gdImageCreateFromGif in -lgd... no

checking for gdImageGif in -lgd... no

checking for gdImageWBMP in -lgd... no

checking for gdImageCreateFromJpeg in -lgd... no

checking for gdImageCreateFromXpm in -lgd... no

checking for gdImageCreateFromGd2 in -lgd... no

checking for gdImageCreateTrueColor in -lgd... no

checking for gdImageSetTile in -lgd... no

checking for gdImageEllipse in -lgd... no

checking for gdImageSetBrush in -lgd... no

checking for gdImageStringTTF in -lgd... no

checking for gdImageStringFT in -lgd... no

checking for gdImageStringFTEx in -lgd... no

checking for gdImageColorClosestHWB in -lgd... no

checking for gdImageColorResolve in -lgd... no

checking for gdImageGifCtx in -lgd... no

checking for gdCacheCreate in -lgd... no

checking for gdFontCacheShutdown in -lgd... no

checking for gdFreeFontCache in -lgd... no

checking for gdNewDynamicCtxEx in -lgd... no

checking for gdImageCreate in -lgd... no

configure: error: GD build test failed. Please check the

分享:

a4c26d1e5885305701be709a3d33442f.png喜欢

0

a4c26d1e5885305701be709a3d33442f.png赠金笔

加载中,请稍候......

评论加载中,请稍候...

发评论

登录名: 密码: 找回密码 注册记住登录状态

昵   称:

评论并转载此博文

a4c26d1e5885305701be709a3d33442f.png

发评论

以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值