Chinaunix首页 | 论坛 | 博客
  • 博客访问: 330881
  • 博文数量: 30
  • 博客积分: 3021
  • 博客等级: 少校
  • 技术积分: 408
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-01 11:32
文章分类

全部博文(30)

文章存档

2022年(1)

2015年(2)

2014年(1)

2013年(1)

2012年(2)

2011年(2)

2010年(3)

2009年(10)

2008年(8)

分类: LINUX

2010-01-11 13:08:49

Ming是一个操纵swf(flash movice)的C库,支持php、 ruby、 python等语言。

Ming的安装分为两步,首先安装Ming库,然后再安装语言相关的模块。
官方下载:

一、安装主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');

阅读(3757) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

debug_wang2013-01-24 13:46:33

为什么我的还是报错呀。能否帮我看下呢?安装语言的时候报错。
ming.c:6520: error: syntax error before "TSRMLS_CC"
ming.c:6521: error: `SUCCESS' undeclared (first use in this function)
ming.c: At top level:
ming.c:383: warning: 'getInput' defined but not used
ming.c:312: warning: 'getCharacterClass' defined but not used
ming.c:2594: warning: