BUG管理工具

上一篇 / 下一篇  2011-08-20 18:06:28 / 个人分类:Bugzilla

Bugzilla安装方法

Windows下安装Bugzilla

第一步:Bugzilla

下载并安装Bugzilla

下载Bugzillahttp://bugzilla.org/download.html

本文是以Bugzilla2.20版本为例子进行安装,同时可以在网站上找到相应的汉化包,感谢汉化作者为我们提供的方便与支持。

下载解压缩到C:\Bugzilla,保证Bugzilla文件放在C:\Bugzilla文件夹下,避免解压时生成多余的文件夹。

第二步:MySQL

下载MySQL 4.1.x

下载MySQL "Windows Essentials"版本:http://dev.mysql.com/downloads/mysql/4.1.html

不推荐使用MySQL 5.x

安装

可以选择典型(Typial)安装MySQL,笔者安装时选择的自定义安装,并将安装目录设置为:C:\mysql

创建Bugs数据库和用户

使用mysql命令行创建,打开开始菜单-运行,输入cmd,打开命令行窗口进入C:\mysql\bin>


 

需要输入的蓝字命令如下:

C:\mysql\bin>mysql --user=root-p mysql

Enter password:********(随意密码)

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 15 to server version:4.0.20a-debug

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>create database bugs;

Query OK, 1 row affected (0.11 sec)

mysql>grant all privileges on bugs.* to 'bugs'@'localhost' identified by 'shorelew';

Query OK, 0 rows affected (0.03 sec)

mysql>flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql>set password for 'bugs'@'localhost' = OLD_PASSWORD('shorelew');

Query OK, 0 rows affected (0.00 sec)

mysql>quit

Bye

C:\mysql\bin>

 

 

第三步:ActiveState Perl

下载ActiveState Perl5.8.1或更高的版本

下载ActiveStatePerl5.8.1或更高的版本:http://activestate.com/Products/Download/Download.plex?id=ActivePerl

安装Perl

ActiveState Perl安装到C:\Perl

创建Temp目录

创建C:\Temp目录确保系统在访问时进行更改。

安装Modules

Bugzilla需要安装一些perl模块,请确保你的计算机能连接到internet,所有需要模块都在http://landfill.bugzilla.org/ppm/

进入DOS命令行按如下蓝字操作,在安装到Template-Toolkit时注意按提示填写完成的安装路径。

C:\>ppm

PPM - Programmer's Package Manager version 3.1.

Copyright (c) 2001 ActiveState Corp. All Rights Reserved.

ActiveState is a devision of Sophos.

Entering interactive shell. Using Term::ReadLine::Stub as readline library.

Type 'help' to get started.

ppm> rep add Bugzilla http://landfill.bugzilla.org/ppm

Repositories:

[1] ActiveState PPM2 Repository

[2] ActiveState Package Repository

[3] Bugzilla

查找到以下文件包,并添加到安装中,按向右的剑头进行安装。

ppm> installAppConfig

====================

Install 'AppConfig' version1.52 inActivePerl5.8.7.813.

====================

Downloaded 50508 bytes.

...

Successfully installed AppConfig version1.52 inActivePerl5.8.7.813.

ppm> installTimeDate

====================

Install 'TimeDate' version1.16 inActivePerl5.8.7.813.

====================

Downloaded 19235 bytes.

...

Successfully installed TimeDate version1.16 inActivePerl5.8.7.813.

ppm> installDBI

====================

Install 'DBI' version1.43 inActivePerl5.8.7.813.

====================

Downloaded 508164 bytes.

...

Successfully installed DBI version1.43 inActivePerl5.8.7.813.

ppm> installDBD-mysql

====================

Install 'DBD-mysql' version2.9002 inActivePerl5.8.7.813.

====================

Downloaded 178803 bytes.

...

Successfully installed DBD-mysql version2.9002 inActivePerl5.8.7.813.

ppm> installTemplate-Toolkit

====================

Install 'Template-Toolkit' version2.13 inActivePerl5.8.7.813.

====================

Downloaded 530770 bytes.

...

Successfully installed Template-Toolkit version2.13 inActivePerl5.8.7.813.

ppm> installMailTools

====================

Install 'MailTools' version1.67 inActivePerl5.8.7.813.

====================

Downloaded 46881 bytes.

...

Successfully installed MailTools version1.67 inActivePerl5.8.7.813.

ppm> installGD

====================

Install 'GD' version2.07 inActivePerl5.8.7.813.

====================

Downloaded 363039 bytes.

