Thursday, September 1, 2011

Installing bugzilla on Debian

Download latest Bugzilla and unpack the archive in apache document root (or configure a virtualhost).

Pre-check in shell with command:

./ --check-modules

I get some missing modules:

niskia:/s/web/bugzilla# ./ --check-modules
* This is Bugzilla 4.0.2 on perl 5.10.0
* Running on Linux 2.6.26-2-686 #1 SMP Sat Jun 11 14:54:10 UTC 2011

Checking perl modules...
Checking for (v3.51) ok: found v3.55
Checking for Digest-SHA (any) ok: found v5.45
Checking for TimeDate (v2.21) ok: found v2.22
Checking for DateTime (v0.28) not found
Checking for DateTime-TimeZone (v0.71) not found
Checking for DBI (v1.41) ok: found v1.605
Checking for Template-Toolkit (v2.22) not found
Checking for Email-Send (v2.00) not found
Checking for Email-MIME (v1.904) not found
Checking for URI (any) ok: found v1.35
Checking for List-MoreUtils (v0.22) not found

Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.00) ok: found v4.007
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.427
Checking for libwww-perl (any) ok: found v5.813
Checking for XML-Twig (any) not found
Checking for PatchReader (v0.9.4) 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 (v0.712) not found
Checking for JSON-RPC (any) not found
Checking for JSON-XS (v2.0) not found
Checking for Test-Taint (any) not found
Checking for HTML-Parser (v3.40) ok: found v3.56
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 TheSchwartz (any) not found
Checking for Daemon-Generic (any) not found
Checking for mod_perl (v1.999022) ok: found v2.000004
Checking for Apache-SizeLimit (v0.93) not found
Checking for Math-Random-Secure (v0.05) not found
WARNING: We could not check the configuration of Apache. This sometimes
happens when you are not running as root. To see the
problem we ran into, run: /usr/sbin/apache2 -t -D DUMP_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. *
* See below for commands to install these 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. *
* 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 *
* PatchReader * Patch Viewer *
* perl-ldap * LDAP Authentication *
* Authen-SASL * SMTP Authentication *
* RadiusPerl * RADIUS Authentication *
* SOAP-Lite * XML-RPC Interface *
* JSON-RPC * JSON-RPC Interface *
* JSON-XS * Make JSON-RPC Faster *
* Test-Taint * JSON-RPC Interface, XML-RPC Interface *
* HTML-Scrubber * More HTML in Product/Group Descriptions *
* Email-MIME-Attachment-Stripper * Inbound Email *
* Email-Reply * Inbound Email *
* TheSchwartz * Mail Queueing *
* Daemon-Generic * Mail Queueing *
* Apache-SizeLimit * mod_perl *
* Math-Random-Secure * Improve cookie and token security *

GD: /usr/bin/perl GD
Chart: /usr/bin/perl Chart::Lines
Template-GD: /usr/bin/perl Template::Plugin::GD::Image
GDTextUtil: /usr/bin/perl GD::Text
GDGraph: /usr/bin/perl GD::Graph
XML-Twig: /usr/bin/perl XML::Twig
PatchReader: /usr/bin/perl PatchReader
perl-ldap: /usr/bin/perl Net::LDAP
Authen-SASL: /usr/bin/perl Authen::SASL
RadiusPerl: /usr/bin/perl Authen::Radius
SOAP-Lite: /usr/bin/perl SOAP::Lite
JSON-RPC: /usr/bin/perl JSON::RPC
JSON-XS: /usr/bin/perl JSON::XS
Test-Taint: /usr/bin/perl Test::Taint
HTML-Scrubber: /usr/bin/perl HTML::Scrubber
Email-MIME-Attachment-Stripper: /usr/bin/perl Email::MIME::Attachment::Stripper
Email-Reply: /usr/bin/perl Email::Reply
TheSchwartz: /usr/bin/perl TheSchwartz
Daemon-Generic: /usr/bin/perl Daemon::Generic
Apache-SizeLimit: /usr/bin/perl Apache2::SizeLimit
Math-Random-Secure: /usr/bin/perl Math::Random::Secure

COMMANDS TO INSTALL REQUIRED MODULES (You *must* run all these commands
and then re-run this script):

/usr/bin/perl DateTime
/usr/bin/perl DateTime::TimeZone
/usr/bin/perl Template
/usr/bin/perl Email::Send
/usr/bin/perl Email::MIME
/usr/bin/perl List::MoreUtils

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

/usr/bin/perl --all

*** Installation aborted. Read the messages above. ***


Installing some modules via apt-get:

apt-get install mysql-server \
libemail-send-perl libtemplate-perl libemail-mime-modifier-perl libtimedate-perl \
libhtml-scrubber-perl apache2 libapache2-mod-perl2 liblist-moreutils-perl \
libchart-perl libhtml-template-perl libtemplate-plugin-gd-perl libtheschwartz-perl \
libjson-rpc-perl libtest-taint-perl

If some modules are with lower versions that required, update them manually:

apt-get remove libtemplate-perl
/usr/bin/perl Template

There are currently no available deb packages for the following modules, so install them manually:

perl PatchReader
perl -MCPAN -e 'install "Email::MIME::Attachment::Stripper"'
perl -MCPAN -e 'install "Email::Reply"'
perl Daemon::Generic
perl Email::Reply

If some versions are not new enough, it is bad for you :( I upgraded my Debian to current testing version.

No comments:

Post a Comment