Linux下bugzilla安装指南

蒋胜凡广博天下客 2007-11-01

在Linux下安装bugzilla有以下几个过程:

1.首先安装mysql
我安装的是mysql5.0
关于mysql5.0的rpm包网上有很多,主要安装
MySQL-shared-compat-5.0.24a-0.rhel4.i386.rpm
MySQL-devel-standard-5.0.24a-0.rhel4.i386.rpm
MySQL-server-standard-5.0.24a-0.rhel4.i386.rpm
客户端要安装的话就安装下面两个
MySQL-client-standard-5.0.24a-0.rhel4.i386.rpm
MySQL-test-standard-5.0.24a-0.rhel4.i386.rpm
一般都会遇到socket(2)问题
解决方法如下:
先看看自己的linux系统有没有设置selinux
修改 /etc/selinux/config
SELINUXTYPE=disabled
然后 看看自己安装的mysql目录是不是属于mysql用户和组
如果不是就
chown -R /var/lib/mysql
2.Apache的安装,非常简单
从网上下载rpm 包,直接安装。如果本身系统自带,就不必安装
一般会遇到的问题:
端口被占用或者打不开网页
解决方法:
修改httpd.conf
Listen 8089
端口号可以任意更改
然后检查自己的系统是不是开启了防火墙,如果开启,关闭即可
3.bugzilla的安装,去bugzilla的官方网站可以下载
我下载的是bugzilla-2.20.2.tar
接下来解压
tar -xcvf bugzilla-2.20.2.tar
解压后 进入 解压的目录
cd /bugzilla-2.20.2
执行
./checksetup.pl
会检查bugzilla的哪些模块还没有安装
Checking perl modules ...
Checking for       AppConfig (v1.52)    not found
Checking for             CGI (v2.93)    not found
Checking for    Data::Dumper (any)     ok: found v2.12
Checking for    Date::Format (v2.21)    not found
Checking for             DBI (v1.38)   ok: found v1.601
Checking for      File::Spec (v0.84)    found v0.83
Checking for      File::Temp (any)     ok: found v0.13
Checking for        Template (v2.08)    not found
Checking for      Text::Wrap (v2001.0131) ok: found v2001.0929
Checking for    Mail::Mailer (v1.65)    not found
Checking for        Storable (any)     ok: found v2.06

The following Perl modules are optional:
Checking for              GD (v1.20)    not found
Checking for     Chart::Base (v1.0)     not found
Checking for     XML::Parser (any)     ok: found v2.31
Checking for       GD::Graph (any)      not found
Checking for GD::Text::Align (any)      not found
Checking for     PatchReader (v0.9.4)   not found

If you you want to see graphical bug charts (plotting historical data over
time), you should install libgd and the following Perl modules:

GD:          /usr/bin/perl -MCPAN -e 'install "GD"'
Chart:       /usr/bin/perl -MCPAN -e 'install "Chart::Base"'

If you you want to see graphical bug reports (bar, pie and line charts of
current data), you should install libgd and the following Perl modules:

GD:              /usr/bin/perl -MCPAN -e 'install "GD"'
GD::Graph:       /usr/bin/perl -MCPAN -e 'install "GD::Graph"'
GD::Text::Align: /usr/bin/perl -MCPAN -e 'install "GD::Text::Align"'

If you want to see pretty HTML views of patches, you should install the
PatchReader module:
PatchReader: /usr/bin/perl -MCPAN -e 'install "PatchReader"'


Bugzilla requires some Perl modules which are either missing from
your system, or the version on your system is too old.
They can be installed by running (as root) the following:
   /usr/bin/perl -MCPAN -e 'install "Mail::Mailer"'
   Minimum version required: 1.65
   /usr/bin/perl -MCPAN -e 'install "File::Spec"'
   Minimum version required: 0.84
   /usr/bin/perl -MCPAN -e 'install "AppConfig"'
   Minimum version required: 1.52
   /usr/bin/perl -MCPAN -e 'install "Template"'
   Minimum version required: 2.08
   /usr/bin/perl -MCPAN -e 'install "Date::Format"'
   Minimum version required: 2.21
   /usr/bin/perl -MCPAN -e 'install "CGI"'
   Minimum version required: 2.93


发现有很多包都没有安装
接下来就按照它的提示在线安装
perl -MCPAN -e 'install "GD"'
perl -MCPAN -e 'install "Chart::Base"'
。。。。。。。。。。。。。。。

相关推荐