Chinaunix

标题: 打包JSON模块出错 [打印本页]

作者: ustbleetom    时间: 2012-02-03 12:08
标题: 打包JSON模块出错
本帖最后由 ustbleetom 于 2012-02-03 12:09 编辑

程序使用了JSON模块,现在想用PP或者cava打包,但是打包之后运行会出现错误,
  1. Can't locate JSON/backportPP.pm in @INC
复制代码
使用JSON/XS也会出现问题
  1. Can't locate attributes.pm in @INC
复制代码
这是我环境的问题还是这两个模块的问题?
  1. #!/usr/bin/perl
  2. #
  3. use JSON::XS;

  4. print "hello world";
复制代码
这样的代码就可以重现问题。

使用JSON/Parse可以正常运行,但是这个模块有一些问题,中文处理比较麻烦。

作者: zhlong8    时间: 2012-02-03 12:55
不行你明确写出来 use JSON::BackportPP (); use attributes ();
作者: ustbleetom    时间: 2012-02-03 13:14
回复 2# zhlong8


    哦,原来Module::ScanDeps没有把模块都找出来。
谢谢了~




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2