bugzilla - 在 @INC 中找不到 Math/Random/ISAAC.pm

标签 bugzilla

这是 bugzilla 的一个版本,已升级到新的共享托管服务器(仍在运行 Linux。)请参阅帖子底部以获取完整的错误消息。

./checksetup.pl does not complain of any missing modules and completes successfully

~/perl5/lib/perl5 中有许多本地 Perl 模块,包括下面报告为缺失的模块。

perl -V 报告以下环境变量值(注意已将此输出中的主文件夹根目录替换为 ~)

 %ENV:
    PERL5LIB="/~/perl5/lib/perl5/x86_64-linux-thread-multi:/~/perl5/lib/perl5:/~/perl5/lib/perl5/x86_64-linux-thread-multi:/~/perl5/lib/perl5"
    PERL_MM_OPT="INSTALL_BASE=/~/perl5"
  @INC:
    /~/perl5/lib/perl5/x86_64-linux-thread-multi
    /~/perl5/lib/perl5/x86_64-linux-thread-multi
    /~/perl5/lib/perl5
    /~/perl5/lib/perl5/x86_64-linux-thread-multi
    /~/perl5/lib/perl5/x86_64-linux-thread-multi
    /~/perl5/lib/perl5
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5

任何帮助将不胜感激。 Bugzilla 是否忽略 PERL5LIB 环境变量?

Full error message is:
Can't locate Math/Random/ISAAC.pm in @INC (@INC contains: . lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at Bugzilla/RNG.pm line 28.
BEGIN failed--compilation aborted at Bugzilla/RNG.pm line 28.
Compilation failed in require at Bugzilla/Util.pm line 50.
BEGIN failed--compilation aborted at Bugzilla/Util.pm line 50.
Compilation failed in require at Bugzilla/Error.pm line 33.
BEGIN failed--compilation aborted at Bugzilla/Error.pm line 33.
Compilation failed in require at Bugzilla/Install/Filesystem.pm line 31.
BEGIN failed--compilation aborted at Bugzilla/Install/Filesystem.pm line 31.
Compilation failed in require at Bugzilla/Config.pm line 38.
BEGIN failed--compilation aborted at Bugzilla/Config.pm line 38.
Compilation failed in require at Bugzilla.pm line 38.
BEGIN failed--compilation aborted at Bugzilla.pm line 38.
Compilation failed in require at index.cgi line 34.
BEGIN failed--compilation aborted at index.cgi line 34.

最佳答案

我认为区别在于,您以自己的用户身份运行 ./checksetup.pl,而在 Web 服务器中运行 Bugzilla 时,可能是用户 www-data。如果是这种情况,您需要配置 Web 服务器才能查看 ~/perl5/lib/perl5

将以下内容(替换 foobar 后)添加到 Apache 配置中 - 如果您使用的是这样的 - 可能会起作用:

SETENV PERL5LIB /home/foobar/perl5/local/lib/perl5:/home/foobar/perl5/local/lib/perl5/x86_64-linux-gnu-thread-multi

两篇可能有帮助的相关文章:(由我自己发布)

关于bugzilla - 在 @INC 中找不到 Math/Random/ISAAC.pm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11263894/

相关文章:

mysql - 即使启用了 innodb,bugzilla 安装错误 :"InnoDB is disabled your MySQL installation. Bugzilla requires InnoDb to be enabled."

mysql - 获取Bugzilla中用户的所有产品

perl - 在脚本中使用 Bugzilla Perl API 时如何进行身份验证?

c# - 用于连接到 Bugzilla 的 .NET API

iis - 默认文档不存在

火狐源代码分析;每个组件的代码行数

mysql - 如何将版本从 bugzilla 迁移到 redmine 中新的自定义 'source version' 字段(我需要什么 SQL 语法)?

linux - 将电子邮件从 "bugzilla-daemon"发送到 "abc@xyz.com"时出错 : no sender