gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 19:58:13 25 4
gpt4 key购买 nike

这是 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com