LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing bugzilla (http://www.linuxquestions.org/questions/linux-newbie-8/installing-bugzilla-729328/)

fizeelinux 05-29-2009 09:35 AM

Installing bugzilla
 
Hi all,

I am new to linux so kindly help me in a beginner fashion.I am trying to install bugzilla in centos 5.3 machine.I installed the packages and also checked by running the script checksetup.pl.It is showing ok found as you can see below.

#./checksetup.pl
* This is Bugzilla 3.2.3 on perl 5.8.8
* Running on Linux 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009

Checking perl modules...
Checking for CGI.pm (v3.21) ok: found v3.34
Checking for TimeDate (v2.21) ok: found v2.22
Checking for PathTools (v0.84) ok: found v3.12
Checking for DBI (v1.41) ok: found v1.52
Checking for Template-Toolkit (v2.15) ok: found v2.20
Checking for Email-Send (v2.00) ok: found v2.194
Checking for Email-MIME (v1.861) ok: found v1.863
Checking for Email-MIME-Modifier (v1.442) ok: found v1.444

Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.00) found v3.0007
Checking for DBD-Oracle (v1.19) not found


I have ensured that all the modules are installed .I used cpan to install the perl modules.


And my Apache configuration are as follows

<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>


now when i try to open the link http://localhost/bugzilla/ in the browser i am getting this error.Kindly help me in this

Software error:

The ./data/params file does not exist. You probably need to run checksetup.pl. at Bugzilla/Config.pm line 333.
Compilation failed in require at /var/www/html/bugzilla/index.cgi line 34.
BEGIN failed--compilation aborted at /var/www/html/bugzilla/index.cgi line 34.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.


Thanks in advance

blacky_5251 05-29-2009 06:59 PM

Is this a live machine or are you starting out from scratch with a brand new machine. If this is a new system, then I respectfully suggest you start again. Using CPAN to install perl modules can lead you into dependency hell, and using "yum" is a better method.

You can install Bugzilla from the atrpms-stable repository (see CentOS for more info).

As an admitted newbie, "yum install bugzilla" should give you a better result.

fizeelinux 06-02-2009 12:01 AM

Quote:

Originally Posted by blacky_5251 (Post 3557078)
Is this a live machine or are you starting out from scratch with a brand new machine. If this is a new system, then I respectfully suggest you start again. Using CPAN to install perl modules can lead you into dependency hell, and using "yum" is a better method.

You can install Bugzilla from the atrpms-stable repository (see CentOS for more info).

As an admitted newbie, "yum install bugzilla" should give you a better result.

Thanks Blacky.I tried downloading all the perl rpms from the site you mentioned.Still error is the same.I am going to format the system and try again.Have you deployed bugzilla in centos?

blacky_5251 06-02-2009 12:19 AM

I have Bugzilla deployed on Fedora, but when I read your post and started researching the solution I did deploy it using RPMs on a CentOS 5.3 server. Here's what happened...

1. You must have atrpms repo enabled in your yum config files. Visit the CentOS site for info about achieving this.
2. "yum install bugzilla" found a lot of dependency errors, and crashed on perl-DBD-Oracle. So this method of install won't work just yet. This is a known error (atrpms are aware of it) and they provided the following work around.
3. Install all of the other dependencies using yum. I did this by cutting and pasting the output from "yum install bugzilla" into a text editor and removed everything that wasn't a package name. I also removed bugzilla and perl-DBD-Oracle. I was left with a very long "yum install" command that downloaded and installed everything I needed for bugzilla - except the package itself and the Oracle package.
4. To test this, next re-run "yum install bugzilla" and it should fail again, but this time only perl-DBD-Oracle should be listed as a missing dependency.
5. Visit the atrpms website and download the bugzilla RPM from their site. Then use "rpm -Uvh bugzilla-3.2.3-29.noarch.rpm --nodeps" to force the installation, ignoring the dependency errors. You can't force yum to ignore missing dependencies, but you can force the rpm program to ignore them.

