2010-02-11 (Thursday) 曇のち雨 安静時心拍数 59 [長年日記]
◆ [github][FreeBSD] update freebsdport-bugzilla-ja to 3.4.5
bugzilla-ja を 3.4.5 に更新しました。本家、FreeBSD ports treeへの更新は未だです。
# cd /usr/ports/japanese/bugzilla-ja
# make install clean
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4496
Server version: 5.0.89 FreeBSD port: mysql-server-5.0.89
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> grant select, insert, update, delete, index, alter, create, lock tables, create temporary tables, drop, references on bugs.* to bugs@localhost identified by 'bugzilla';
Query OK, 0 rows affected (0.05 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
mysql> exit
Bye
# cd /usr/local/www/data/bugzilla
# ./checksetup.pl
* This is Bugzilla 3.4.5 on perl 5.10.1
* Running on FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 21:11:58 UTC 2010 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
Checking perl modules...
Checking for CGI.pm (v3.33) ok: found v3.43
Checking for Digest-SHA (any) ok: found v5.48
Checking for TimeDate (v2.21) ok: found v2.24
Checking for DateTime (v0.28) ok: found v0.53
Checking for DateTime-TimeZone (v0.71) ok: found v1.10
Checking for DBI (v1.41) ok: found v1.609
Checking for Template-Toolkit (v2.22) ok: found v2.22
Checking for Email-Send (v2.00) ok: found v2.198
Checking for Email-MIME (v1.861) ok: found v1.903
Checking for Email-MIME-Encodings (v1.313) ok: found v1.313
Checking for Email-MIME-Modifier (v1.442) ok: found v1.903
Checking for URI (any) ok: found v1.52
Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.00) ok: found v4.013
Checking for DBD-Oracle (v1.19) not found
The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.44
Checking for Chart (v1.0) ok: found v2.4.1
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44_01
Checking for XML-Twig (any) ok: found v3.34
Checking for MIME-tools (v5.406) not found
Checking for libwww-perl (any) ok: found v5.834
Checking for PatchReader (v0.9.4) ok: found v0.9.5
Checking for PerlMagick (any) 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.710.06) not found
Checking for HTML-Parser (v3.40) ok: found v3.64
Checking for HTML-Scrubber (any) ok: found v0.08
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) not found
***********************************************************************
* 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. Below that table are the *
* commands to install each module. *
***********************************************************************
* MODULE NAME * ENABLES FEATURE(S) *
***********************************************************************
* MIME-tools * Move Bugs Between Installations *
* PerlMagick * Optionally Convert BMP Attachments to PNGs *
* perl-ldap * LDAP Authentication *
* Authen-SASL * SMTP Authentication *
* RadiusPerl * RADIUS Authentication *
* SOAP-Lite * XML-RPC Interface *
* Email-MIME-Attachment-Stripper * Inbound Email *
* Email-Reply * Inbound Email *
* TheSchwartz * Mail Queueing *
* Daemon-Generic * Mail Queueing *
* mod_perl * mod_perl *
***********************************************************************
COMMANDS TO INSTALL OPTIONAL MODULES:
MIME-tools: /usr/local/bin/perl install-module.pl MIME::Parser
PerlMagick: /usr/local/bin/perl install-module.pl Image::Magick
perl-ldap: /usr/local/bin/perl install-module.pl Net::LDAP
Authen-SASL: /usr/local/bin/perl install-module.pl Authen::SASL
RadiusPerl: /usr/local/bin/perl install-module.pl Authen::Radius
SOAP-Lite: /usr/local/bin/perl install-module.pl SOAP::Lite
Email-MIME-Attachment-Stripper: /usr/local/bin/perl install-module.pl Email::MIME::Attachment::Stripper
Email-Reply: /usr/local/bin/perl install-module.pl Email::Reply
TheSchwartz: /usr/local/bin/perl install-module.pl TheSchwartz
Daemon-Generic: /usr/local/bin/perl install-module.pl Daemon::Generic
mod_perl: /usr/local/bin/perl install-module.pl mod_perl2
To attempt an automatic install of every required and optional module
with one command, do:
/usr/local/bin/perl install-module.pl --all
Reading ./localconfig...
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: create_htaccess, webservergroup, db_driver, db_host, db_name, db_user, db_pass, db_port, db_sock, db_check, index_html, cvsbin, interdiffbin, diffpath, site_wide_secret
# cp -p localconfig{,.orig}
# vi localconfig
# diff -u localconfig{.orig,}
--- localconfig.orig 2010-02-11 10:25:47.000000000 +0900
+++ localconfig 2010-02-11 10:38:48.000000000 +0900
@@ -22,7 +22,7 @@
# and you cannot set this up any other way. YOU HAVE BEEN WARNED!
# If you set this to anything other than "", you will need to run checksetup.pl
# asroot, or as a user who is a member of the specified group.
-$webservergroup = 'apache';
+$webservergroup = 'www';
# What SQL database to use. Default is mysql. List of supported databases
# can be obtained by listing Bugzilla/DB directory - every module corresponds
@@ -43,7 +43,7 @@
# If you use apostrophe (') or a backslash (\) in your password, you'll
# need to escape it by preceding it with a '\' character. (\') or (\)
# (Far simpler just not to use those characters.)
-$db_pass = '';
+$db_pass = 'bugzilla';
# Sometimes the database server is running on a non-standard port. If that's
# the case for your database server, set this to the port number that your
# ./checksetup.pl
* This is Bugzilla 3.4.5 on perl 5.10.1
* Running on FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 21:11:58 UTC 2010 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
Checking perl modules...
Checking for CGI.pm (v3.33) ok: found v3.43
Checking for Digest-SHA (any) ok: found v5.48
Checking for TimeDate (v2.21) ok: found v2.24
Checking for DateTime (v0.28) ok: found v0.53
Checking for DateTime-TimeZone (v0.71) ok: found v1.10
Checking for DBI (v1.41) ok: found v1.609
Checking for Template-Toolkit (v2.22) ok: found v2.22
Checking for Email-Send (v2.00) ok: found v2.198
Checking for Email-MIME (v1.861) ok: found v1.903
Checking for Email-MIME-Encodings (v1.313) ok: found v1.313
Checking for Email-MIME-Modifier (v1.442) ok: found v1.903
Checking for URI (any) ok: found v1.52
Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.00) ok: found v4.013
Checking for DBD-Oracle (v1.19) not found
The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.44
Checking for Chart (v1.0) ok: found v2.4.1
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44_01
Checking for XML-Twig (any) ok: found v3.34
Checking for MIME-tools (v5.406) not found
Checking for libwww-perl (any) ok: found v5.834
Checking for PatchReader (v0.9.4) ok: found v0.9.5
Checking for PerlMagick (any) 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.710.06) not found
Checking for HTML-Parser (v3.40) ok: found v3.64
Checking for HTML-Scrubber (any) ok: found v0.08
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) not found
***********************************************************************
* 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. Below that table are the *
* commands to install each module. *
***********************************************************************
* MODULE NAME * ENABLES FEATURE(S) *
***********************************************************************
* MIME-tools * Move Bugs Between Installations *
* PerlMagick * Optionally Convert BMP Attachments to PNGs *
* perl-ldap * LDAP Authentication *
* Authen-SASL * SMTP Authentication *
* RadiusPerl * RADIUS Authentication *
* SOAP-Lite * XML-RPC Interface *
* Email-MIME-Attachment-Stripper * Inbound Email *
* Email-Reply * Inbound Email *
* TheSchwartz * Mail Queueing *
* Daemon-Generic * Mail Queueing *
* mod_perl * mod_perl *
***********************************************************************
COMMANDS TO INSTALL OPTIONAL MODULES:
MIME-tools: /usr/local/bin/perl install-module.pl MIME::Parser
PerlMagick: /usr/local/bin/perl install-module.pl Image::Magick
perl-ldap: /usr/local/bin/perl install-module.pl Net::LDAP
Authen-SASL: /usr/local/bin/perl install-module.pl Authen::SASL
RadiusPerl: /usr/local/bin/perl install-module.pl Authen::Radius
SOAP-Lite: /usr/local/bin/perl install-module.pl SOAP::Lite
Email-MIME-Attachment-Stripper: /usr/local/bin/perl install-module.pl Email::MIME::Attachment::Stripper
Email-Reply: /usr/local/bin/perl install-module.pl Email::Reply
TheSchwartz: /usr/local/bin/perl install-module.pl TheSchwartz
Daemon-Generic: /usr/local/bin/perl install-module.pl Daemon::Generic
mod_perl: /usr/local/bin/perl install-module.pl mod_perl2
To attempt an automatic install of every required and optional module
with one command, do:
/usr/local/bin/perl install-module.pl --all
Reading ./localconfig...
Checking for DBD-mysql (v4.00) ok: found v4.013
Checking for MySQL (v4.1.2) ok: found v5.0.89
WARNING: You need to set the max_allowed_packet parameter in your MySQL
configuration to at least 3276750. Currently it is set to 3275776.
You can set this parameter in the [mysqld] section of your MySQL
configuration file.
Creating ./data directory...
Creating ./data/attachments directory...
Creating ./data/duplicates directory...
Creating ./data/mining directory...
Creating ./data/webdot directory...
Creating ./extensions directory...
Creating ./skins/contrib/Dusk/yui directory...
Creating ./skins/custom directory...
Creating ./skins/custom/yui directory...
Creating graphs directory...
Creating ./data/mailer.testfile...
Creating ./skins/contrib/Dusk/IE-fixes.css...
Creating ./skins/contrib/Dusk/admin.css...
Creating ./skins/contrib/Dusk/create_attachment.css...
Creating ./skins/contrib/Dusk/dependency-tree.css...
Creating ./skins/contrib/Dusk/duplicates.css...
Creating ./skins/contrib/Dusk/editusers.css...
Creating ./skins/contrib/Dusk/help.css...
Creating ./skins/contrib/Dusk/panel.css...
Creating ./skins/contrib/Dusk/params.css...
Creating ./skins/contrib/Dusk/release-notes.css...
Creating ./skins/contrib/Dusk/show_bug.css...
Creating ./skins/contrib/Dusk/show_multiple.css...
Creating ./skins/contrib/Dusk/summarize-time.css...
Creating ./skins/contrib/Dusk/voting.css...
Creating ./skins/contrib/Dusk/yui/calendar.css...
Creating ./skins/custom/IE-fixes.css...
Creating ./skins/custom/admin.css...
Creating ./skins/custom/buglist.css...
Creating ./skins/custom/create_attachment.css...
Creating ./skins/custom/dependency-tree.css...
Creating ./skins/custom/duplicates.css...
Creating ./skins/custom/editusers.css...
Creating ./skins/custom/global.css...
Creating ./skins/custom/help.css...
Creating ./skins/custom/index.css...
Creating ./skins/custom/panel.css...
Creating ./skins/custom/params.css...
Creating ./skins/custom/release-notes.css...
Creating ./skins/custom/show_bug.css...
Creating ./skins/custom/show_multiple.css...
Creating ./skins/custom/summarize-time.css...
Creating ./skins/custom/voting.css...
Creating ./skins/custom/yui/calendar.css...
Creating ./Bugzilla/.htaccess...
Creating ./data/.htaccess...
Creating ./data/attachments/.htaccess...
Creating ./data/webdot/.htaccess...
Creating ./lib/.htaccess...
No such file or directory at Bugzilla/Install/Filesystem.pm line 485.
どうやら./libディレクトリがなくてエラーになっているようなので作成
# mkdir lib # ./checksetup.pl * This is Bugzilla 3.4.5 on perl 5.10.1 * Running on FreeBSD 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 21:11:58 UTC 2010 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC Checking perl modules... (snip) Creating ./lib/.htaccess... Creating ./template/.htaccess... Creating .htaccess... Creating contrib/.htaccess... No such file or directory at Bugzilla/Install/Filesystem.pm line 485.
同様にcontribも作成
# ./checksetup.pl (snip( Creating contrib/.htaccess... Creating t/.htaccess... No such file or directory at Bugzilla/Install/Filesystem.pm line 485.
tも作成
# mkdir t # ./checksetup.pl (snip) Creating t/.htaccess... Precompiling templates...done. Fixing file permissions... 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のセットアップ完了。あとは適当にhttpd.confを構成して、ブラウザでアクセスしてみます。
ブラウザの言語設定が日本語でないとデフォルトで英語版が表示されますが、
日本語に設定を変更すると日本語で表示されます。
[ツッコミを入れる]
[]


This Is(Jamiroquai)
お金とつきあう7つの原則(山崎 元)
経済予測脳で人生が変わる!―仕事も投資も成功できる「起こりえる未来」の読み方(中原 圭介)