精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
锐英源精品开源心得,转载请注明:“锐英源www.wisestudy.cn,孙老师作品,电话13803810136。需要全文内容也请联系孙老师。
my () Scoped Variable in Nested Subroutines.
my () Scoped Variable in Nested Subroutines.
There is no object built for this module. e.g. when you see: 没有模块构建对象。例如,当你看到:
Can’t locate loadable object for module Apache::Util in @INC...
make sure to give mod_perl’s Makefile.PL PERL_UTIL_API=1, EVERYTHING=1 or DYNAMIC=1 parameters to enable and build all the components of Apache::Util.
确保给出的mod_perl Makefile.PL PERL_UTIL_API = 1,EVERYTHING=1 or DYNAMIC=1参数来启用和构建Apache::Util所有的组件。
Can’t locate object method "get_handlers" via package "Apache"
You need to rebuild your mod_perl with stacked handlers, i.e. PERL_STACKED_HANDLERS=1 or more simply EVERYTHING=1. 你需要使用重叠处理程序重建mod_perl,例如PERL_STACKED_HANDLERS = 1或更多简单一点,EVERYTHING=1。
Most often you will find that you really do have a syntax error. However the other reason might be that a script running under Apache::Registry is using __DATA__ or __END__ tokens. Learn why. 通常你会发现,你确实有语法错误。但是另一个原因可能是脚本在Apache::Registry下运行使用__DATA__或__END__符号。了解原因。
Check that all your modules are compiled with the same Perl that is compiled into mod_perl. Perl 5.005 and 5.004 are not binary compatible by default.
检查你所有的模块都使用相同的Perl编译,编译成mod_perl。Perl 5.005和5.004不是默认的二进制兼容。
Other known causes of this problem: 此问题的其它已知的原因:
OS distributions that ship with a broken binary Perl installation. 操作系统发行版附带一个破碎的二进制安装Perl。
The ‘perl’ program and ‘libperl.a’ library are somehow built with different binary compatibility flags. “perl”程序和“libperl.a“库是由不同的二进制兼容性的标志创建的。
The solution to these problems is to rebuild Perl and any extension modules from a fresh source tree. Tip for running Perl’s Configure script: use the ‘-des’ flags to accepts defaults and ‘-D’ flag to override certain attributes:
解决这些问题的办法是从一个新的源代码树重建Perl和任何扩展模块。提示运行Perl的配置脚本:使用“-of”标志,以接受默认设置,'D'标志重写某些属性::
% ./Configure -des -Dcc=gcc ... && make test && make install
Read Perl’s INSTALL document for more details. 阅读Perl的INSTALL文件的更多细节。
Solaris OS specific: Solaris操作系统具体有:
"Can’t load DBI" or similar error for the IO module or whatever dynamic module mod_perl tries to pull in first. The solution is to re-configure, re-build and re-install Perl and dynamic modules with the following flags when Configure asks for "additional LD flags":
“无法加载DBI”;对于IO模块或任何动态模块mod_perl的尝试中率先拉开类似的错误。解决方案是重新配置,重建并重新安装Perl而且动态模块配置请求“附加LD标志”:
-Xlinker——export-dynamic
or
-Xlinker -E
This problem is only known to be caused by installing gnu ld under Solaris. 这个问题只知道是由在Solaris上安装GNU LD所致