[RT3] Request Tracker のインストール

これはあとでもう一度まとめ直す・・。もっと簡単な方法があることに気がついた。

ダウンロード

Download RT – RT: Request Tracker – Best Practical

# wget http://download.bestpractical.com/pub/rt/release/rt.tar.gz

[[email protected] ~]# tar xzf rt.tar.gz
[[email protected] ~]# cd rt-3.8.8

スポンサードリンク

インストール(1)

※tar ball から rpm にできないか試したが、うまく行かなかった。

[[email protected] rt-3.8.8]# make testdeps

/usr/bin/perl ./sbin/rt-test-dependencies –verbose –with-mysql –with-fastcgi
perl:
>=5.8.3(5.8.8) …found
users:
rt group (www) …MISSING
bin owner (root) …found
libs owner (root) …found
libs group (bin) …found
web owner (www) …MISSING
web group (www) …MISSING
CLI dependencies:
Term::ReadKey …MISSING


Email::Address …MISSING
make: *** [testdeps] エラー 1

****  Installation failed. Aborting package creation.
Cleaning up…OK
Bye.

MISSING を埋めていく

以下の手順(例)を繰り返し、MISSING を埋めていく。

[[email protected] rt-3.8.8]# perl -e -MCPAN ‘install Email::Address’
[[email protected] rt-3.8.8]# perl -MCPAN -e ‘install Module::Install::TestTarget, Module::Install::AuthorTests, Module::Install::XSUtil, Test::Exception::LessClever’;
[[email protected] rt-3.8.8]# make testdeps
GPG missing dependencies:
GnuPG::Interface …MISSING

※特に「GnuPG::Interface」「Any::Moose」(Archive::Tarも?)関連は一筋縄では行かず、周りを固める。

モジュールが揃った

[[email protected] rt-3.8.8]# make testdeps
/usr/bin/perl ./sbin/rt-test-dependencies –verbose –with-mysql –with-fastcgi
perl:
>=5.8.3(5.8.8) …found
users:
rt group (www) …MISSING
bin owner (root) …found
libs owner (root) …found
libs group (bin) …found
web owner (www) …MISSING
web group (www) …MISSING



All dependencies have been found.

→ユーザとグループを追加

[[email protected] rt-3.8.8]# groupadd www
[[email protected] rt-3.8.8]# useradd www -g www

→モジュールの組み込み

[[email protected] mod_fastcgi-2.4.6]# make top_dir=/usr/lib/httpd
Makefile:12: /usr/lib/httpd/build/special.mk: そのようなファイルやディレクトリはありません
make: *** ターゲット `/usr/lib/httpd/build/special.mk’ を make するルールがありません.  中止.

↓ httpd-devel 忘れていた

[[email protected] mod_fastcgi-2.4.6]# yum install httpd-devel

↓ もう一度

[[email protected] mod_fastcgi-2.4.6]# make top_dir=/usr/lib/httpd
/usr/lib/apr-1/build/libtool –silent –mode=compile gcc -pthread  -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 -fno-strict-aliasing  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE    -I/usr/include/httpd -I. -I/usr/include/apr-1 -I/usr/kerberos/include -prefer-pic -c mod_fastcgi.c && touch mod_fastcgi.slo



fcgi_config.c:967: warning: format ‘%ld’ expects type ‘long int’, but argument 3 has type ‘uid_t’
/usr/lib/apr-1/build/libtool –silent –mode=link gcc -pthread  -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 -fno-strict-aliasing     -Wl,-z,relro   -o mod_fastcgi.la -rpath /usr/lib/httpd/modules -module -avoid-version mod_fastcgi.lo fcgi_pm.lo fcgi_util.lo fcgi_protocol.lo fcgi_buf.lo fcgi_config.lo

[[email protected] mod_fastcgi-2.4.6]# make top_dir=/usr/lib/httpd install
make[1]: ディレクトリ `/root/mod_fastcgi-2.4.6′ に入ります
/usr/lib/apr-1/build/libtool –silent –mode=install cp mod_fastcgi.la /usr/lib/httpd/modules/
make[1]: ディレクトリ `/root/mod_fastcgi-2.4.6′ から出ます

インストール(2)

[[email protected] rt-3.8.8]# make install
/usr/bin/perl ./sbin/rt-test-dependencies –verbose –with-mysql –with-fastcgi
perl:
>=5.8.3(5.8.8) …found
users:
rt group (www) …found
bin owner (root) …found
libs owner (root) …found
libs group (bin) …found
web owner (www) …found
web group (www) …found



HTTP::Server::Simple::Mason >= 0.09 …found

All dependencies have been found.
/opt/local/bin/ginstall -c -m 0755 -o root -g www -d
/opt/rt3/etcmake: /opt/local/bin/ginstall: コマンドが見つかりませんでした
make: *** [config-install] エラー 127

↓ ginstallにも、ずいぶん苦労した

[[email protected] rt-3.8.8]# ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking for gawk… gawk
checking for perl… /usr/bin/perl
checking for chosen layout… relative
checking if user www exists… not found
checking if user www-data exists… not found
checking if user apache exists… found
checking if group www exists… not found
checking if group www-data exists… not found
checking if group apache exists… found
checking if group rt3 exists… not found
checking if group rt exists… not found
checking if group apache exists… found
checking if database name is valid… yes
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: in `/root/rt-3.8.8′:
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.

不足しているものに対処する。

↓makeできた

[[email protected] rt-3.8.8]# make
Please read RT’s README before beginning your installation.

[[email protected] rt-3.8.8]# ./configure
checking for a BSD-compatible install… /usr/bin/install -c


config.status: creating t/data/configs/apache2.2+fastcgi.conf

[[email protected] rt-3.8.8]# make install
/usr/bin/perl ./sbin/rt-test-dependencies –verbose –with-mysql –with-fastcgi
perl:
>=5.8.3(5.8.8) …found
users:
rt group (rt) …found
bin owner (root) …found
libs owner (root) …found
libs group (bin) …found
web owner (www) …found
web group (www) …found


HTTP::Server::Simple::Mason >= 0.09 …found

All dependencies have been found.
/usr/bin/install -c -m 0755 -o root -g rt -d /opt/rt3/etc
/usr/bin/install -c -m 0440 -o root -g rt  etc/RT_Config.pm /opt/rt3/etc/RT_Config.pm
[ -f /opt/rt3/etc/RT_SiteConfig.pm ] || /usr/bin/install -c -m 0640 -o root -g rt etc/RT_SiteConfig.pm /opt/rt3/etc/RT_SiteConfig.pm
Installed configuration. About to install RT in  /opt/rt3
/usr/bin/install -c -m 0755 -d /opt/rt3/var/log


chmod 0440 /opt/rt3/etc/RT_Config.pm
chmod 0640 /opt/rt3/etc/RT_SiteConfig.pm


/opt/rt3/var/session_data
Congratulations. RT is now installed.

You must now configure RT by editing /opt/rt3/etc/RT_SiteConfig.pm.

(You will definitely need to set RT’s database password in
/opt/rt3/etc/RT_SiteConfig.pm before continuing. Not doing so could be
very dangerous.  Note that you do not have to manually add a
database user or set up a database for RT.  These actions will be
taken care of in the next step.)

After that, you need to initialize RT’s database by running
‘make initialize-database’

ダウンロード

参考文献

  • Old Nabble – Request Tracker – User – GnuPG Interface Mouse and Moose – Missing dependencies
  • Request Tracker Installation on CentOS 5 / RHEL 5 – Pavel Titov’s Blog

コメント