
手順を以下に記します。
1.
http://www.bugzilla.org/ からソフトをダウンロードし、解凍します。
2.次のコマンドにより、設定します。
# ./checksetup.pl
するとモジュールが足りないなどとエラーが吐かれるので、モジュールをインストールします。
インストールしてもまだ見つからないとエラーが出るので調べると、Perl 5.10では動作しないようです。
Perl 5.10で動かす解決策:
# perl -MCPAN -e 'install "Bundle::Bugzilla"'
3.bugzilla/localconfigのDBの値を適宜変更します。
4.再度以下のコマンドを実行します。
# ./checksetup.pl
出力結果(例):
# ./checksetup.pl
* This is Bugzilla 3.0.4 on perl 5.10.0
* Running on Linux 2.6.25.10-86.fc9.x86_64 #1 SMP Mon Jul 7 20:23:46 EDT 2008
Checking perl modules...
Checking for CGI.pm (v3.33) ok: found v3.39
Checking for TimeDate (v2.21) ok: found v2.22
Checking for DBI (v1.41) ok: found v1.607
Checking for PathTools (v0.84) ok: found v3.2701
Checking for Template-Toolkit (v2.12) ok: found v2.19
Checking for Email-Send (v2.00) ok: found v2.192
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) ok: found v5.427
Checking for libwww-perl (any) ok: found v2.036
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) 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 mod_perl (v1.999022) ok: found v2.000003
* NOTE: You must run any commands listed below as root.
**********************************************************************
* 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) *
***********************************************************************
* GDGraph * Graphical Reports *
* GDTextUtil * Graphical Reports *
* Template-GD * Graphical Reports *
* GD * Graphical Reports, New Charts, Old Charts *
* Email-MIME-Attachment-Stripper * Inbound Email *
* Email-Reply * Inbound Email *
* perl-ldap * LDAP Authentication *
* HTML-Scrubber * More HTML in Product/Group Descriptions *
* XML-Twig * Move Bugs Between Installations *
* Chart * New Charts, Old Charts *
* PerlMagick * Optionally Convert BMP Attachments to PNGs *
* PatchReader * Patch Viewer *
* SOAP-Lite * XML-RPC Interface *
***********************************************************************
COMMANDS TO INSTALL:
GDGraph: /usr/bin/perl -MCPAN -e 'install "GD::Graph"'
GDTextUtil: /usr/bin/perl -MCPAN -e 'install "GD::Text"'
Template-GD: /usr/bin/perl -MCPAN -e 'install "Template::Plugin::GD::Image"'
GD: /usr/bin/perl -MCPAN -e 'install "GD"'
Email-MIME-Attachment-Stripper: /usr/bin/perl -MCPAN -e 'install "Email::MIME::Attachment::Stripper"'
Email-Reply: /usr/bin/perl -MCPAN -e 'install "Email::Reply"'
perl-ldap: /usr/bin/perl -MCPAN -e 'install "Net::LDAP"'
HTML-Scrubber: /usr/bin/perl -MCPAN -e 'install "HTML::Scrubber"'
XML-Twig: /usr/bin/perl -MCPAN -e 'install "XML::Twig"'
Chart: /usr/bin/perl -MCPAN -e 'install "Chart::Base"'
PerlMagick: /usr/bin/perl -MCPAN -e 'install "Image::Magick"'
PatchReader: /usr/bin/perl -MCPAN -e 'install "PatchReader"'
SOAP-Lite: /usr/bin/perl -MCPAN -e 'install "SOAP::Lite"'
Reading ./localconfig...
OPTIONAL NOTE: If you want to be able to use the 'difference between two
patches' feature of Bugzilla (which requires the PatchReader Perl module
as well), you should install patchutils from:
http://cyberelk.net/tim/patchutils/Checking for DBD-mysql (v2.9003) ok: found v4.005
Checking for MySQL (v4.1.2) ok: found v5.0.51a
Adding new table component_cc ...
Adding new table namedqueries_link_in_footer ...
Adding new table namedquery_group_map ...
Creating ./data directory...
Creating ./data/attachments directory...
Creating ./data/duplicates directory...
Creating ./data/mimedump-tmp directory...
Creating ./data/mining directory...
Creating ./data/webdot directory...
Creating ./extensions directory...
Creating graphs directory...
Creating skins/contrib directory...
Creating skins/custom directory...
Creating ./data/mail...
Creating ./Bugzilla/.htaccess...
Creating ./data/.htaccess...
Creating ./data/attachments/.htaccess...
Creating ./data/webdot/.htaccess...
Creating ./template/.htaccess...
Creating .htaccess...
Precompiling templates...
Fixing file permissions...
Adding new column 'type' to the 'fielddefs' table...
Adding new column 'custom' to the 'fielddefs' table...
Adding new column 'enter_bug' to the 'fielddefs' table...
Renaming column 'fielddefs.fieldid' to 'fielddefs.id'...
Updating column creator in table series ...
Old: mediumint NOT NULL
New: mediumint
Adding new column 'comment_id' to the 'longdescs' table...
Updating column id in table flags ...
Old: mediumint NOT NULL PRIMARY KEY
New: mediumint auto_increment NOT NULL PRIMARY KEY
Deleting the 'is_active' column from the 'flags' table...
Updating column short_desc in table bugs ...
Old: mediumtext NOT NULL
New: varchar(255) NOT NULL
Adding new column 'id' to the 'namedqueries' table...
Deleting the 'linkinfooter' column from the 'namedqueries' table...
Adding new column 'sortkey' to the 'classifications' table...
Adding new column 'disable_mail' to the 'profiles' table...
Updating column milestoneurl in table products ...
Old: tinytext NOT NULL
New: tinytext DEFAULT '' NOT NULL
Updating column disallownew in table products ...
Old: tinyint NOT NULL
New: tinyint DEFAULT 0 NOT NULL
Updating column votesperuser in table products ...
Old: smallint NOT NULL
New: smallint DEFAULT 0 NOT NULL
Updating column votestoconfirm in table products ...
Old: smallint NOT NULL
New: smallint DEFAULT 0 NOT NULL
Deleting the 'refreshed_when' column from the 'profiles' table...
Deleting the 'last_changed' column from the 'groups' table...
Updating column id in table flagtypes ...
Old: smallint NOT NULL PRIMARY KEY
New: smallint auto_increment NOT NULL PRIMARY KEY
Updating column id in table keyworddefs ...
Old: smallint NOT NULL PRIMARY KEY
New: smallint auto_increment NOT NULL PRIMARY KEY
Updating column userid in table tokens ...
Old: mediumint NOT NULL
New: mediumint
Removing index 'bugs_short_desc_idx' from the bugs table...
Updating column disabledtext in table profiles ...
Old: mediumtext NOT NULL
New: mediumtext DEFAULT '' NOT NULL
Updating column realname in table profiles ...
Old: varchar(255)
New: varchar(255) DEFAULT '' NOT NULL
Removing index 'longdescs_who_idx' from the longdescs table...
Adding new index 'longdescs_who_idx' to the longdescs table ...
Adding new column 'subclass' to the 'setting' table...
Updating column thetext in table longdescs ...
Old: mediumtext
New: mediumtext NOT NULL
Adding new column 'editcomponents' to the 'group_control_map' table...
Adding new column 'editbugs' to the 'group_control_map' table...
Adding new column 'canconfirm' to the 'group_control_map' table...
Adding new column 'type' to the 'longdescs' table...
Adding new column 'extra_data' to the 'longdescs' table...
Adding new column 'id' to the 'versions' table...
Adding new column 'id' to the 'milestones' table...
Adding a new user setting called 'skin'
Adding a new user setting called 'lang'
Adding a new user setting called 'zoom_textareas'
Adding a new user setting called 'state_addselfcc'
Now that you have installed Bugzilla, you should visit the
'Parameters' page (linked in the footer of the Administrator
account) to ensure it is set up as you wish - this includes
setting the 'urlbase' option to the correct URL.
以上で、Bugzillaにアクセスできます。問題なく過去のバグも表示できます。