Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Attempt to reload DateTime.pm aborted.

2,243 views
Skip to first unread message

Thomas Ronayne

unread,
May 15, 2011, 2:09:51 PM5/15/11
to
Attempting to install all the Perl modules (one at a time) I constantly
get, after the last required Perl module is installed (after, if I
remember correctly) List::MoreUtils, the following.

Attempt to reload DateTime.pm aborted.
Compilation failed in require at Bugzilla/Util.pm line 53.
BEGIN failed--compilation aborted at Bugzilla/Util.pm line 53.
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 checksetup.pl line 102.

I have been struggling with this for a day or so and am finally fed up;
I've downloaded the stable version, the CVS version and the bzr version
with the same result.

The platform specifics: Linux fubar 2.6.37.6 #3 SMP Sat Apr 9 22:49:32
CDT 2011 x86_64 Intel(R) Core(TM)2 Duo CPU E7600 @ 3.06GHz GenuineIntel
GNU/Linux, the operating system is Slackware 64-bit, release 13.37.

Anybody have any idea what the heck to do with this *&^^$&*# Perl stuff
to get Bugzilla back in business?

Thanks.

Peter Vereshagin

unread,
May 15, 2011, 3:13:34 PM5/15/11
to support-...@lists.mozilla.org
I know St. Peter won't call your name, support-bugzilla!
2011/05/15 14:09:51 -0400 Thomas Ronayne <tr...@ameritech.net> => To support-...@lists.mozilla.org mozilla.support.bugzilla:
R> Attempt to reload DateTime.pm aborted.
TR> Compilation failed in require at Bugzilla/Util.pm line 53.

You may have several different 'DateTime.pm' files on your machine.
The command 'locate' may be the best way to discover this for sure.

73! Peter pgp: A0E26627 (4A42 6841 2871 5EA7 52AB 12F8 0CE1 4AAC A0E2 6627)
--
http://vereshagin.org

Raghu Kumar C

unread,
May 16, 2011, 1:49:58 AM5/16/11
to Thomas Ronayne, support-...@lists.mozilla.org

It could be a circular dependency issue. Check this link:

http://stackoverflow.com/questions/2202243/why-does-a-module-compile-by-itself-but-fail-when-used-from-elsewhere

or a compilation problem in DateTime.pm which is higly unlikely

http://search.cpan.org/~jesse/perl-5.14.0/pod/perldiag.pod (search the error in this doc)

I believe you have installed the DateTime module correctly, and was not interrupted during installation.

You could mention the Bugzilla versions that you have tried so that others could share their experience.

~raghu

Thanks.
_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put support-...@lists.mozilla.org in the To: field when you reply.


Any comments or statements made in this email are not necessarily those of Tavant Technologies.
The information transmitted is intended only for the person or entity to which it is addressed and may
contain confidential and/or privileged material. If you have received this in error, please contact the
sender and delete the material from any computer. All e-mails sent from or to Tavant Technologies
may be subject to our monitoring procedures.

Max Kanat-Alexander

unread,
May 16, 2011, 2:19:24 AM5/16/11
to support-...@lists.mozilla.org
On 05/15/2011 11:09 AM, Thomas Ronayne wrote:
> Attempt to reload DateTime.pm aborted.

Try:

