Bugzillaインストール

./checksetup.plの実行で「Template-Toolkit」が非検出

Templateモジュールのインストールを実行

/usr/bin/perl install-module.pl Template

makeでエラー

gcc -c -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" Stash.c
/bin/sh: gcc: command not found
make[1]: *** [Stash.o] エラー 127
make[1]: ディレクトリ `/root/.cpan/build/Template-Toolkit-2.22/xs' から出ます
make: *** [subdirs] エラー 2
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
[root@test bugzilla]#

gccが入っているか確認すると、どうも入ってないらしい。。

[root@test bugzilla]# gcc -v

gccをインストールする。

yum -y install gcc

gccが正しくインストールされたか確認

[root@test bugzilla]# gcc -v
Using built-in specs.
Target: i386-redhat-linux
コンフィグオプション: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
スレッドモデル: posix
gcc バージョン 4.1.2 20080704 (Red Hat 4.1.2-44)
[root@test bugzilla]#

Templateモジュールのインストールを再度実行

/usr/bin/perl install-module.pl Template

Templateモジュールが正しくインストールされたので、./checksetup.plを再実行。

./checksetup.pl

./testserver.plを実行する。httpdが起動していること!

[root@test bugzilla]# ./testserver.pl http://192.168.84.103/bugzilla
Use of uninitialized value in pattern match (m//) at ./testserver.pl line 66.
Use of uninitialized value in getgrnam at ./testserver.pl line 69.
Use of uninitialized value in string eq at ./testserver.pl line 74.
WARNING $webservergroup is set to an empty string.
That is a very insecure practice. Please refer to the
Bugzilla documentation.
TEST-OK Got front picture.
Use of uninitialized value in pattern match (m//) at ./testserver.pl line 110.
Use of uninitialized value in pattern match (m//) at ./testserver.pl line 110.
TEST-FAILED Webserver is not executing CGI files.
TEST-OK Webserver is preventing fetch of http://192.168.84.103/bugzilla/localconfig.
[root@test bugzilla]#

テスト結果を見ると、1つの警告と1つの失敗が出ている。
1番目の警告は、webservergroupが設定されていないこと。
1番目の失敗は、CGIが実行できるようにApacheが構成されていないこと。

/etc/httpd/conf.d/bugzilla.confを編集する。


AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit

Apache再起動後、http://192.168.84.103/bugzilla/にアクセスしてもHTTPレスポンス500で画面が表示されない。Apacheのログを確認すると、

[Fri Aug 21 20:17:43 2009] [error] [client 192.168.84.112] [Fri Aug 21 20:17:43 2009] inde
x.cgi: The ./data/params file does not exist. You probably need to run checksetup.pl. at B
ugzilla/Config.pm line 333.
[Fri Aug 21 20:17:43 2009] [error] [client 192.168.84.112] [Fri Aug 21 20:17:43 2009] inde
x.cgi: Compilation failed in require at /var/www/html/bugzilla/index.cgi line 34.
[Fri Aug 21 20:17:43 2009] [error] [client 192.168.84.112] [Fri Aug 21 20:17:43 2009] inde
x.cgi: BEGIN failed--compilation aborted at /var/www/html/bugzilla/index.cgi line 34.

うーん。。

最初の./checksetup.plの実行で、/bar/www/html/bugzillaの下にlocalconfigっていうMySQLへの接続情報とかを持つファイルが作成されるはず、また作成のための入力を聞かれるはず、なのに聞かれない。
localconfigを自前で作成する?

[Fri Aug 21 23:02:35 2009] [error] [client 192.168.84.112] [Fri Aug 21 23:02:35 2009] index.cgi: The ./data/params file does not exist. You probably need to run checksetup.pl. at Bugzilla/Config.pm line 333.

Configuring DBD::Pg 2.15.1
Path to pg_config?

Bugzillaを3.4に変えて、./checksetup.plを実行するも、ファイルの取得でエラー。。

Please check, if the URLs I found in your configuration file
(ftp://ftp.dti.ad.jp/pub/lang/CPAN/) are valid. The urllist can be edited.
E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch authors/id/A/AD/ADIE/Test-Exception-0.27.tar.gz
Giving up on '/root/.cpan/source/authors/id/A/AD/ADIE/Test-Exception-0.27.tar.gz'
Note: Current database in memory was generated on Thu, 20 Aug 2009 05:27:06 GMT