Hi,<br><br>After redoing the installation steps the "cpan" part became quite a bit bigger lol I never imagined that I did that much but heres a list of all the manual installations that I've made using cpan.<br>
<br>I also forgot to make a link for apache from sites-available to sites-enabled, but I hope most of you know that part already.<br><br>Anyways, here's the part that you do just after ./configure.<br><br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
First install a few extra packages: (needed for the GD perl module)<br></blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><div> </div>
</blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">    aptitude install libgd2-xpm libgd2-xpm-dev<br></blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
<div> </div></blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">Now first run cpan in order to configure it:<br></blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
<br>    cpan<br><br>Do the automatic thingy, after that you'll have to edit the cpan config in order to make the next part a hell of allot easyer:<br><br>    nano -w /etc/perl/CPAN/Config.pm<br><br>Inside the config there are two "ask" parameters, remove the ask part and make sure it only contains "yes".<br>
I'm doing this because the following steps are going to install allot of perl modules and hitting return every minute or so is just too annoying.<br><br>Then, check what dependencies your missing, this is CPAN based:<br>
<br>    make testdeps<br><br>Make sure this var is set, make fixdeps won't work without it:<br><br>    RT_FIX_DEPS_CMD='/usr/bin/perl -MCPAN -e"install %s"'<br>    export RT_FIX_DEPS_CMD<br><br>Now install all the depencencies by using the fixdeps parameter, this runs via CPAN:<br>
<br>    make fixdeps<br><br>* The fixdeps part will take a while and you might have to run it several times. (sometimes you still have to hit yes or enter)<br><br>To finalize fixdeps you'll have to install allot of stuff manually, below is a list of the things I've installed that made me pass the testdeps:<br>
<br>    cpan YAML<br>    cpan CPAN::Shell<br>    cpan YAML::Syck<br>    cpan GD<br>    cpan CPAN::DistnameInfo<br>  <br>    make fixdeps<br><br>    cpan Class::Data::Inheritable<br>    cpan Exception::Class<br>    cpan Log::Any<br>
    cpan Test::Tester<br>    cpan Test::NoWarnings<br>    cpan Test::Deep<br>    cpan HTTP::Body<br>    cpan Devel::StackTrace::AsHTML<br>    cpan Test::SharedFork<br>    cpan Filesys::Notify::Simple<br>    cpan Test::Requires<br>
    cpan Try::Tiny<br>    cpan Hash::MultiValue<br>    cpan Test::TCP<br>    cpan Class::Inspector<br>    cpan File::ShareDir<br>    cpan Plack<br><br>    make fixdeps<br>    <br>    cpan Class::Accessor::Chained<br>    cpan Text::vFile::asData<br>
    cpan Tree::DAG_Node<br>    cpan Sub::Uplevel<br>    cpan Test::Warn<br>    cpan Test::LongString<br>    cpan Data::ICal<br>    <br>    make fixdeps<br>    <br>    cpan List::UtilsBy<br>    cpan Convert::Color    <br>    cpan Mouse<br>
    cpan Any::Moose<br>    cpan GnuPG::Interface<br>    <br>    make fixdeps<br><br>    cpan Digest::SHA1<br>    cpan Error<br>    cpan Cache::Cache<br>    cpan Module::Metadata<br>    cpan JSON::PP<br>    cpan Version::Requirements<br>
    cpan CPAN::Meta::YAML<br>    cpan Perl::OSType<br>    cpan Parse::CPAN::Meta<br>    cpan CPAN::Meta<br>    cpan Module::Build<br>    cpan Params::Validate<br>    cpan Class::Container<br>    cpan HTML::Mason<br>    cpan HTML::Mason::PSGIHandler<br>
<br>    make fixdeps<br>    <br>    cpan Proc::Wait3<br>    cpan Scope::Guard<br>    cpan Server::Starter<br>    cpan Class::Accessor::Lite<br>    cpan Parallel::Prefork<br>    cpan Plack::Handler::Starlet<br>    <br>    make fixdeps<br>
    <br>    cpan Class::Singleton<br>    cpan Test::Fatal<br>    cpan Class::Load<br>    cpan DateTime::TimeZone<br>    cpan Test::Exception<br>    cpan Math::Round<br>    cpan DateTime<br><br>    make fixdeps<br>    <br>
    cpan Params::Util<br>    cpan Sub::Install<br>    cpan Data::OptList<br>    cpan Sub::Exporter<br>    cpan Devel::GlobalDestruction<br><br>    make fixdeps<br>    <br>    cpan Text::Reform<br>    cpan Text::Autoformat<br>
    cpan Text::Quoted<br><br>    make fixdeps<br>    <br>    cpan FreezeThaw<br>    cpan DBIx::DBSchema<br>    cpan Want<br>    cpan DBD::SQLite<br>    cpan Clone<br>    cpan capitalization<br>    cpan DBIx::SearchBuilder<br>
    cpan DateTime::Format::W3CDTF<br>    cpan Test::Manifest<br>    cpan DateTime::Format::Mail<br>    cpan XML::Parser<br>    cpan XML::RSS<br><br>    make fixdeps<br></blockquote><div><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">