This resulted in the package being installed, along with all the necessary dependencies being installed "properly" by yum (i.e. as packages rather than via CPAN - which is the main reason I'm doing it this way).

I needed to edit the bugzilla.conf file in /etc/httpd/conf.d, and you might need to do the same. This is now getting into configuring Apache though, rather than Bugzilla itself.

Read the doc in /usr/share/bugzilla and follow the steps to create the database etc.

The checksetup.pl script worked OK after all that and I could load bugzilla in my web-browser.

To be honest, if this is just for Bugzilla you might be better off with a Fedora based machine.

fizeelinux 06-02-2009 06:30 AM

Quote:

Originally Posted by blacky_5251 (Post 3559897)
I have Bugzilla deployed on Fedora, but when I read your post and started researching the solution I did deploy it using RPMs on a CentOS 5.3 server. Here's what happened...

1. You must have atrpms repo enabled in your yum config files. Visit the CentOS site for info about achieving this.
2. "yum install bugzilla" found a lot of dependency errors, and crashed on perl-DBD-Oracle. So this method of install won't work just yet. This is a known error (atrpms are aware of it) and they provided the following work around.
3. Install all of the other dependencies using yum. I did this by cutting and pasting the output from "yum install bugzilla" into a text editor and removed everything that wasn't a package name. I also removed bugzilla and perl-DBD-Oracle. I was left with a very long "yum install" command that downloaded and installed everything I needed for bugzilla - except the package itself and the Oracle package.
4. To test this, next re-run "yum install bugzilla" and it should fail again, but this time only perl-DBD-Oracle should be listed as a missing dependency.
5. Visit the atrpms website and download the bugzilla RPM from their site. Then use "rpm -Uvh bugzilla-3.2.3-29.noarch.rpm --nodeps" to force the installation, ignoring the dependency errors. You can't force yum to ignore missing dependencies, but you can force the rpm program to ignore them.

This resulted in the package being installed, along with all the necessary dependencies being installed "properly" by yum (i.e. as packages rather than via CPAN - which is the main reason I'm doing it this way).

I needed to edit the bugzilla.conf file in /etc/httpd/conf.d, and you might need to do the same. This is now getting into configuring Apache though, rather than Bugzilla itself.

Read the doc in /usr/share/bugzilla and follow the steps to create the database etc.

The checksetup.pl script worked OK after all that and I could load bugzilla in my web-browser.

To be honest, if this is just for Bugzilla you might be better off with a Fedora based machine.

Thanks blacky i did the steps what you have done.The only thing i didnt do is trying to install bugzilla with 'rpm' command iwth no deps.Okay once again thank you so much for assisting me in this.I shall try it in fedora 9.I didn't find most of the perl rpm's required for bugzilla installation in atrpms.net can i install Redhat el5 rpms for bugzilla installation in fedora 9 or can you suggest me some fedora 9 stable repository web links.And one last request.I found DBD:Oracle as one of the dependencies.I am going to use mysql as my backend server .What is the need for DBD:Oracle.Do you have any documentation for bugzilla in fedora 9.Thanks .

fizeelinux 06-02-2009 10:30 AM

Quote:

Originally Posted by fizeelinux (Post 3560203)
Thanks blacky i did the steps what you have done.The only thing i didnt do is trying to install bugzilla with 'rpm' command iwth no deps.Okay once again thank you so much for assisting me in this.I shall try it in fedora 9.I didn't find most of the perl rpm's required for bugzilla installation in atrpms.net can i install Redhat el5 rpms for bugzilla installation in fedora 9 or can you suggest me some fedora 9 stable repository web links.And one last request.I found DBD:Oracle as one of the dependencies.I am going to use mysql as my backend server .What is the need for DBD:Oracle.Do you have any documentation for bugzilla in fedora 9.Thanks .


I followed this link and

http://northsirius.spaces.live.com/b...13A3!142.entry

Till step 5 i followed as it is mentioned in the site procedure and i created the database named bugs and user bugs using webmin .Then i run ./checksetup.pl..But i was unable to find the localconfig file..My result for ./checksetup is as follows


./checksetup.pl
* This is Bugzilla 3.2.3 on perl 5.10.0
* Running on Linux 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008

Checking perl modules...
Checking for CGI.pm (v3.33) found v3.29
Checking for TimeDate (v2.21) ok: found v2.22
Checking for PathTools (v0.84) ok: found v3.2501
Checking for DBI (v1.41) ok: found v1.601
Checking for Template-Toolkit (v2.15) ok: found v2.20
Checking for Email-Send (v2.00) ok: found v2.194
Checking for Email-MIME (v1.861) ok: found v1.863
Checking for Email-MIME-Modifier (v1.442) ok: found v1.444

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

The following Perl modules are optional:
Checking for GD (v1.20) not found
Checking for Chart (v1.0) not found
Checking for Template-GD (any) not found
Checking for GDTextUtil (any) not found
Checking for GDGraph (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 Authen-SASL (any) not found
Checking for RadiusPerl (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) ok: found v2.000003
***********************************************************************
* REQUIRED MODULES *
***********************************************************************
* Bugzilla requires you to install some Perl modules which are either *
* missing from your system, or the version on your system is too old. *
* *
* The latest versions of each module can be installed by running the *
* commands below. *
***********************************************************************
COMMANDS:

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

**********************************************************************
* 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. If you want to install *
* one of these modules, just run the appropriate command in the *
* "COMMANDS TO INSTALL" section. *
**********************************************************************

***********************************************************************
* 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 *
* MIME-tools * Move Bugs Between Installations *
* libwww-perl * Automatic Update Notifications *
* PatchReader * Patch Viewer *
* PerlMagick * Optionally Convert BMP Attachments to PNGs *
* perl-ldap * LDAP Authentication *
* Authen-SASL * SMTP Authentication *
* RadiusPerl * RADIUS Authentication *
* SOAP-Lite * XML-RPC Interface *
* HTML-Parser * More HTML in Product/Group Descriptions *
* HTML-Scrubber * More HTML in Product/Group Descriptions *
* Email-MIME-Attachment-Stripper * Inbound Email *
* Email-Reply * Inbound Email *
***********************************************************************
COMMANDS TO INSTALL:

GD: /usr/bin/perl install-module.pl GD
Chart: /usr/bin/perl install-module.pl Chart::Base
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
MIME-tools: /usr/bin/perl install-module.pl MIME::Parser
libwww-perl: /usr/bin/perl install-module.pl LWP::UserAgent
PatchReader: /usr/bin/perl install-module.pl PatchReader
PerlMagick: /usr/bin/perl install-module.pl Image::Magick
perl-ldap: /usr/bin/perl install-module.pl Net::LDAP
Authen-SASL: /usr/bin/perl install-module.pl Authen::SASL
RadiusPerl: /usr/bin/perl install-module.pl Authen::Radius
SOAP-Lite: /usr/bin/perl install-module.pl SOAP::Lite
HTML-Parser: /usr/bin/perl install-module.pl HTML::Parser
HTML-Scrubber: /usr/bin/perl install-module.pl HTML::Scrubber
Email-MIME-Attachment-Stripper: /usr/bin/perl install-module.pl Email::MIME::Attachment::Stripper
Email-Reply: /usr/bin/perl install-module.pl Email::Reply

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

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

blacky_5251 06-02-2009 06:44 PM

Why don't you do "yum install bugzilla" on Fedora?

Your localconfig file is probably in /var/www/html/bugzilla/ now, but if you installed using yum it would probably be in /usr/share/bugzilla.

fizeelinux 06-03-2009 08:51 AM

Quote:

Originally Posted by blacky_5251 (Post 3560924)
Why don't you do "yum install bugzilla" on Fedora?

Your localconfig file is probably in /var/www/html/bugzilla/ now, but if you installed using yum it would probably be in /usr/share/bugzilla.

Thanks blacky.I have installed bugzilla and found it installed in /usr/share/bugzilla/. then i run ./checksetup.pl and got the following message.

[root@bugs bugzilla]# ./checksetup.pl
* This is Bugzilla 3.2.3 on perl 5.10.0
* Running on Linux 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008

Checking perl modules...
Checking for CGI.pm (v3.33) found v3.29
Checking for TimeDate (v2.21) ok: found v2.22
Checking for PathTools (v0.84) ok: found v3.2501
Checking for DBI (v1.41) ok: found v1.601
Checking for Template-Toolkit (v2.15) ok: found v2.20
Checking for Email-Send (v2.00) ok: found v2.194
Checking for Email-MIME (v1.861) ok: found v1.863
Checking for Email-MIME-Modifier (v1.442) ok: found v1.444

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

The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.35
Checking for Chart (v1.0) ok: found v2.4.1
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.32
Checking for MIME-tools (v5.406) ok: found v5.426
Checking for libwww-perl (any) ok: found v2.036
Checking for PatchReader (v0.9.4) ok: found v0.9.5
Checking for PerlMagick (any) ok: found v6.3.8
Checking for perl-ldap (any) ok: found v0.34
Checking for Authen-SASL (any) ok: found v2.10
Checking for RadiusPerl (any) ok: found v0.13
Checking for SOAP-Lite (any) ok: found v0.710.07
Checking for HTML-Parser (v3.40) ok: found v3.56
Checking for HTML-Scrubber (any) ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for mod_perl (v1.999022) ok: found v2.000003
***********************************************************************
* REQUIRED MODULES *
***********************************************************************
* Bugzilla requires you to install some Perl modules which are either *
* missing from your system, or the version on your system is too old. *
* *
* The latest versions of each module can be installed by running the *
* commands below. *
***********************************************************************
COMMANDS:

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


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

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

You can see my cgi is not upto the version required.Will there be any problem?
What is the configuration i need to do in apache file so as to view bugzilla.thanks

blacky_5251 06-06-2009 01:19 AM

Sorry for the delay, it has taken me a while to get a clean Fedora 10 install and attempt a fresh bugzilla install on it. I installed Fedora with appropriate servers (mail, web, mysql) and then ran "yum install bugzilla". This installed all the Perl modules required, so it was easy. You need to create the bugs user in the MySQL system, with appropriate permissions (e.g. create and drop tables, view etc.).

Any errors I encountered when running ./checksetup.pl from /usr/share/bugzilla were easily identified and corrected (e.g. wrong password for user "bugs" in /etc/bugzilla/localconfig).

So all I can say is using "yum" to install bugzilla was a fairly painless exercise for me. Can you please outline all the steps you've taken to get to where you are?


All times are GMT -5. The time now is 02:39 AM.