锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置:锐英源 / 英语翻译 / Apache / 语法错误、无法调用register_cleanup方法、readdir()不工作
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

锐英源精品开源心得,转载请注明:“锐英源www.wisestudy.cn,孙老师作品,电话13803810136。需要全文内容也请联系孙老师。

/dev/null附近语法错误、无法调用register_cleanup方法、readdir()不工作


syntax error at /dev/null line 1, near "line arguments:" 在/ dev / null 1行代码接近“line arguments:“的语法错误,

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" (CGI.pm) 无法调用”register_cleanup”(CGI.pm)方法

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;

readdir() not working readdir()不工作

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对相同的安装版本或获得新的二进制包建立针对相同的安装版本来解决这个问题。

友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内