LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2014, 12:22 AM   #1
indrakp
LQ Newbie
 
Registered: Feb 2014
Posts: 1

Rep: Reputation: Disabled
Install bugzilla 4.2.2 on Centos 6.5.


Iím sorry for putting following Centos issue here for I have not found appropriate distribution. If have, please just move this thread to there.

I want to install bugzilla 4.2.2 on Centos6.5. when I use /usr/bin/perl install-module.pl --all, in bugzilla folder, I got following issue:

-----
Code:
Alert: While trying to 'dump' YAML file
 '/root/.cpan/FTPstats.yml.3006'
with 'YAML' the following error was encountered:
  Undefined subroutine &main::main:: called at /var/www/html/bugzilla/lib/YAML/Mo.pm line 6.
-----

And plesae find the complete output,

Code:
# /usr/bin/perl install-module.pl --all
Checking for                 CPAN (v1.81)     ok: found v1.94 
Checking for                 YAML (any)       ok: found v0.89 
Checking for   ExtUtils-MakeMaker (v6.31)     ok: found v6.55_02 
Going to read '/root/.cpan/Metadata'
  Database was generated on Sun, 09 Feb 2014 15:06:25 GMT
Installing Template version 2.25...
Running install for module 'Template'
Running make for A/AB/ABW/Template-Toolkit-2.25.tar.gz
CPAN: Time::HiRes loaded ok (v1.9721)
Fetching with LWP:
  http://mirrors.163.com/cpan/authors/id/A/AB/ABW/CHECKSUMS
Alert: While trying to 'dump' YAML file
 '/root/.cpan/FTPstats.yml.3006'
with 'YAML' the following error was encountered:
  Undefined subroutine &main::main:: called at /var/www/html/bugzilla/lib/YAML/Mo.pm line 6.
And this is the file, /var/www/html/bugzilla/lib/YAML/Mo.pm,

Code:
package YAML::Mo;
$YAML::Mo::VERSION = '0.89';
# use Mo qw[builder default import];
#   The following line of code was produced from the previous line by
#   Mo::Inline version 0.38
no warnings;my$M=__PACKAGE__.'::';*{$M.Object::new}=sub{my$c=shift;my$s=bless{@_},$c;my%n=%{$c.::.':E'};map{$s->{$_}=$n{$_}->()if!exists$s->{$_}}keys%n;$s};*{$M.import}=sub{import warnings;$^H|=1538;my($P,%e,%o)=caller.'::';shift;eval"no Mo::$_",&{$M.$_.::e}($P,\%e,\%o,\@_)for@_;return if$e{M};%e=(extends,sub{eval"no $_[0]()";@{$P.ISA}=$_[0]},has,sub{my$n=shift;my$m=sub{$#_?$_[0]{$n}=$_[1]:$_[0]{$n}};@_=(default,@_)if!($#_%2);$m=$o{$_}->($m,$n,@_)for sort keys%o;*{$P.$n}=$m},%e,);*{$P.$_}=$e{$_}for keys%e;@{$P.ISA}=$M.Object};*{$M.'builder::e'}=sub{my($P,$e,$o)=@_;$o->{builder}=sub{my($m,$n,%a)=@_;my$b=$a{builder}or return$m;my$i=exists$a{lazy}?$a{lazy}:!${$P.':N'};$i or ${$P.':E'}{$n}=\&{$P.$b}and return$m;sub{$#_?$m->(@_):!exists$_[0]{$n}?$_[0]{$n}=$_[0]->$b:$m->(@_)}}};*{$M.'default::e'}=sub{my($P,$e,$o)=@_;$o->{default}=sub{my($m,$n,%a)=@_;exists$a{default}or return$m;my($d,$r)=$a{default};my$g='HASH'eq($r=ref$d)?sub{+{%$d}}:'ARRAY'eq$r?sub{[@$d]}:'CODE'eq$r?$d:sub{$d};my$i=exists$a{lazy}?$a{lazy}:!${$P.':N'};$i or ${$P.':E'}{$n}=$g and return$m;sub{$#_?$m->(@_):!exists$_[0]{$n}?$_[0]{$n}=$g->(@_):$m->(@_)}}};my$i=\&import;*{$M.import}=sub{(@_==2 and not$_[1])?pop@_:@_==1?push@_,grep!/import/,@f:();goto&$i};@f=qw[builder default import];use strict;use warnings;

our $DumperModule = 'Data::Dumper';

my ($_new_error, $_info, $_scalar_info);

no strict 'refs';
*{$M.'Object::die'} = sub {
    my $self = shift;
    my $error = $self->$_new_error(@_);
    $error->type('Error');
    Carp::croak($error->format_message);
};

*{$M.'Object::warn'} = sub {
    my $self = shift;
    return unless $^W;
    my $error = $self->$_new_error(@_);
    $error->type('Warning');
    Carp::cluck($error->format_message);
};

# This code needs to be refactored to be simpler and more precise, and no,
# Scalar::Util doesn't DWIM.
#
# Can't handle:
# * blessed regexp
*{$M.'Object::node_info'} = sub {
    my $self = shift;
    my $stringify = $_[1] || 0;
    my ($class, $type, $id) =
"/var/www/html/bugzilla/lib/YAML/Mo.pm" [readonly] 81L, 3348C

Maybe the issue is with ďModule/Build.pmĒ or CPAN or YAML, but I donít know how to handle it.

Any suggestion is appreciated.

Thanks,
 
Old 02-11-2014, 10:30 AM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,493
Blog Entries: 12

Rep: Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386Reputation: 2386
http://stackoverflow.com/questions/2...main-called-at shows you fixed this by installing YAML 0.74 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
After installation of Bugzilla on linux machine, cannot see Bugzilla page on UI manasi_chitre@yahoo.com Linux - Software 0 03-15-2012 04:00 AM
Bugzilla on Centos 5.5 x81kilo Linux - Newbie 2 02-24-2011 12:13 AM
Bugzilla upgradation process in centos box nagababud Linux - Server 1 12-18-2009 02:11 AM
getting 403 forbidden message when try to access bugzilla on CENTOS server slasher_neo Linux - Newbie 1 07-24-2008 02:19 AM
Cant install bugzilla on Centos using YUM ALInux Linux - Software 6 06-01-2008 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration