From Request Tracker Wiki
Jump to navigation Jump to search

Unofficial Installation Guide

This is an unofficial installation guide. It may be outdated or apply only to very specific configurations and versions. The official and maintained installation steps for RT are in the README and UPGRADING documents included in the official .tar.gz packages.

This page 'OpenSuSE101InstallGuide' is tagged as OUTDATED
This page contains out of date and possibly misleading information or instructions such as installation methods or configuration examples that no longer apply. Please consider this warning when reading the page below.
If you have checked or updated this page and found the content to be suitable, please remove this notice by editing the page and remove the Outdated template tag.

This is not so much an install guide as a number of diary entries along a journey which is not at present completed. Any suggestions email me gobnat at optusnet dot com dot au.

The long and the short of it is that the installer fails miserably and you need to use perl/cpan, but even then you get stuck on two things - WWW::Mechanize and Test::WWW::Mechanize. I have eventually decided to force install WWW::Mechanize, which fixes Test::WWW::Mechanize.

[Note by Tom Davey, Sept. 8 2007: I had none of the installation troubles that user "gobnat" narrates on this page. My install of RT 3.6.4 on OpenSuSE 10.1 proceeded painlessly. The distro via YAST failed to provide only a very few required Perl modules, which I hand-installed from CPAN without trouble. Please don't be automatically dissuaded from trying RT with OpenSuSE 10.1 based only on gobnat's experience. TD 9/8/2007]

I don't know who wrote this but you can install everything with Yast2 GUI and no PackMan (Has many pre-release/rc/beta packages -- please dont use PackMan in a production environment). Don't like using the discs setup the online repo. Every mirror has the packages.

There doesn't seem to be a package for apache-mod-fastcgi in any of the repositories, so use apache2-mod_fcgid instead - no, in fact, don't use mod_fcgid because it doesn't work either. Revert to mod_perl.

1. Install smart, configure

yum install smart
smart channel --add suse-update type=rpm-md name="suse-update" baseurl=
smart channel --add packman type=rpm-md name="packman" baseurl=
smart update

2. Install packages

smart install apache2
smart install mysql
smart install perl
smart install ncftp  - needed by rt - however smart fails, so you need to: yum install ncftp
smart install mysql-max - gives innodb support
smart install fastcgi
yum install gd-devel

2A Start services

/sbin/service mysql start
/sbin/service apache2 start

3. Run ./configure

4. Run make testdeps

make testdeps

Oh my, everything fails

5. Run make fixdeps

make fixdeps

Install Script falls over - no CPAN

perl -MCPAN -e shell

This configures some stuff and sets up CPAN within perl - config proposes defaults


6. Fixdeps again

make fixdeps

For pity's sake it fails again.

blah blah blah...

Removing previously used /root/.cpan/build/happens_for_each_and_every_module
 Can't remove file /root/.cpan/build/happens_for_each_and_every_module (No such file or directory) at /usr/lib/perl5/5.8.8/ line xxxx
 ==> Couldn't move 'happens_for_each_and_every_module' to '/root/.cpan/build/happens_for_each_and_every_module': Is a directory
 ==> Cannot continue: Please find the reason why I cannot move     <==
 ==> /root/.cpan/build/tmp/happens_for_each_and_every_module       <==
 ==> to                                                            <==
 ==> /root/.cpan/build/happens_for_each_and_every_module           <==
 ==> and fix the problem, then retry                               <==
 Failed to load module CPAN.

7. Fiddle faddle around trying to work this out

It's no use.

8. Fixdeps

make fixdeps

Same old same old. Can't get it up with CPAN.

9. Bugger the script install from CPAN

make testdeps | grep MISSING

cut and paste this list into your favourite text editor, then run them together with spaces separating them.

/usr/bin/perl -MCPAN -e shell

install <cut and paste edited list from above into here, half a dozen or so at a time>

hit return when it asks to prepend other dependent packages to the installation

This very time consuming practice will get practically every perl dependency installed, with the exception of WWW::Mechanize and Test::WWW::Mechanize To get the Apache package to install don't run the optional tests.

For those nothing seems to work and neither of these modules seem to be part of any SuSE yum or smart repository. Relevant output for (WWW::Mechanize):

Blah blah blah
 #   Failed test '404 check'
 #   in t/local/back.t at line 148.
 #          got: '500'
 #     expected: '404'
 # Looks like you failed 1 test of 38.
        Test returned status 1 (wstat 256, 0x100)
 DIED. FAILED test 28
        Failed 1/38 tests, 97.37% okay
 blah blah blah
        all skipped: Mysteriously stopped passing, and I don't know why.
 blah blah blah
 Failed Test    Stat Wstat Total Fail  Failed  List of Failed
 t/local/back.t    1   256    38    1   2.63%  28
 4 tests skipped.
 Failed 1/40 test scripts, 97.50% okay. 1/483 subtests failed, 99.79% okay.
 make: *** [test_dynamic] Error 255
   /usr/bin/make test -- NOT OK
 Running make install
  make test had returned bad status, won't install without force
 Failed during this command:
  PETDANCE/WWW-Mechanize-1.18.tar.gz           : make_test NO

10. Ok I give up

cpan> force install WWW::Mechanize

It's installed. It is also the reason for failure of Test::WWW::Mechanize.

cpan> install Test::WWW::Mechanize

Installs without issue.

11. Back to rt

make install

Ok that was easy

12. Apache2, MySQL

RT is installed, but it doesn't yet work with Apache2 (between step 11 and step 12 was a week or so of fiddling) - need to install mod_perl and ensure that mysql is working properly. Exactly what I did here I can't remember. :( All I remember is that I needed to kill mod_fcgid because I couldn't get it to work, and install apache2-mod_perl (and perl-DBD-mysql) I had to make dropdb make initialize-db a couple of times before it worked. The code also had an error so I had to chmod g+w one /opt/rt3/var/mason_data/obj/. After that it worked (hurrah!). At first login user=root password=password.

13. From here fail over to the details in the RHEL installation guide for configuration.