免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1693 | 回复: 9
打印 上一主题 下一主题

求助呀。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-04-22 10:28 |只看该作者 |倒序浏览
我装的是perl5.83 +apache2 +mysql

编译perl脚本时一直提示以下三个

Apache::RequestRec
Apache::RequestUtil
APR:ool

模块未装。

但是在 ppm 下 install 无法找到这些模块呀。

请问哪位高手相助呀。

谢谢 了!!!

论坛徽章:
0
2 [报告]
发表于 2004-04-22 11:08 |只看该作者

求助呀。

都是 mod_perl 的模块. install mod_perl    http://perl.apache.org

另外, 类似的问题推荐你先到 google 搜一下,很快就可以找到答案.

论坛徽章:
0
3 [报告]
发表于 2004-04-22 11:37 |只看该作者

求助呀。

Error: PPD for 'mod_perl.ppd' could not be found.

论坛徽章:
0
4 [报告]
发表于 2004-04-22 11:46 |只看该作者

求助呀。

hmm, 给出的连接你有看么?

mod_perl 需要下载编译. 请看上面给出的连接. 另, 下载 mod_perl 1.0 . 2.0 还不稳定.

论坛徽章:
0
5 [报告]
发表于 2004-04-22 17:59 |只看该作者

求助呀。

mod_perl  install voer

还是如下的提示呀。
Converting 'info.cgi' to info.exe

Warning: Can't locate APR/Pool.pm
    at C:\Perl\lib\CGI.pm line 186
    @INC = C:\Perl\lib, C:\Perl\site\lib, .

是不是有特殊的用法呀?

论坛徽章:
0
6 [报告]
发表于 2004-04-22 22:51 |只看该作者

求助呀。

先确定你的 mod_perl  是否安装成功。

重起 apache, 然后检查 error_log 看是否有类似的纪录。

[Thu Jun 22 17:14:07 2000] [notice] Apache/1.3.12 (Unix)
mod_perl/1.24 configured -- resuming normal operations

有的话mod_perl 就已经装上了。

接着添加类似的设定到 httpd.conf (只适用于 mod_perl 1.0 。 2.0 有一点区别)

  Alias /perl/ /opt/http/modperl/
  
  PerlModule Apache::Registry
  <Location /perl/>;
      SetHandler perl-script
      PerlHandler Apache::Registry
      Options +ExecCGI
      PerlSendHeader On
      allow from all
  </Location>;

把mod_perl 程序放到 /opt/http/modperl/。这样你的程序才是在mod_perl 下运行。

具体的东西你要去 RTFM ..
http://perl.apache.org/docs/1.0/guide/index.html
http://perl.apache.org/docs/1.0/guide/getwet.html

论坛徽章:
0
7 [报告]
发表于 2004-04-23 09:25 |只看该作者

求助呀。

Qiang 你的QQ号是多少?我是252809119

论坛徽章:
0
8 [报告]
发表于 2004-04-23 10:51 |只看该作者

求助呀。

[Thu Jun 22 17:14:07 2000] [notice] Apache/1.3.12 (Unix)
mod_perl/1.24 configured -- resuming normal operations

没有出现在我的logs/error.log里呀。

论坛徽章:
0
9 [报告]
发表于 2004-04-23 13:46 |只看该作者

求助呀。

windows 下的 mod_perl 我没有试过. 下面的你可以依次试一试. 我能做的就这些了. 另外, mod_perl 1.29 只用在 apache 2.0 以下.

mod_perl 最好运行在 linux/unix 下. windows 不推荐.

这一行加到 httpd.conf

LoadModule perl_module modules/mod_perl.so

试运行你的mod_perl 程序看看 error_log 是什么. 贴出来.

再试一下这个方法看 mod_perl 是否有安装.

在 mod_perl 目录里建一个 test.pl 文件包含如下内容.

print "Content-type: text/plain\r\n\r\n";
  print "Server's environment\n";
  foreach ( keys %ENV ) {
      print "$_\t$ENV{$_}\n";
  }

chmod a+rx  test.pl

在浏览器里请求一下这个文件 1.2.3.4/cgi-bin/test.pl

请求的结果大概如下

  SERVER_SOFTWARE Apache/1.3.10-dev (Unix)    mod_perl/1.21_01-dev
  GATEWAY_INTERFACE       CGI-Perl/1.1
  DOCUMENT_ROOT   /home/httpd/docs
  REMOTE_ADDR     127.0.0.1
  [more environment variables snipped]
  MOD_PERL        mod_perl/1.21_01-dev
  [more environment variables snipped]

看到 GATEWAY_INTERFACE is CGI-Perl/1.1 就好. 如果只是
GATEWAY_INTERFACE is CGI/1.1   那你还是普通的 cgi.

论坛徽章:
0
10 [报告]
发表于 2004-04-24 10:51 |只看该作者

求助呀。

我看到了。!
GATEWAY_INTERFACE is CGI-Perl/1.1

但是,我的装的mod_perl 1 里没有apr::pool和apache::requestrec及apache::requestulti 呀怎么办呀>;
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP