免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2316 | 回复: 5
打印 上一主题 下一主题

安装PHP遇到的mcrpyt麻烦,请高手指点 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-07 15:45 |只看该作者 |倒序浏览
系统环境是: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!
configure: WARNING: mcrypt.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
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 ,则提示:
mcrypt.h not found,please reinstall libmcrpt.

现在确定是mcrypt出问题,请问有经验的高手兄弟 指点下小弟。

论坛徽章:
1
技术图书徽章
日期:2013-12-05 23:25:45
2 [报告]
发表于 2006-08-07 15:52 |只看该作者
你已经安装好了GD了么?

不然的话,php咋GD?

论坛徽章:
0
3 [报告]
发表于 2006-08-07 16:11 |只看该作者
我的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 config.log for details.

请再指点下

论坛徽章:
208
巨蟹座
日期:2013-09-02 09:16:36卯兔
日期:2013-09-02 20:53:59酉鸡
日期:2013-09-05 21:21:45戌狗
日期:2013-10-15 20:51:17寅虎
日期:2013-10-18 21:13:16白羊座
日期:2013-10-23 21:15:19午马
日期:2013-10-25 21:22:48技术图书徽章
日期:2013-11-01 09:11:32双鱼座
日期:2013-11-01 20:29:44丑牛
日期:2013-11-01 20:40:00卯兔
日期:2013-11-11 09:21:32酉鸡
日期:2013-12-04 19:56:39
4 [报告]
发表于 2006-08-07 16:53 |只看该作者
你看头文件在安装在哪里呀,估计是/path/to/include
简单一点,你把*.h copy到/usr/include下
复杂一点,你自己改Makefile

论坛徽章:
0
5 [报告]
发表于 2006-08-07 22:29 |只看该作者
原帖由 流氓无产者 于 2006-8-7 16:53 发表
你看头文件在安装在哪里呀,估计是/path/to/include
简单一点,你把*.h copy到/usr/include下
复杂一点,你自己改Makefile



原来mcrypt编译的时候,压根就没产生mrcypt.h这个头文件。郁闷中........

论坛徽章:
0
6 [报告]
发表于 2006-08-08 15:20 |只看该作者
已解决,谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP