[rt-users] RT and the Perl Dependency Nightmare...
Ben Goodwin
ben at atomicmatrix.net
Thu Sep 8 09:29:04 EDT 2005
Hi Tim,
Running on RedHat myself, I've given up on trying to run RT with RedHat's
perl. I've compiled and installed my own perl into /usr/local and I use
CPAN to install all the required modules. I used to use cpan2rpm but as
perl and required modules got newer while my system's perl got older, things
started breaking.
In any case, perhaps having your own package(s) which include your own perl
and modules would make sense. Instead of using the 'net to download and
install the latest version of Package::Foo, store the tarball somewhere
and/or make an RPM out of it. This would all certainly take some time to
do. If you chose to store the tarball and do a "/usr/local/bin/perl
Makefile.pl && make && make install" you'll want to make sure it's all done
in the right order and that doing it in a kickstart environment won't fail -
not necessarily easy. For reference, here's my PERL and RT build/install
process from when I installed perl 586 and RT 323. There's some references
to modules I needed when I upgraded as well. Note that this is via the CPAN
"install" command which isn't what I'm suggesting you use but it may help
you get an idea of module list/order. Watch line wraps.
sh
# Edit these as appropriate
export PERL=5.8.6
rm -rf perl-$PERL
tar -xzf ../distfiles/perl-$PERL.tar.gz
cd perl-$PERL
sh Configure -des -Doptimize="-O2 -march=i386 -mcpu=i686" -Dcc=gcc
-Dcccdlflags=-fPIC -Darchname=i386-linux -Uusethreads -Uuseithreads
-Uuselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm
-Di_shadow -Di_syslog -Dman3ext=3pm
make
make install
/usr/local/bin/perl -MCPAN -e shell
# set up CPAN if necessary
# The following are all for RT 3.2.3 dependencies
install LWP::UserAgent (default answers)
install Params::Validate
install Cache::Cache (default answers)
install Exception::Class (default answers)
install HTML::Mason (default answers, but skip test suite for Apache::Test)
install MLDBM
install FreezeThaw
install DBI
o conf makepl_arg "--testpassword=test --testuser=test"
install DBD::mysql
o conf makepl_arg ""
install DB_File
install Apache::Session
install XML::Parser
install XML::RSS (default answers)
install HTML::TreeBuilder
install HTML::FormatText (default ansers)
install Getopt::Long
install Test::Inline
install Class::ReturnValue
install DBIx::SearchBuilder (default answers)
install Text::Template
install HTML::Scrubber
install Module::Build
install Log::Dispatch
install Locale::Maketext::Lexicon
install Locale::Maketext::Fuzzy
install MIME::Entity (default answers)
install Text::Wrapper
install Time::ParseDate
install Term::ReadKey
install Text::Autoformat (default answers)
install Text::Quoted
install Tree::Simple (default answers)
install Module::Versions::Report
install Regexp::Common
install WWW::Mechanize
install Crypt::SSLeay
force install Apache::DBI
# The following was done to upgrade from RT 3.2.3 to RT 3.4.2
# SB needed an upgrade:
install DBIx::SearchBuilder
install HTTP::Server::Simple
install Hook::LexWrap
install HTTP::Server::Simple::Mason
install XML::Simple
install Test::LongString
install Test::WWW::Mechanize
install Module::Refresh
# RTFM
install Text::WikiFormat
# RT 3.5.x
install GD
install GD::Text
install GD::Graph
install Calendar::Simple
# FastCGI
install FCGI
# RT
cd rt-3.4.2
PERL=/usr/local/bin/perl ./configure --prefix=/usr/local/rt3
--with-web-user=nobody --with-web-group=nobody
--with-apachectl=/usr/local/apache/bin/apachectl
make upgrade
More information about the rt-users
mailing list