免费注册 查看新帖 |

Chinaunix

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

安装配置Ming库 支持FLASH验证码(Discuz用到)及安装过程错误解决 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-11 13:08 |只看该作者 |倒序浏览

                                                Ming是一个操纵swf(flash movice)的C库,支持php、 ruby、
python等语言。
Ming的安装分为两步,首先安装Ming库,然后再安装语言相关的模块。
官方下载:http://sourceforge.net/project/showfiles.php?group_id=18365
一、安装主Ming

下载并解压缩最新版本
Configure, Make, Install
cd
ming-0.*.*
./configure
make
make
install
二、安装语言模块(以php为例)
Install Ming
first.
下载并解压缩语言模块.
拷贝到主Ming库源码目录下(e.g.
ming-0.3.0/php_ext).
1)
cd php_ext
make
make
install
安装语言模块时,遇到以下错误:
configure.in:65: error: possibly undefined macro:
AC_PROG_LIBTOOLIf this token and others are legitimate, please use
m4_pattern_allow.See the Autoconf documentation.autoreconf:
/usr/bin/autoconf failed with exit status: 1
解决办法:安装libtool
[root@localhost opt]# rpm -ivh
libtool-1.5.6-4.EL4.1.i386.rpm
之后问题解决2)

最后将编译生成的php_ming.so拷贝到php的modules目录中:
cp
/opt/ming-0.*.*/php_ext/tmp/modules/php_ming.so /usr/lib/php4/
修改 php.ini
(vi /etc/php.ini) 添加下面行:
extension=php_ming.so
或者 在php script
开始加下面语句
dl('php_ming.so');
http://ming.sourceforge.net/
               
               
               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27378/showart_2145443.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP