
精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
锐英源精品开源心得,转载请注明:“锐英源www.wisestudy.cn,孙老师作品,电话13803810136。需要全文内容也请联系孙老师。
syntax error at /dev/null line 1, near "line arguments:"
Execution of /dev/null aborted due to compilation errors./dev/null 的执行中断,因为编译错误。
parse: Undefined error: 0
There is a chance that your /dev/null device is broken. Try: 可能你的/ dev / null设备损坏。试一试:
% echo > /dev/null
Alternatively you should try to remove this special file and recreate it: 或者你应该删除这个特殊的文件并重新创建:
# rm /dev/null
# mknod /dev/null c 1 3
# chmod a+rw /dev/null
Can’t call method "register_cleanup" on an
undefined value at /usr/lib/perl5/5.00503/CGI.pm line 263.
caused by this code snippet in CGI.pm: 在CGI.pm代码片段造成的:
if ($MOD_PERL) {
Apache->request->register_cleanup(\&CGI::_reset_globals);
undef $NPH;
}
One solution is to add to httpd.conf: 一个解决办法是添加到httpd.conf:
PerlPostReadRequestHandler ’sub { Apache->request(shift) }’
But even better, switch to Apache::Cookie: 但更好的是,切换到Apache::Cookie:
use Apache;
use Apache::Cookie;
sub handler {
my $r = shift;
my $cookies = Apache::Cookie->new($r)->parse;
my %bar = $cookies->{foo}->value;
If readdir() either fails with an exception, or in the list context it returns the correct number of items but each item as an empty string, you have a binary compatibility between mod_perl and Perl problem. Most likely the two have been built against different glibc versions, which have incompatible struct dirent.
如果readdir()异常失败,或列表中的上下文返回正确的项目数但每个条目是一个空字符串,mod_perl和Perl问题之间的二进制兼容性出了问题。最有可能的两个已经建立了不同的安装版本,其中有不兼容的dirent结构。
To solve this problem rebuild mod_perl and Perl against the same glibc version or get new binary packages built against the same glibc version.
重建mod_perl和Perl对相同的安装版本或获得新的二进制包建立针对相同的安装版本来解决这个问题。