Bugzilla installation problem (Not a subroutine reference at Bugzilla/Template.pm line 65.) - Mozilla

This is a discussion on Bugzilla installation problem (Not a subroutine reference at Bugzilla/Template.pm line 65.) - Mozilla ; Hi, I am trying to install Bugzilla on my FreeBSD7.0 server, but it is failed on the checksetup process. I know this group is full of the question with Bugzilla, but i really can't find the solution. I have searched ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Bugzilla installation problem (Not a subroutine reference at Bugzilla/Template.pm line 65.)

  1. Bugzilla installation problem (Not a subroutine reference at Bugzilla/Template.pm line 65.)

    Hi,

    I am trying to install Bugzilla on my FreeBSD7.0 server,
    but it is failed on the checksetup process.

    I know this group is full of the question with Bugzilla,
    but i really can't find the solution.
    I have searched it on google, bugzilla's bug list and here,
    I still have no idea about it.

    If the problem have beed riase somewhere else,
    and the solution was already worked out.
    Please just show me the link.

    1) I have installed the bugzilla3.0 in /usr/local/www/data/bugzilla
    directory.
    2) first time to run ./checksetup.pl,
    installed those required modeules.
    3) Running the last ./checksetup again,
    and got error when "Precompiling templates"

    The failure message is:
    ===========================Code Here==================================
    # ./checksetup.pl

    * This is Bugzilla 3.0 on perl 5.9.5
    * Running on FreeBSD 7.0-CURRENT-200706 FreeBSD 7.0-CURRENT-200706 #0:
    Thu Jun 7 21:38:42 UTC 2007 root@stiles.cse.buffalo.edu:/usr/obj/
    usr/src/sys/GENERIC

    Checking perl modules...
    Checking for CGI (v2.93) ok: found v3.29
    Checking for TimeDate (v2.21) ok: found v2.22
    Checking for DBI (v1.41) ok: found v1.58
    Checking for PathTools (v0.84) ok: found v3.25
    Checking for Template-Toolkit (v2.12) ok: found v2.19
    Checking for Email-Send (v2.00) ok: found v2.185
    Checking for Email-MIME-Modifier (any) ok: found v1.442

    Checking available perl DBD modules...
    Checking for DBD-Pg (v1.45) not found
    Checking for DBD-mysql (v2.9003) ok: found v4.005

    The following Perl modules are optional:
    Checking for GD (v1.20) not found
    Checking for Template-GD (any) not found
    Checking for Chart (v1.0) not found
    Checking for GDGraph (any) not found
    Checking for GDTextUtil (any) not found
    Checking for XML-Twig (any) not found
    Checking for MIME-tools (v5.406) not found
    Checking for libwww-perl (any) not found
    Checking for PatchReader (v0.9.4) not found
    Checking for PerlMagick (any) not found
    Checking for perl-ldap (any) not found
    Checking for SOAP-Lite (any) not found
    Checking for HTML-Parser (v3.40) not found
    Checking for HTML-Scrubber (any) not found
    Checking for Email-MIME-Attachment-Stripper (any) not found
    Checking for Email-Reply (any) not found
    Checking for mod_perl (v1.999022) not found
    Checking for CGI (v3.11) ok: found v3.29
    Checking for Apache-DBI (v0.96) not found

    * NOTE: You must run any commands listed below as root.
    * OPTIONAL MODULES *
    ..................

    Reading ./localconfig...
    Checking for DBD-mysql (v2.9003) ok: found v4.005
    Checking for MySQL (v4.1.2) ok: found v5.0.41

    Precompiling templates...
    Not a subroutine reference at Bugzilla/Template.pm line 65.
    #
    ================================================== ===================

    The setuping up process is stopped here.
    And i view the "Template.rm",
    i don't know what is the problem in line 65.
    I don't know much about perl programming.

    /usr/local/www/data/bugzilla/Bugzilla/Template.rm
    ===========================Code Here==================================
    L:54 # Convert the constants in the Bugzilla::Constants module into a
    hash we can
    L:55 # pass to the template object for reflection into its "constants"
    namespace
    L:56 # (which is like its "variables" namespace, but for constants).
    To do so, we
    L:57 # traverse the arrays of exported and exportable symbols, pulling
    out functions
    L:58 # (which is how Perl implements constants) and ignoring the rest
    (which, if
    L:59 # Constants.pm exports only constants, as it should, will be
    nothing else).
    L:60 sub _load_constants {
    L:61 my %constants;
    L:62 foreach my $constant (@Bugzilla::Constants::EXPORT,
    L:63 @Bugzilla::Constants::EXPORT_OK)
    L:64 {
    L:65 if (defined &{$Bugzilla::Constants::{$constant}}) {
    L:66 # Constants can be lists, and we can't know whether
    we're
    L:67 # getting a scalar or a list in advance, since they
    come to us
    L:68 # as the return value of a function call, so we have
    to
    L:69 # retrieve them all in list context into anonymous
    arrays,
    L:70 # then extract the scalar ones (i.e. the ones whose
    arrays
    L:71 # contain a single element) from their arrays.
    L:72 $constants{$constant} = [&{$Bugzilla::Constants::
    {$constant}}];
    L:73 if (scalar(@{$constants{$constant}}) == 1) {
    L:74 $constants{$constant} = @{$constants{$constant}}
    [0];
    L:75 }
    L:76 }
    L:77 }
    L:78 return \%constants;
    L:79 }
    ================================================== ===================

    Any idea with the problem?

    Thanks in Advance,
    Chau


  2. Re: Bugzilla installation problem (Not a subroutine reference atBugzilla/Template.pm line 65.)

    On Tue, 31 Jul 2007 15:47:00 -0000 chau wrote:
    > * This is Bugzilla 3.0 on perl 5.9.5


    This is your problem. You are running on a development version
    of Perl, which we haven't even tested yet.

    Use a stable version of Perl instead.

    -Max
    --
    http://www.everythingsolved.com/
    Competent, Friendly Bugzilla Services. And Everything Else, too.

  3. Re: Bugzilla installation problem (Not a subroutine reference at Bugzilla/Template.pm line 65.)

    On Aug 1, 2:58 pm, Max Kanat-Alexander wrote:
    > On Tue, 31 Jul 2007 15:47:00 -0000 chau wrote:
    >
    > > * This is Bugzilla 3.0 on perl 5.9.5

    >
    > This is your problem. You are running on a development version
    > of Perl, which we haven't even tested yet.
    >
    > Use a stable version of Perl instead.
    >
    > -Max
    > --http://www.everythingsolved.com/
    > Competent, Friendly Bugzilla Services. And Everything Else, too.


    I used a Perl5.8.8 instead and then the install process in success.
    I haven't notice that i am using a development version of Perl.
    My frd had told me better to use perl 5.9.5 and so i installed it...

    Thank very much for your advise.
    I am really appreciate to your help.

    Best Regards,
    Chau


+ Reply to Thread