<br></blockquote><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">Before going further run "make testdeps" to check if all dependencies are met. <br>
</blockquote></div><br>After this you continue with make install and such. (assuming all dependencies have been met).<br><br>It's quite a bit of work but luckily you'll only have to struggle with this once (I hope!!!!)<br>
<br clear="all">Best regards,<br><br>Bart<br><br>
<br><br><div class="gmail_quote">2011/6/6 Bart <span dir="ltr"><<a href="mailto:bart@pleh.info">bart@pleh.info</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>This topic might have been closed but I just want to reply with my Debian Squeeze installation steps.<br><br>The steps are basically describing the installation from scratch while installing RT4 manually. The advantage here is that you can follow the RT releases instead of waiting for the Debian specific packages. (personally I think that's ok)<br>

<br><b>------------------------ BEGIN INSTALLATION STEPS ------------------------</b><br><br>Clean installation of Debian Squeeze, this means:<br><ul><li>Only install the base system (nothing else)</li><li>Make sure that things like networking work (DNS, IP, etc.)<br>

</li></ul>After installation install the following basics:<br><br>    aptitude update<br>    aptitude full-upgrade<br>    aptitude install ntp ntpdate sudo screen openssh-server acpi-support acpid<br><br>I don't know why but I like doing these separate:<br>

<br>    aptitude install build-essential<br>    aptitude install linux-headers-`uname -r`<br><br>Edit the sources.lst<br><br>    nano -w /etc/apt/sources.lst<br>    <br>Add "contrib non-free", not really requirered but sometimes you need items from those two sections. (I'm lazy and just add them to make sure that I don't bite my nails when I really need them).<br>

Then update the apt library:<br><br>    aptitude update<br><br>Create the .ssh directory and extra files for when you use things like SSH (I do):<br><br>    cd /root/<br>    mkdir .ssh<br>    chmod 700 .ssh<br>    touch .ssh/authorized_keys<br>

    chmod 600 .ssh/authorized_keys<br><br>Up to this point you've only installed the base Debian system. The next parts are specific for RT.<br><br>Requirered packages for RT4:<br><br>    aptitude install apache2 mysql-server gcc make gawk libexpat1-dev libapache2-mod-perl2<br>

<br>Check if Apache is running:<br><br>    wget --spider localhost<br><br>Download RT and unpack it:<br><br>    cd /tmp<br>    wget <a href="http://download.bestpractical.com/pub//rt/release/rt-4.0.0.tar.gz" target="_blank">http://download.bestpractical.com/pub//rt/release/rt-4.0.0.tar.gz</a><br>

    tar xvzf rt-4.0.0.tar.gz<br>    cd /tmp/rt-4.0.0<br>    ./configure<br><br>Now first run cpan in order to configure it:<br><br>    cpan<br><br>Do the automatic thingy, after that you'll have to edit the cpan config in order to make the next part a hell of allot easyer:<br>

<br>    nano -w /etc/perl/CPAN/Config.pm<br><br>Inside the config there are two "ask" parameters, remove the ask part and make sure it only contains "yes".<br>I'm doing this because the following steps are going to install allot of perl modules and hitting return every minute or so is just too annoying.<br>

<br>Then, check what dependencies your missing, this is CPAN based:<br><br>    make testdeps<br><br>Now install all the depencencies by using the fixdeps parameter, this runs via CPAN:<br><br>    make fixdeps<br><br>The fixdeps part will take a while and you might have to run it several times. You might even have to manually install a few of those dependencies (not too difficult).<br>

After a while you'll be done, the next thing you could do is upgrade all perl modules from within CPAN (optional since RT met it's requirements).<br><br>Now we can install RT:<br>    <br>    cd /tmp/rt-4.0.0<br>    make install<br>

<br>Edit the SiteConfig, this is what I've made:<br><br>    nano -w /opt/rt4/etc/RT_SiteConfig.pm<br>    <br>        Set( $rtname, 'Request Tracker Name');<br>        Set($Organization, 'Organization'); <br>

        Set($CorrespondAddress , '<a href="mailto:rt@some.url.com" target="_blank">rt@some.url.com</a>'); <br>        Set($CommentAddress , '<a href="mailto:rt-comment@some.url.com" target="_blank">rt-comment@some.url.com</a>'); <br>
        Set($Timezone , 'Europe/Amsterdam'); # obviously choose what suits you <br>
        Set($DatabaseType, 'mysql'); # e.g. Pg or mysql <br>        Set($DatabaseUser , 'root'); # Obviously make a separate DB for RT and give it a special user with privileges for that DB. In my test setup I'm just doing this with the root user (like I said, I'm a little lazy ^_~)<br>

        Set($DatabasePassword , 'root');  # My test setup has root:root as user/password.<br>        Set($DatabaseName , 'rt4');<br>        Set($WebPath , ""); <br>        Set($WebBaseURL , "<a href="http://rt4.some.url.com" target="_blank">http://rt4.some.url.com</a>");<br>

<br>Next up is initializing the database:<br>    <br>        cd /tmp/rt-4.0.0<br>        make initialize-database<br>    <br>Now we configure apache to include the vhost:<br>    <br>    nano -w /etc/apache2/sites-available/<a href="http://rt4.some.url.com" target="_blank">rt4.some.url.com</a><br>

<br>        <VirtualHost <a href="http://rt4.some.url.com" target="_blank">rt4.some.url.com</a>><br>            ErrorLog /opt/rt4/var/log/apache2.error<br>            TransferLog /opt/rt4/var/log/apache2.access<br>
            # LogLevel debug<br>
<br>            AddDefaultCharset UTF-8<br><br>            DocumentRoot "/opt/rt4/share/html"<br>            <Location /><br>                Order allow,deny<br>                Allow from all<br><br>                SetHandler perl-script<br>

                PerlResponseHandler Plack::Handler::Apache2<br>                PerlSetVar psgi_app /opt/rt4/sbin/rt-server<br>            </Location><br>            <Perl><br>                use Plack::Handler::Apache2;<br>

                Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");<br>            </Perl><br>        </VirtualHost><br><br>    /etc/init.d/apache2 restart<br>    <br>Check if the new vhost is working and if RT is working. (as in, open it in a browser)<br>

During the first run it might take a while to show the webpage.<br><br>Configure the outgoing e-mail, default Debian comes with exim. In my case I want the server to go to a smarthost, so run this command to configure exim with a smarthost (pretty easy setup, you can rerun it if it's not working):<br>

<br>    dpkg-reconfigure exim4-config<br><br>On your mailserver side you can add this stuff in order to forward mail to your new RT instance:<br><br>    nano -w /etc/aliases<br><br>    <a href="mailto:rt@some.url.com" target="_blank">rt@some.url.com</a>:         "|/opt/rt4/bin/rt-mailgate --queue general --action correspond --url <a href="http://rt4.test.intern.bkwi.nl" target="_blank">http://rt4.test.intern.bkwi.nl</a>"<br>

    <a href="mailto:rt-comment@some.url.com" target="_blank">rt-comment@some.url.com</a>: "|/opt/rt4/bin/rt-mailgate --queue general --action comment --url <a href="http://rt4.test.intern.bkwi.nl" target="_blank">http://rt4.test.intern.bkwi.nl</a>"<br>

<br>Then update the aliases:<br><br>  newaliases<br><br>The script that this line is refering to is rt-mailgate, you can find the perl script on your RT installation. I copied the script over to the mailserver into the path given above. Since it's perl it will work if the mailserver has perl installed. (in my case it worked out of the box)<br>

    <br>Before RT does anything with e-mail you need to set the following:<br><ul><li>Create a user</li><li>Create a group</li><li>Set proper rights on the general queue<br></li></ul>After that you can test if the RT system is recieving mail.<br>

<br>Websites and information that helped me the most:<br>
<ul><li><a href="http://requesttracker.wikia.com/wiki/ManualInstallation" target="_blank">http://requesttracker.wikia.com/wiki/ManualInstallation</a></li><li>/tmp/rt-4.0.0/README</li><li>/tmp/rt-4.0.0/docs/web_deployment.pod</li>
</ul>
<br><b>------------------------ END INSTALLATION STEPS ------------------------</b><br><br>Hope this helps out some of you :)<br><br><br clear="all">Best regards,<br><font color="#888888"><br>Bart</font><div><div></div><div class="h5">
<br><br>
<br><br><div class="gmail_quote">2011/5/26 Gilbert Rebeiro <span dir="ltr"><<a href="mailto:gilbert@dido.ca" target="_blank">gilbert@dido.ca</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

That's so nice, but too late.<br>
I struggled one by one.<br>
Oh well, this should be in the wiki or somewhere easier to find.<br>
<br>
Thanks, debian is great.<br><font color="#888888">
<br>
G.</font><div><div></div><div><br>
<br>
On 25/05/2011 5:41 PM, Vegard Vesterheim wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, 18 May 2011 23:08:59 +0200 Alexander Finger<<a href="mailto:af@genevainformation.ch" target="_blank">af@genevainformation.ch</a>>  wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you want to keep your install clean, try to install the necessary<br>
modules using apt-get instead of using fixdeps.<br>
</blockquote>
Good advice.<br>
<br>
Here are some oneliners from my personal notes on installing RT. These<br>
commands tries naively to identify Debian packages for the missing Perl<br>
modules reported by 'make testdeps'. It is far from perfect, but it<br>
alleviates some of the work of satisfying dependencies.<br>
<br>
make testdeps | grep '\.MISSING' | perl -pe 's/\s(\S+)\s.*MISSING/lc "lib$1-perl"/e' | sed \<br>
's/::/-/g' | while read p; do sudo apt-get --yes install $p; done<br>
<br>
make testdeps | perl -wnl -e '/^SOME DEPENDENCIES WERE MISSING/ ... /EOF/ and print' | grep\<br>
  '\.MISSING' | perl -pe 's/\s*([^. ]*).*/lc "lib$1-perl"/e' | sed 's/::/-/g'<br>
<br>
  - Vegard V -<br>
</blockquote>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>