Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perl DateTime::TimeZone not found (Bugzilla install)

I am trying to install Bugzilla on my Centos server. but I got this error:

Checking for   DateTime-TimeZone (v0.71)    not found 

and

    COMMANDS TO INSTALL REQUIRED MODULES (You *must* run all these commands
    and then re-run this script):
    /usr/bin/perl install-module.pl DateTime::TimeZone

If I run: /usr/bin/perl install-module.pl DateTime::TimeZone

then I get this:

    CPAN: Storable loaded ok (v2.15)Reading '/root/.cpan/Metadata'
    Database was generated on Sun, 09 Oct 2011 17:27:24 GMT
    Installing DateTime::TimeZone version 1.39...
    CPAN: Module::CoreList loaded ok (v2.56)
    DateTime::TimeZone is up to date (1.39).

How can I fix this?

like image 515
Xiabili Avatar asked Oct 09 '11 22:10

Xiabili


3 Answers

I was having the same problem when upgrading. The DateTime::TimeZone module appeared to be installed but the Bugzilla checksetup.pl script always reported that it was not found. The following fixed the problem for me (run from the Bugzilla install dir):

$ perl install-module.pl Params::Util
$ perl install-module.pl Module::Runtime

I found this by writing a two line perl script to simulate the check done by Bugzilla:

use lib qw(. lib);
use DateTime::TimeZone;

and then running it to see the errors:

perl /tmp/foo.pl

After installing the above modules the foo.pl script passes and so does Bugzilla checksetup.pl.

like image 186
mgk Avatar answered Nov 01 '22 18:11

mgk


I have the same problem and the solution given in this link

Something like /usr/bin/perl install-module.pl Module::Build may be enough, although I would have thought that Module::Bundle is standard perl

like image 2
mmazzei Avatar answered Nov 01 '22 20:11

mmazzei


I'd guess you have installed DateTime-TimeZone under your user account which is not accessible to the web server or the 'root' account. Try simply installing via your package manager:

yum install 'perl(DateTime::TimeZone)'
like image 1
MichielB Avatar answered Nov 01 '22 20:11

MichielB