...

Successfully installed GD version2.07 inActivePerl5.8.7.813.

ppm> installChart

====================

Install 'Chart' version2.3 inActivePerl5.8.7.813.

====================

Downloaded 58641 bytes.

...

Successfully installed Chart version2.3 inActivePerl5.8.7.813.

ppm> installGDGraph

====================

Install 'GDTextUtil' version0.86 inActivePerl5.8.7.813.

====================

Downloaded 19178 bytes.

...

Successfully installed GDTextUtil version0.86 inActivePerl5.8.7.813.

====================

Install 'GDGraph' version1.43 inActivePerl5.8.7.813.

====================

Downloaded 71764 bytes.

...

Successfully installed GDGraph version1.43 inActivePerl5.8.7.813.

ppm> installPatchReader

====================

Install 'PatchReader' version0.9.4in ActivePerl 5.8.7.813.

====================

Downloaded 9558 bytes.

...

Successfully installed PatchReader version0.9.4in ActivePerl 5.8.7.813.

ppm> install Net::LDAP

====================

Install 'Convert-ASN1' version0.19 inActivePerl5.8.7.813.

====================

Downloaded 26326 bytes.

...

 

Successfully installed Convert-ASN1 version0.19 inActivePerl5.8.7.813.

====================

Install 'perl-ldap' version0.33 inActivePerl5.8.7.813.

====================

Downloaded 188548 bytes.

...

Successfully installed perl-ldap version0.33 inActivePerl5.8.7.813.

====================

Install 'Net-LDAP-Express' version0.11 inActivePerl5.8.7.813.

====================

Downloaded 7693 bytes.

...

Successfully installed Net-LDAP-Express version0.11 inActivePerl5.8.7.813.

ppm>

第四步:配置Bugzilla

checksetup.pl

如下在命令行中操作,将自动创建localconfig文件。

C:\>cd bugzilla

C:\bugzilla>perl checksetup.pl

Checking perl modules ...

Checking for AppConfig (v1.52) ok: found v1.55

Checking for CGI (v2.93) ok: found v3.10

Checking for Data::Dumper (any) ok: found v2.121_04

Checking for Date::Format (v2.21) ok: found v2.22

Checking for DBI (v1.38) ok: found v1.48

Checking for File::Spec (v0.84) ok: found v3.05

Checking for File::Temp (any) ok: found v0.16

Checking for Template (v2.08) ok: found v2.13

Checking for Text::Wrap (v2001.0131) ok: found v2001.09293

Checking for Mail::Mailer (v1.65) ok: found v1.67

Checking for Storable (any) ok: found v2.13

 

The following Perl modules are optional:

Checking for GD (v1.20) ok: found v2.16

Checking for Chart::Base (v1.0) ok: found v2.3

Checking for XML::Parser (any) ok: found v2.34

Checking for GD::Graph (any) ok: found v1.43

Checking for GD::Text::Align (any) ok: found v1.18

Checking for PatchReader (v0.9.4) ok: found v0.9.5

Most ActivePerl modules are available at Apache's ppm repository.

A list of mirrors is available at

http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/

You can add the repository with the following command:

ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/

Checking user setup ...

This version of Bugzilla contains some variables that you may want

to change and adapt to your local settings. Please edit the file

'./localconfig' and rerun checksetup.pl

The following variables are new to localconfig since you last ran

checksetup.pl: index_html cvsbin interdiffbin diffpath create_htaccess

webservergroup db_driver db_host db_pass db_sock db_check

C:\bugzilla>

编辑localconfig

打开C:\Bugzilla\localconfig找到上一个步骤创建的localconfig5kb)文件用记事本编辑它,内容如下,请对照是否有蓝字所标出的内容,如没有显示如下内容请在localconfig文件中修改。

#

# How to access the SQL database:

#

$db_host = "localhost"; # where is the database?

$db_port = 3306; # which port to use

$db_name = "bugs"; # name of the MySQL database

$db_user = "bugs"; # user to attach to the MySQL database

#

# Enter your database password here. It's normally advisable to specify

 

# a password for your bugzilla database user.

# If you use apostrophe (') or a backslash (\) in your password, you'll

# need to escape it by preceding it with a \ character. (\') or (\\)

#

$db_pass = 'shorelew';

TAG:

 

评分:0

我来说两句

日历

« 2024-04-19  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 6394
  • 日志数: 3
  • 建立时间: 2010-11-13
  • 更新时间: 2012-02-26

RSS订阅

Open Toolbar