rm -rf lib/*
./install-module.pl Module::Build
./install-module.pl --all

-Max
--
Max Kanat-Alexander
Chief Architect, Community Lead, and Release Manager
Bugzilla Project
http://www.bugzilla.org/

Thomas Ronayne

unread,
May 16, 2011, 9:36:21 AM5/16/11
to
There appears to be one:

fubar-root-/var/www/htdocs/bugzilla: find / -type f -name 'DateTime.pm'
/usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/DateTime.pm

Hmm.

Thomas Ronayne

unread,
May 16, 2011, 10:12:28 AM5/16/11
to
On 05/16/2011 02:19 AM, Max Kanat-Alexander wrote:
> On 05/15/2011 11:09 AM, Thomas Ronayne wrote:
>> Attempt to reload DateTime.pm aborted.
> Try:
>
> rm -rf lib/*
> ./install-module.pl Module::Build
> ./install-module.pl --all
>
> -Max
I should note that this is a "clean" installation of Slackware 13.37;
i.e., there are no "old" system software present on the machine (I
retain /usr/local, /opt and a couple of other non-system partitions).

OK, thank you, did that (all was well that ended) and...

fubar-root-/var/www/htdocs/bugzilla: r checksetup
checksetup.pl --modules
Unknown option: modules
* This is Bugzilla 4.1.2+ on perl 5.12.3
* Running on Linux 2.6.37.6 #3 SMP Sat Apr 9 22:49:32 CDT 2011

Checking perl modules...
Checking for CGI.pm (v3.51) ok: found v3.54
Checking for Digest-SHA (any) ok: found v5.47
Checking for TimeDate (v2.21) ok: found v2.24
Checking for DateTime (v0.28) ok: found v0.70
Checking for DateTime-TimeZone (v0.71) ok: found v1.34
Checking for DBI (v1.41) ok: found v1.616
Checking for Template-Toolkit (v2.22) ok: found v2.22
Checking for Email-Send (v2.00) ok: found v2.198
Checking for Email-MIME (v1.904) ok: found v1.907
Checking for URI (v1.37) ok: found v1.58
Checking for List-MoreUtils (v0.22) ok: found v0.30
Checking for Math-Random-Secure (v0.05) ok: found v0.06

Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) ok: found v2.18.1
Checking for DBD-mysql (v4.001) ok: found v4.018
Checking for DBD-SQLite (v1.29) ok: found v1.31
Checking for DBD-Oracle (v1.19) not found

The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.46
Checking for Chart (v2.1) ok: found v2.4.2
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking for XML-Twig (any) ok: found v3.38
Checking for MIME-tools (v5.406) ok: found v5.502
Checking for libwww-perl (any) ok: found v6.02
Checking for PatchReader (v0.9.6) ok: found v0.9.6
Checking for perl-ldap (any) ok: found v0.4001
Checking for Authen-SASL (any) ok: found v2.15
Checking for RadiusPerl (any) ok: found v0.20
Checking for SOAP-Lite (v0.712) ok: found v0.712
Checking for JSON-RPC (any) ok: found v0.96
Checking for JSON-XS (v2.0) ok: found v2.3
Use of uninitialized value in open at
lib/x86_64-linux-thread-multi/Test/Taint.pm line 334, <DATA> line 522.
Checking for Test-Taint (any) ok: found v1.04
Checking for HTML-Parser (v3.40) ok: found v3.68
Checking for HTML-Scrubber (any) ok: found v0.09
Checking for Encode (v2.21) ok: found v2.39
Checking for Encode-Detect (any) not found
Checking for Email-MIME-Attachment-Stripper (any) ok: found
v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for TheSchwartz (any) ok: found v1.10
Checking for Daemon-Generic (any) ok: found v0.71
Checking for mod_perl (v1.999022) not found
Checking for Apache-SizeLimit (v0.93) not found
Checking for mod_headers (any) ok
Checking for mod_expires (any) ok
Checking for mod_env (any) ok
***********************************************************************
* OPTIONAL MODULES *
***********************************************************************
* Certain Perl modules are not required by Bugzilla, but by *
* installing the latest version you gain access to additional *
* features. *
* *
* The optional modules you do not have installed are listed below, *
* with the name of the feature they enable. Below that table are the *
* commands to install each module. *
***********************************************************************
* MODULE NAME * ENABLES FEATURE(S) *
***********************************************************************
* Encode-Detect * Automatic charset detection for text attachments *
* mod_perl * mod_perl *
* Apache-SizeLimit * mod_perl *
***********************************************************************
COMMANDS TO INSTALL OPTIONAL MODULES:

Encode-Detect: /usr/bin/perl5.12.3 install-module.pl Encode::Detect
mod_perl: /usr/bin/perl5.12.3 install-module.pl mod_perl2
Apache-SizeLimit: /usr/bin/perl5.12.3 install-module.pl
Apache2::SizeLimit


To attempt an automatic install of every required and optional module
with one command, do:

/usr/bin/perl5.12.3 install-module.pl --all

Attempt to reload DateTime.pm aborted.

Compilation failed in require at Bugzilla/Util.pm line 53, <DATA>
line 522.
BEGIN failed--compilation aborted at Bugzilla/Util.pm line 53,
<DATA> line 522.
Compilation failed in require at Bugzilla/Error.pm line 33, <DATA>
line 522.
BEGIN failed--compilation aborted at Bugzilla/Error.pm line 33,
<DATA> line 522.


Compilation failed in require at Bugzilla/Install/Filesystem.pm line

31, <DATA> line 522.


BEGIN failed--compilation aborted at Bugzilla/Install/Filesystem.pm

line 31, <DATA> line 522.
Compilation failed in require at Bugzilla/Config.pm line 38, <DATA>
line 522.
BEGIN failed--compilation aborted at Bugzilla/Config.pm line 38,
<DATA> line 522.
Compilation failed in require at Bugzilla.pm line 38, <DATA> line 522.
BEGIN failed--compilation aborted at Bugzilla.pm line 38, <DATA>
line 522.
Compilation failed in require at checksetup.pl line 102, <DATA> line
522.

Sigh.

The DateTime.pm file that is present on the machine is found in
/usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/DateTime.pm
(the standard location in Slackware 64-bit systems) and one would think
that Perl knows where to find it, eh? Or do I have to fiddle with
symbolic links or something for Bugzilla to be able to find things.

Or am I just barking up the wrong tree here.

Thomas Ronayne

unread,
May 16, 2011, 10:16:24 AM5/16/11
to
On 05/16/2011 01:49 AM, Raghu Kumar C wrote:
> It could be a circular dependency issue. Check this link:
>
> http://stackoverflow.com/questions/2202243/why-does-a-module-compile-by-itself-but-fail-when-used-from-elsewhere
>
> or a compilation problem in DateTime.pm which is higly unlikely
>
> http://search.cpan.org/~jesse/perl-5.14.0/pod/perldiag.pod (search the error in this doc)
>
> I believe you have installed the DateTime module correctly, and was not interrupted during installation.
Well, none of those seemed to make much sense to me (sorry, the only
thing I ever use Perl for is Bugzilla, don't know anything else about it).

> You could mention the Bugzilla versions that you have tried so that others could share their experience.
Yeah, sorry about that, Bugzilla is 4.1.2+ (obtained yesterday using
bzr), Perl is 5.12.3.

Max Kanat-Alexander

unread,
May 16, 2011, 7:02:27 PM5/16/11
to support-...@lists.mozilla.org
On 05/16/2011 07:12 AM, Thomas Ronayne wrote:
> The DateTime.pm file that is present on the machine is found in
> /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/DateTime.pm

Ah ha. Your Slackware package did not install DateTime correctly. Try this:

perl -MDateTime -e1

You will see an error that tells you you are missing some module.

Thomas Ronayne

unread,
May 17, 2011, 8:06:02 AM5/17/11
to
On 05/16/2011 07:02 PM, Max Kanat-Alexander wrote:
> On 05/16/2011 07:12 AM, Thomas Ronayne wrote:
>> The DateTime.pm file that is present on the machine is found in
>> /usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/DateTime.pm
> Ah ha. Your Slackware package did not install DateTime correctly. Try this:
>
> perl -MDateTime -e1
>
> You will see an error that tells you you are missing some module.
>
> -Max
Well, that tuned up

fubar-root-/root: perl -MDateTime -e1
Can't locate Math/Round.pm in @INC (@INC contains:
/usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.12.3
/usr/lib64/perl5/vendor_perl/5.12.3/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.12.3
/usr/lib64/perl5/5.12.3/x86_64-linux-thread-multi
/usr/lib64/perl5/5.12.3 /usr/lib64/perl5/site_perl
/usr/lib64/perl5/vendor_perl .) at
/usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/DateTime.pm
line 13.
BEGIN failed--compilation aborted at
/usr/lib64/perl5/site_perl/5.12.3/x86_64-linux-thread-multi/DateTime.pm
line 13.
Compilation failed in require.
BEGIN failed--compilation aborted.

and danged if I know what to do about it! If you could, I'd really
appreciate a hint; do I need to recompile Perl from source with some
option turned on that isn't (Slackware provides all the source and the
the package building tools to build from scratch if there's something
missing); is there some CPAN command to take care of the problem?

I know absolutely nothing about Perl -- the only use I have for it is
Bugzilla -- and I'd be grateful for a hint.

Thanks.

Max Kanat-Alexander

unread,
May 17, 2011, 3:12:29 PM5/17/11
to support-...@lists.mozilla.org
On 05/17/11 05:06, Thomas Ronayne wrote:
> Can't locate Math/Round.pm in @INC (@INC contains:

You need to install Math::Round. Since you installed DateTime globally
in your Slackware install, you should probably install Math::Round
globally as well. Perhaps:

cpan install Math::Round

Thomas Ronayne

unread,
May 17, 2011, 3:24:50 PM5/17/11
to
After much ado, I've gotten Bugzilla 4.0.1 (the stable version) to work.

Slackware 64-bit 13.37 does not include more than a base set of modules
in Perl; searching around, I found a list of modules that looked
reasonable (bear in mind that I know less than zero about Perl) and I
removed and reinstalled Perl (just to get back to ground zero) then
initialized CPAN and installed the following modules

* LWP (so it would shut up about LWP missing)
* MD5
* Time::HiRes
* Bundle::CPAN
* DBI
* DBD::mysql
* LWP::UserAgent
* Crypt::SSLeay
* Net::SSleay
* XML::Parser
* Date::ICal
* Mail::Sender

One of the above did install /DateTime/ and /Math::Round/ (which had
been missing previously). Don't know if the others are needed, frankly
don't give a hoot, they're there and they don't seem to bother anybody.

Then I went through /checkinstall.pl --check-modules/ and, one-by-one,
installed each missing module as reported by /checkinstall.pl/.

At the end of that process, /checkinstall.pl/ ran without problems, I
added the data base password to /localconfig/ and, wonder of wonders! up
and runnin'.

All is well that ends.

Thanks to all who contributed hints.

dengji...@gmail.com

unread,
Jun 24, 2011, 12:50:41 AM6/24/11
to

我也遇到这样的量,求解

0 new messages