精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
锐英源精品开源心得,转载请注明:“锐英源www.wisestudy.cn,孙老师作品,电话13803810136。需要全文内容也请联系孙老师。
You have to build mod_perl with the same compiler as Perl was built with. Otherwise you may see segmentation faults and other weird things happen. 你必须使用相同的编译器完成mod_perl和Perl的创建。否则,你可能会看到分段错误和其他奇怪的事情发生。
This could be the XSLoader vs. DynaLoader problem, where the list of dl_handles created by XSLoader is wiped out by DynaLoader. Try adding:
这可能是XSLoader与DynaLoader的问题,由XSLoader创建的dl_handles列表是被DynaLoader消灭的。尝试添加:
use DynaLoader ();
to your startup.pl before any other module is loaded.在其他模块加载之前,添加到你的startup.pl中。
This has been resolved in perl 5.8.0. For earlier versions of Perl you need to comment out: 这在Perl5.8.0得到解决。对于较早版本的Perl,你需要注释掉:
#@dl_librefs = (); # things we have loaded 事件加载
#@dl_modules = (); # Modules we have loaded 模块加载
in DynaLoader.pm. 在 DynaLoader.pm.
However if none of this cases applies and you still experience segmentation faults, please report the problem using the following guidelines. 但是如果没有这个情况,你仍然遇到分段错误,请使用以下指南报告问题。
libexec/libperl.so: open failed: No such file or directory libexec/libperl.so:打开失败:没有这样的文件或目录If when you run the server you get the following error: 如果当您运行服务器你获得如下错误:
libexec/libperl.so: open failed: No such file or directory
it probably means that Perl was compiled with a shared library. mod_perl does detect this and links the Apache executable to the Perl shared library (libperl.so).
这可能意味着Perl编译了一个共享库。mod_perL检测出来并且链接Apache 可执行文件与Perl的共享库(libperl.so)。
First of all make sure you have Perl installed on the machine, and that you have libperl.so in <perlroot>/< version>/<architecture>/CORE. For example in /usr/local/lib/perl5/5.00503/sun4-solaris/CORE.
首先确保你的机器上安装了Perl ,并且在<perlroot>/< version>/<architecture>/CORE里有libperl.so。例如,在/usr/local/lib/perl5/5.00503/sun4的Solaris/ CORE。
Then make sure that directory is included in the environment variable LD_LIBRARY_PRELOAD. Under normal circumstances, Apache should have the path configured at compile time, but this way you can override the library path.
然后确保目录包含在环境变量LD_LIBRARY_PRELOAD中。正常情况下,Apache应该在编译时配置路径,但这样就会覆盖库的路径。