Continue [Section 5]
5. Install Perl modules
5.1 Execute the bugzilla checksetup.pl
You can run the checksetup.pl program as many times as you like until you’ve verified all the required perl modules are installed.
# cd /var/www/html/bugzilla-3.2.5
[@more@]# ./checksetup.pl --check-modules
* This is Bugzilla 3.2.5 on perl 5.8.5
* Running on Linux 2.6.9-78.EL #1 Thu Jul 24 23:46:01 EDT 2008
Checking perl modules...
Checking for CGI.pm (v3.21) found v3.05
Checking for TimeDate (v2.21) not found
Checking for PathTools (v0.84) ok: found v0.87
Checking for DBI (v1.41) not found
Checking for Template-Toolkit (v2.15) not found
Checking for Email-Send (v2.00) not found
Checking for Email-MIME (v1.861) not found
Checking for Email-MIME-Encodings (v1.313) not found
Checking for Email-MIME-Modifier (v1.442) not found
Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.00) not found
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) ok: found v3.13
Checking for MIME-tools (v5.406) not found
Checking for libwww-perl (any) ok: found v2.031
Checking for PatchReader (v0.9.4) not found
Checking for PerlMagick (any) not found
Checking for perl-ldap (any) ok: found v0.31
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) ok: found v3.55
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) not found
***********************************************************************
* 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
/usr/bin/perl install-module.pl Date::Format
/usr/bin/perl install-module.pl DBI
/usr/bin/perl install-module.pl Template
/usr/bin/perl install-module.pl Email::Send
/usr/bin/perl install-module.pl Email::MIME
/usr/bin/perl install-module.pl Email::MIME::Encodings
/usr/bin/perl install-module.pl Email::MIME::Modifier
***********************************************************************
* DATABASE ACCESS *
***********************************************************************
* In order to access your database, Bugzilla requires that the *
* correct "DBD" module be installed for the database that you are *
* running. *
* *
* Pick and run the correct command below for the database that you *
* plan to use with Bugzilla. *
***********************************************************************
COMMANDS:
PostgreSQL: /usr/bin/perl install-module.pl DBD::Pg
Minimum version required: 1.45
MySQL: /usr/bin/perl install-module.pl DBD::mysql
Minimum version required: 4.00
Oracle: /usr/bin/perl install-module.pl DBD::Oracle
Minimum version required: 1.19
**********************************************************************
* 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 *
* MIME-tools * Move Bugs Between Installations *
* PatchReader * Patch Viewer *
* PerlMagick * Optionally Convert BMP Attachments to PNGs *
* Authen-SASL * SMTP Authentication *
* RadiusPerl * RADIUS Authentication *
* SOAP-Lite * XML-RPC Interface *
* HTML-Scrubber * More HTML in Product/Group Descriptions *
* Email-MIME-Attachment-Stripper * Inbound Email *
* Email-Reply * Inbound Email *
* mod_perl * mod_perl *
***********************************************************************
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
MIME-tools: /usr/bin/perl install-module.pl MIME::Parser
PatchReader: /usr/bin/perl install-module.pl PatchReader
PerlMagick: /usr/bin/perl install-module.pl Image::Magick
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-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
mod_perl: /usr/bin/perl install-module.pl mod_perl2
To attempt an automatic install of every required and optional module
with one command, do:
/usr/bin/perl install-module.pl --all
5.2 Execute bugzilla install-module.pl
# /usr/bin/perl install-module.pl --all
* Note: If you upgrade your CPAN module, installs will be faster.
* You can upgrade CPAN by doing: /usr/bin/perl install-module.pl CPAN
CPAN: Storable loaded ok
Fetching with LWP:
http://perl.secsup.org/authors/01mailrc.txt.gz
LWP failed with code[500] message[Can't connect to perl.secsup.org:80 (connect: timeout)]
Fetching with LWP:
http://cpan.pair.com/authors/01mailrc.txt.gz
Also,You can use CPAN to install perl module as follows:
# perl -MCPAN -e shell #intall perl module,it need inital at the first time
cpan > m #list modules
cpan > install "Bundle::Bugzilla" #install bugzilla related modules
Or, you can install single module as follows:
#perl -MCPAN -e 'install "Template"'
#perl -MCPAN -e 'install "Date::Format"'
But if it cannot connect internet,so I need to download all related bugzilla perl modules.
First, Download perl modules from http://www.cpan.org/modules/01modules.index.html
Then, upzip and tar these modues, as tar command don't have batch optionl, we can use following shell scripts:
# for tar in *.tar.gz;do tar zxvf $tar;done
# cd CGI.pm-3.49
# perl Makefile.PL
# make
# make test
# make install
If install failed,please refer to README doc,and refer the display log;
If "# perl Makefile.PL" display some other modules need install first,you should download and install first.
For example, if some error display as follows:
[root@centos Email-Send-2.198]# perl Makefile.PL
Warning: prerequisite Module::Pluggable 2.97 not found.
Warning: prerequisite Return::Value 1.28 not found.
Writing Makefile for Email::Send
Then you can install "Module-Pluggable","Return-Value" modules first.
For example, if some error display as follows:
[root@centos PerlMagick-6.59]# perl Makefile.PL
Note (probably harmless): No library found for -lMagickCore
Note (probably harmless): No library found for -lperl
Then you need download lib "lMagickCore","lperl" to install.
The module DBD-Oracle show problem as follows:
[oracle@centos DBD-Oracle-1.24]$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01base................# Test loading DBI, DBD::Oracle and version
t/01base................ok
t/10general.............Can't locate object method "no_diag" via package "Test::Builder" at t/nchar_test_lib.pl line 53.
Compilation failed in require at t/10general.t line 12.
# Looks like your test died before it could output anything.
t/10general.............dubious
Test returned status 9 (wstat 2304, 0x900)
t/12impdata.............Can't locate object method "no_diag" via package "Test::Builder" at t/nchar_test_lib.pl line 53.
Compilation failed in require at t/12impdata.t line 27.
# Looks like your test died before it could output anything.
t/12impdata.............dubious
Test returned status 9 (wstat 2304, 0x900)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
But the log in "# perl Makefile.PL" process, there is not any error hint about Modules.
And The module "Test::Builder" has been installed.
Then
# perldoc Test::Builder
I cannot find the method "no_diag",but I find the method "no_diag" exist in lastest version of package "Test-Simple-0.94".
so I download the lastest stable package "Test-Simple-0.94" for "Test::Builder" module.
[root@centos Test-Simple-0.94]# perl Makefile.PL
NOTE: There have been API changes between this version and any older
than version 0.48! Please see the Changes file for details.
NOTE: The behavior of Test::More and threads has changed between this
version and any older than version 0.48! Please see the Changes file
for details.
Checking if your kit is complete...
Looks good
Writing Makefile for Test::Simple
From above log, We can know the former version of "Test::Builder" module is 0.48.
Finnally,I re-install the module "DBD-Oracle-1.24",
# make test --pass
# make install -- successful
It must install all required perl module!
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12472709/viewspace-1036194/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12472709/viewspace-1036194/