Index of /rt3/rt-3.8.2/VIA_SRC
Install Perl and rt3 from sources on C5.x
Install Perl and rt3 from sources on CentOS 5.x
Latest News
----------
May 1
Thanks to several helpful emails, this is working now. I've succesfully arrived
at the 3.8.2 login screen.
Thanks especially to Mr. M. Miller for showing the necessary and proper flags for
building MP2.
The /etc/httpd/conf.d/rt3.conf still needs to be copied during setup - yet to finish and include that in a script.
April 28
So far so good. Perl 5.10.0 builds OK and rt3 config and setup are complete.
I've yet to complete the install until I settle on the final layout I want.
When building Perl on x86_64 I forgot
#yum install readline-devel
April 26
This page is born!
About
-------
Installing rt3 via RPM and using the default Perl in /usr/bin/perl seems like it would
be the ideal way to go. However recent rt3 versions are development platforms and go
far beyond the perl-module and App versions found in C5.x.
The time has come to do it all via source: we will compile Perl from 5.10.0 source, and run it
parallel in /usr/local/bin/perl; all the perl module depends will come from CPAN, mostly via
the shell, but sometimes with manual calls to Makefile.pl when we need to pass arguments.
This method (by source) demands far more time than installing from RPM. I've spent 5+ hours on this.
If you are working on i386 the pitfalls are fewer, but on x86_64 compilation is faster.
The RPM method can be done in less than one hour.
Furthermore, I wouldn't do this on a machine that already had an rt3 install from RPM; this method
is better suited for a fresh build and clean install.
Prereq
------
You will still need RPMForge, same as the other installs.
Install
-------
Build Perl 5.10 from source
#wget http://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.10.0.tar.gz
$tar zxf perl-5.10.0.tar.gz
$cd perl-5.10.0
/* here's my Perl -V */
Keep the config flags simple and use mostly defaults plus a symbol used by mod_perl. Nowhere in the
RT docs or code is there a requirement for threading in the Perl used by RT. For Apache2, only MP2
must support threading. (leave off the usethreads switch)
$sh ./Configure -des -Accflags='-fPIC' -Dprefix=/usr/local
$make -j3 all test
#make install
Build MP2
$wget http://perl.apache.org/dist/mod_perl-2.0-current.tar.gz
$tar -xvzf mod_perl-2.0-current.tar.gz
$cd ./mod_perl-2.0
$/usr/local/bin/perl Makefile.PL
The wizard will ask for certain file locations:
/usr/sbin/apxs
$make all test
#make install
Setup CPAN
#perl -MCPAN -e shell
>install Bundle::CPAN
>force install Bundle::LWP
>quit
Setup for rt3 install
>wget http://download.bestpractical.com/pub/rt/release/rt-3.8.2.tar.gz
>tar -xvzf rt-3.8.2.tar.gz
>cd ./rt-3.8.2
#export PERL=/usr/local/bin/perl
Run the configure command for rt3. This is the single most crucial part of all for us.
#PERL=/usr/local/bin/perl ./configure --with-apachectl=/usr/sbin/apachectl \
--with-web-user=apache --with-web-group=apache --with-web-handler=MODPERL2 \
--disable-gpg --enable-layout=RH
Before continuing, check Makefile to see if the layout is the desired one
rt3_C5_layout is a shell script to encapsulate the configure
command and do a layout more friendly in Centos.
Before you start grabbing depends from CPAN, prep for GD depends and get assorted headers. The
headers are required to build modules which support Apache, Mysql, and GD.
#yum install gd-devel
#cp /usr/bin/gdlib-config /usr/local/bin/gdlib-config
#yum install graphviz (from rpmforge)
#yum install mysql-devel(.x86_64) httpd-devel(.x86_64) readline-devel (limit arch)
#make testdeps
When CPAN _make_ fails
Many times when running fixdeps, you'll get a message
that make has failed and build is impossible. What worked for me was to navigate into the
CPAN build root and manually run the make
#cd /root/.cpan10/build/DateTime-Locale-0.42-tqXfgt
#perl Makefile.PL
(satisfy the depends and requires, perhaps by CD to another parallel folder)
#make all install
Alternate call for fixdeps
[make fixdeps] can be manually done by doing
#cd */rt-3.8.2 (cd into the rt build root)
#/usr/local/bin/perl ./sbin/rt-test-dependencies --verbose --with-mysql --with-modperl2 --with-graphviz --disable-gpg --install
More Info
----------
http://lists.centos.org
http://wiki.bestpractical.com/
http://bestpractical.com/rt/lists.html (rt3 user forum)
http://download.fedora.redhat.com/pub/fedora/linux/extras/6/SRPMS/repoview/rt3.html
http://wiki.centos.org/Repositories/RPMForge
Date
-----
April 26, 2009
Contact
------
Report problems or success to me (msp):