<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello, I have been struggling with attempts to install RT3.8 via
    RPMs.   <br>
    <br>
    I know it is perfectly possible to install RT3.8 using the BP
    install scripts and docs, but I'd prefer to do it through yum for
    system sustainability, ease of updates and upgrades, etc.<br>
    <br>
    These instructions show how to set up a local repo and install RT
    from a bundle, but for version 3.6. 
    <blockquote>
      <p> <strong>Installing RT 3.6.6 on Redhat Enterprise 5.x (using
          yum to install from a bundle)</strong><br>
        <a href="http://wiki.bestpractical.com/view/Rhel5InstallGuide"
          title="http://wiki.bestpractical.com/view/Rhel5InstallGuide">http://wiki.bestpractical.com/view/Rhel5InstallGuide</a></p>
    </blockquote>
    <p> (keep this link, because it is hard to find and all of the
      sometimes contradictory RT docs look the same)</p>
    <p> However there is a similar bundle for 3.8.7, so maybe that would
      work. <br>
    </p>
    <p>According to the install doc, we install a host of services
      first:<br>
    </p>
    <pre>[root@testbench1]# yum -y update

[root@testbench1]# yum -y install httpd

[root@testbench1]# yum -y install mysql mysql-server sendmail-cf
</pre>
    <p> Start these services:</p>
    <pre>[root@testbench1]# service mysqld start
Starting MySQL:                                            [  OK  ]
[root@testbench1]# service httpd start
Starting httpd:                                            [  OK  ]
[root@testbench1]# chkconfig httpd on
[root@testbench1]# chkconfig mysqld on</pre>
    <p> The docs call for downloading this bundle: </p>
    <p class="rteindent1"> <span class="argument-content"><a class="moz-txt-link-freetext" href="http://www.jwhite3.com/files/rt/rt-3.6.6-bundle.tar.gz">http://www.jwhite3.com/files/rt/rt-3.6.6-bundle.tar.gz</a><br>
      </span></p>
    <p> <span class="argument-content">but we are going to be
        downloading the 3.8.7 bundle</span></p>
    <pre>[root@testbench1]# cd
[root@testbench1]# pwd
/root
[root@testbench1]# mkdir rt3
[root@testbench1]# cd rt3
[root@testbench1]# wget <a href="http://www.jwhite3.com/files/rt/rt_3.8.7_bundle.zip" title="http://www.jwhite3.com/files/rt/rt_3.8.7_bundle.zip">http://www.jwhite3.com/files/rt/rt_3.8.7_bundle.zip</a>
--2010-10-29 16:18:39--  <a href="http://www.jwhite3.com/files/rt/rt_3.8.7_bundle.zip" title="http://www.jwhite3.com/files/rt/rt_3.8.7_bundle.zip">http://www.jwhite3.com/files/rt/rt_3.8.7_bundle.zip</a>
Resolving <a href="http://www.jwhite3.com" title="www.jwhite3.com">www.jwhite3.com</a>... 97.74.144.177
Connecting to <a class="moz-txt-link-abbreviated" href="http://www.jwhite3.com">www.jwhite3.com</a>|97.74.144.177|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38577186 (37M) [application/zip]
Saving to: `rt_3.8.7_bundle.zip'

100%[============================================>] 38,577,186  4.87M/s   in 7.8s    

2010-10-29 16:18:47 (4.72 MB/s) - `rt_3.8.7_bundle.zip' saved [38577186/38577186]</pre>
    <p> Unpack:</p>
    <pre>[root@testbench1]# unzip rt_3.8.7_bundle.zip          
Archive:  rt_3.8.7_bundle.zip
  inflating: install.sh              
  inflating: Modules.tar.gz          
  inflating: rt-3.8.7.tar.gz         
  inflating: rt.repo                 
  inflating: rt_repo.tar.gz         
</pre>
    <p> set up yum repo file:</p>
    <pre>[root@testbench1]# ls
install.sh      rt_3.8.7_bundle.zip  rt.repo
Modules.tar.gz  rt-3.8.7.tar.gz      rt_repo.tar.gz

[root@testbench1]# cp rt.repo  /etc/yum.repos.d/

[root@testbench1]# vi /etc/yum.repos.d/rt.repo

[rt-387-local]
name=Request Tracker - $basearch
baseurl=<a class="moz-txt-link-freetext" href="file://opt/rt_repo/$basearch/">file://opt/rt_repo/$basearch/</a>
enabled=1
gpgcheck=0

[rt-387-noarch-local]
name=Request Tracker - noarch
baseurl=<a class="moz-txt-link-freetext" href="file://opt/rt_repo/noarch/">file://opt/rt_repo/noarch/</a>
enabled=1
gpgcheck=0</pre>
    <p> Unpack the distro part and move it over to /opt where the yum
      file expected it:<br>
    </p>
    <pre>[root@testbench1]# tar xfz rt_repo.tar.gz

[root@testbench1]# mv rt_repo /opt
[root@testbench1]# ls /opt/rt_repo/
i386  noarch  x86_64</pre>
    <p> Okay, let's see if that works:<br>
    </p>
    <pre>[root@testbench1]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything

[root@testbench1]# yum list rt3
Loaded plugins: rhnplugin, security
adobe-linux-i386                                               |  951 B     00:00     
adobe-linux-i386/primary                                       |  12 kB     00:00     
adobe-linux-i386                                                                18/18
rhel-i386-server-5                                             | 1.4 kB     00:00     
rhel-i386-server-5/primary                                     | 3.0 MB     00:00     
rhel-i386-server-5                                                          7696/7696
rhel-i386-server-vt-5                                          | 1.4 kB     00:00     
rhel-i386-server-vt-5/primary                                  |  41 kB     00:00     
rhel-i386-server-vt-5                                                         198/198
rhn-tools-rhel-i386-server-5                                   | 1.3 kB     00:00     
rhn-tools-rhel-i386-server-5/primary                           |  38 kB     00:00     
rhn-tools-rhel-i386-server-5                                                  457/457
<a href="http://opt/rt_repo/i386/repodata/repomd.xml:" title="//opt/rt_repo/i386/repodata/repomd.xml:">file://opt/rt_repo/i386/repodata/repomd.xml:</a> [Errno 5] OSError: [Errno 2] No such file or directory: '/rt_repo/i386/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rt-387-local. Please verify its path and try again</pre>
    <p> No clue what this means.  I checked the yum locations.  I
      checked the xml metadata.  Couldn't see where this bad path was
      coming from.</p>
    Any suggestions for resolving this?<br>
    <br>
    If I can't resolve this, I will just forget about RT3.8 and stick
    with RT3.6 of which there is a well-behaved RPM already in the EPEL
    repo. <br>
    <br>
    Wes<br>
  </body>
</html>