7 Replies Latest reply: Mar 15, 2013 12:42 PM by Catch_22 RSS

    Facing issues in  Bugzilla 4.2 installalation

    996872
      Hi All,

      I have to install Bugzilla 4.2 on Oracle Linux 5.6 64 bit OS.
      I have installed the prerequisites . Such as .

      1.perl-5.16.2.tar.gz
      2.mysql-5.6.3-m6-linux2.6-x86_64.tar.gz
      3.Apache 2.2

      After that I ran ./checksetup.pl --check-modules  to check all perl modules .
      It has shown some missing modules .
      Then I ran /usr/bin/perl install-module.pl --all  to install automatically .
      Most of the modules got installed .But still facing some issues in installing the rest modules.

      [sabhijit@cr-beaodi-01 bugzilla-4.2.5]$ ./checksetup.pl --check-modules
      * This is Bugzilla 4.2.5 on perl 5.8.8
      * Running on Linux 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010

      Checking perl modules...
      Checking for CGI.pm (v3.51) ok: found v3.63
      Checking for Digest-SHA (any) ok: found v5.83
      Checking for TimeDate (v2.21) ok: found v2.24
      Checking for DateTime (v0.28) ok: found v0.78
      Checking for DateTime-TimeZone (v0.71) ok: found v1.57
      Checking for DBI (v1.41) ok: found v1.623
      Checking for Template-Toolkit (v2.22) ok: found v2.24
      Checking for Email-Send (v2.00) ok: found v2.198
      Checking for Email-MIME (v1.904) ok: found v1.911
      Checking for URI (v1.37) ok: found v1.60
      Checking for List-MoreUtils (v0.22) ok: found v0.33
      Checking for Math-Random-ISAAC (v1.0.1) ok: found v1.004

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

      The following Perl modules are optional:
      Checking for                   GD (v1.20)     not found
      Checking for                Chart (v2.1)      not found
      Checking for          Template-GD (any)       not found
      Checking for           GDTextUtil (any)       not found
      Checking for              GDGraph (any)       not found
      Checking for MIME-tools (v5.406) ok: found v5.504
      Checking for libwww-perl (any) ok: found v6.04
      Checking for             XML-Twig (any)       not found
      Checking for PatchReader (v0.9.6) ok: found v0.9.6
      Checking for perl-ldap (any) ok: found v0.53
      Checking for Authen-SASL (any) ok: found v2.16
      Checking for RadiusPerl (any) ok: found v0.22
      Checking for SOAP-Lite (v0.712) ok: found v0.715
      Checking for JSON-RPC (any) ok: found v1.03
      Checking for JSON-XS (v2.0) ok: found v2.33
      Checking for Test-Taint (any) ok: found v1.06
      Checking for HTML-Parser (v3.40) ok: found v3.55
      Checking for HTML-Scrubber (any) ok: found v0.09
      Checking for Encode (v2.21) ok: found v2.49
      Checking for Encode-Detect (any) ok: found v1.01
      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
      Subroutine File::Slurp::O_RDWR redefined at lib/File/Slurp.pm line 11
      Subroutine File::Slurp::O_CREAT redefined at lib/File/Slurp.pm line 11
      Subroutine File::Slurp::O_EXCL redefined at lib/File/Slurp.pm line 11
      Checking for Daemon-Generic (any) ok: found v0.82
      Checking for             mod_perl (v1.999022) not found
      Checking for     Apache-SizeLimit (v0.96)     not found
      ***********************************************************************
      * 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) *
      ***********************************************************************
      * GD * Graphical Reports, New Charts, Old Charts *
      * Chart * New Charts, Old Charts *
      * Template-GD * Graphical Reports *
      * GDTextUtil * Graphical Reports *
      * GDGraph * Graphical Reports *
      * XML-Twig * Move Bugs Between Installations, Automatic Update Notifications *
      * mod_perl * mod_perl *
      * Apache-SizeLimit * mod_perl *
      ***********************************************************************
      COMMANDS TO INSTALL OPTIONAL MODULES:

      GD: /usr/bin/perl install-module.pl GD
      Chart: /usr/bin/perl install-module.pl Chart::Lines
      Template-GD: /usr/bin/perl install-module.pl Template::Plugin::GD::Image
      GDTextUtil: /usr/bin/perl install-module.pl GD::Text
      GDGraph: /usr/bin/perl install-module.pl GD::Graph
      XML-Twig: /usr/bin/perl install-module.pl XML::Twig
      mod_perl: /usr/bin/perl install-module.pl mod_perl2
      Apache-SizeLimit: /usr/bin/perl install-module.pl Apache2::SizeLimit


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

      /usr/bin/perl install-module.pl --all

      [sabhijit@cr-beaodi-01 bugzilla-4.2.5]$

      I got the below error when trying to install the rest modules.


      CPAN: Parse::CPAN::Meta loaded ok (v1.4401)
      CPAN: CPAN::Meta loaded ok (v2.112621)
      CPAN: Module::CoreList loaded ok (v2.82)

      CPAN.pm: Building L/LD/LDS/GD-2.49.tar.gz

      **UNRECOVERABLE ERROR**
      Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
      If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd.
      Warning: No success on command[usr/bin/perl Makefile.PL  LIB="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib" INSTALLMAN1DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man1" INSTALLMAN3DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man3" INSTALLBIN="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLSCRIPT="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLDIRS=perl]
      LDS/GD-2.49.tar.gz
      /usr/bin/perl Makefile.PL LIB="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib" INSTALLMAN1DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man1" INSTALLMAN3DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man3" INSTALLBIN="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLSCRIPT="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLDIRS=perl -- NOT OK
      Skipping test because of notest pragma
      Running make install
      Make had some problems, won't install
      Could not read metadata file. Falling back to other methods to determine prerequisites
      Installing Chart::Lines version 2.004006...
      Chart::Lines is up to date (2.4.6).


      CPAN.pm: Building P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz

      Can't find mod_perl installed
      The error was: Can't locate mod_perl2.pm in @INC (@INC contains: /home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/x86_64-linux-thread-multi /home/sabhijit/Bugzilla/bugzilla-4.2.5/lib /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Makefile.PL line 149.
      Warning: No success on command[usr/bin/perl Makefile.PL  LIB="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib" INSTALLMAN1DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man1" INSTALLMAN3DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man3" INSTALLBIN="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLSCRIPT="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLDIRS=perl]
      PHRED/Apache-SizeLimit-0.96.tar.gz
      /usr/bin/perl Makefile.PL LIB="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib" INSTALLMAN1DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man1" INSTALLMAN3DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man3" INSTALLBIN="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLSCRIPT="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLDIRS=perl -- NOT OK
      Skipping test because of notest pragma


      CPAN.pm: Building C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz

      Can't exec "mysql_config": No such file or directory at Makefile.PL line 83.

      Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
      not contain the path to mysql_config. Resorting to guessed values!
      Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
      Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
      Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
      Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
      Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
      Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located


      PLEASE NOTE:

      For 'make test' to run properly, you must ensure that the
      database user 'sabhijit' can connect to your MySQL server
      and has the proper privileges that these tests require such
      as 'drop table', 'create table', 'drop procedure', 'create procedure'
      as well as others.

      mysql> grant all privileges on test.* to 'sabhijit'@'localhost' identified by 's3kr1t';

      You can also optionally set the user to run 'make test' with:

      perl Makefile.PL --testuser=username

      Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
      Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
      Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
      Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
      Can't exec "mysql_config": No such file or directory at Makefile.PL line 479.
      Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
      Failed to determine directory of mysql.h. Use

      perl Makefile.PL --cflags=-I<dir>

      to set this directory. For details see the INSTALL.html file,
      section "C Compiler flags" or type

      perl Makefile.PL --help
      Warning: No success on command[usr/bin/perl Makefile.PL  LIB="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib" INSTALLMAN1DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man1" INSTALLMAN3DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man3" INSTALLBIN="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLSCRIPT="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLDIRS=perl]
      CAPTTOFU/DBD-mysql-4.022.tar.gz
      /usr/bin/perl Makefile.PL LIB="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib" INSTALLMAN1DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man1" INSTALLMAN3DIR="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/man/man3" INSTALLBIN="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLSCRIPT="/home/sabhijit/Bugzilla/bugzilla-4.2.5/lib/bin" INSTALLDIRS=perl -- NOT OK
      Skipping test because of notest pragma
      Running make install
      Make had some problems, won't install
      [sabhijit@cr-beaodi-01 bugzilla-4.2.5]$



      I could not able to install DBD-mysql (v4.001) on it .


      Can anyone suggest what would be the solution ?

      Thanks a ton !!!
        • 1. Re: Facing issues in  Bugzilla 4.2 installalation
          Zoltan Kecskemethy
          Welcome to the forum,

          Why do you use tar.gz for perl and mysql?!

          I would suggest to use rpm packages instead.
          Setup yum and do install perl and mysql using that.
          e.g. yum install perl mysql
          You can install perl modules using
          e.g. yum install "perl(Chart::Lines)"

          HTH, Zoltan

          Edited by: Zoltan Kecskemethy on Mar 14, 2013 3:07 PM
          "Setup yuo and " typo fixed to "Setup yum and "
          • 2. Re: Facing issues in  Bugzilla 4.2 installalation
            Zoltan Kecskemethy
            See [url http://public-yum.oracle.com/]Public Yum Server page for more info how to setup yum...
            • 3. Re: Facing issues in  Bugzilla 4.2 installalation
              996872
              Thanks Zoltan for your reply.

              I initially tried with rpm packages and faced issues in mysql installation, so changed to .tar.gz package .
              But what's wrong with tar file ?

              Thanks in advance !
              • 4. Re: Facing issues in  Bugzilla 4.2 installalation
                Zoltan Kecskemethy
                Well you have to update the tar.gz installation manually while if you use the rpm binaries you can apply updates (<font color="red">security</font> and feature updates as well) automatically.
                Not to mention the most important fact: automatic dependency handling of yum package manager. E.g. if bugzilla package available the package manager will install all dependencies of it automatically!

                To see if bugzilla is avallable via yum do
                yum search bugzilla
                see details of search result lines:
                yum info bugzilla.noarch
                I can see Version : 3.2.10 is available in my Redhat 5.6

                As I searched the package you need at [url http://rpmfind.net]rpmfind.net it seems only Fedora has the latest bugzilla-4.2.5 package available in repo. Well this is not recommended but you can try to install that.
                At least it tries to installs dependencies and who knows it may work :)

                But if there is a package available in the distribution it is strongly recommended to use it if it has all features you need.

                What was your problem with the installation of the mysql and perl packages?
                • 5. Re: Facing issues in  Bugzilla 4.2 installalation
                  Catch_22
                  Oracle Linux 5.6 is too old for Bugzilla 4.2. You need a newer version of the Gnu C compiler (gcc). Try it under Oracle Linux 6.4 and it should work. You should also extract Bugzilla to the directory you plan to use for the URL, e.g. /var/www/html and not the users home directory. Details are in the installation documentation. Alternatively, enable the EPEL repository (http://fedoraproject.org/wiki/EPEL) and use the YUM utility to install Bugzilla 3.2.
                  • 6. Re: Facing issues in  Bugzilla 4.2 installalation
                    996872
                    Hi Dude!

                    Thanks for your reply .

                    It is not possible to upgrade the Linux version .
                    Is there any lower Bugzilla version which is Compartible to our envirnoment ?

                    Below is the installation directories.

                    Mysql - Installed in /home/sabhijit/mysql
                    Apache -Installed in /home/sabhijit/apache
                    Perl - Installed in /home/sabhijit/perl

                    I have installed the above as sabhijit user; not as root.
                    All are installed from tar.
                    I have tried to install DBD::mysql (4.001) .I kept it in the location /home/sabhijit/perl .
                    Also got error here as below :

                    *[sabhijit@cr-beaodi-01 DBD-mysql-4.022]$*
                    *[sabhijit@cr-beaodi-01 DBD-mysql-4.022]$ pwd*
                    */home/sabhijit/perl/DBD-mysql-4.022*
                    *[sabhijit@cr-beaodi-01 DBD-mysql-4.022]$ perl Makefile.PL*
                    Can't locate DBI/DBD.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Makefile.PL line 25.
                    *[sabhijit@cr-beaodi-01 DBD-mysql-4.022]$*


                    Its urgent !
                    Thanks in advance !
                    • 7. Re: Facing issues in  Bugzilla 4.2 installalation
                      Catch_22
                      It is not possible to upgrade the Linux version .
                      Is there any lower Bugzilla version which is Compartible to our envirnoment ?
                      Why is it not possible to upgrade the Linux version? Then I'm afraid there is probably no other solution then the alternative path I previously outlined.

                      Btw, urgent matters are usually being ignored and often perceived as inappropriate forum etiquette.