Can't locate object method "Config" via package "RT" at /opt/rt4/sbin/rt-server

I am attempting to get RT 4.0.4 running.

When I start httpd I get the following:
Can’t locate object method “Config” via package “RT” at /opt/rt4/sbin/rt-server

httpd.conf

Order allow,deny
Allow from all

SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-serveri


use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");

make testdeps
/usr/local/bin/perl ./sbin/rt-test-dependencies --verbose --with-mysql --with-modperl2
perl:
>=5.8.3(5.8.8) …found
users:
rt group (apache) …found
bin owner (root) …found
libs owner (root) …found
libs group (bin) …found
web owner (apache) …found
web group (apache) …found
CLI dependencies:
Term::ReadKey …found
Getopt::Long >= 2.24 …found
HTTP::Request::Common …found
Term::ReadLine …found
Text::ParseWords …found
LWP …found
CORE dependencies:
DateTime >= 0.44 …found
Class::ReturnValue >= 0.40 …found
Text::Quoted >= 2.02 …found
Regexp::IPv6 …found
CSS::Squish >= 0.06 …found
Encode >= 2.39 …found
DateTime::Locale >= 0.40 …found
Module::Versions::Report >= 1.05 …found
MIME::Entity >= 5.425 …found
Digest::SHA …found
List::MoreUtils …found
DBI >= 1.37 …found
Locale::Maketext::Lexicon >= 0.32 …found
Devel::StackTrace >= 1.19 …found
Digest::base …found
Text::Password::Pronounceable …found
Devel::GlobalDestruction …found
Time::ParseDate …found
File::Temp >= 0.19 …found
Locale::Maketext >= 1.06 …found
Tree::Simple >= 1.04 …found
Text::Template >= 1.44 …found
Scalar::Util …found
HTML::Quoted …found
HTML::Scrubber >= 0.08 …found
File::Spec >= 0.8 …found
DBIx::SearchBuilder >= 1.59 …found
Sys::Syslog >= 0.16 …found
Mail::Mailer >= 1.57 …found
File::ShareDir …found
Regexp::Common …found
Digest::MD5 >= 2.27 …found
HTML::Entities …found
Cache::Simple::TimedExpiry …found
File::Glob …found
Class::Accessor >= 0.34 …found
Locale::Maketext::Fuzzy …found
Time::HiRes …found
Text::Wrapper …found
Regexp::Common::net::CIDR …found
Net::CIDR …found
Log::Dispatch >= 2.23 …found
UNIVERSAL::require …found
Email::Address …found
DASHBOARDS dependencies:
HTML::RewriteAttributes >= 0.04 …found
MIME::Types …found
GD dependencies:
GD::Text …found
GD …found
GD::Graph …found
GPG dependencies:
PerlIO::eol …found
GnuPG::Interface …found
ICAL dependencies:
Data::ICal …found
MAILGATE dependencies:
Pod::Usage …found
HTML::TreeBuilder …found
Getopt::Long …found
HTML::FormatText …found
LWP::UserAgent …found
MASON dependencies:
Storable >= 2.08 …found
CSS::Squish >= 0.06 …found
Apache::Session >= 1.53 …found
Errno …found
Devel::StackTrace >= 1.19 …found
IPC::Run3 …found
CGI::Cookie >= 1.20 …found
Text::WikiFormat >= 0.76 …found
XML::RSS >= 1.05 …found
HTML::Mason >= 1.43 …found
Digest::MD5 >= 2.27 …found
JSON …found
MODPERL2 dependencies:
Apache::DBI …found
HTML::Mason >= 1.36 …found
MYSQL dependencies:
DBD::mysql >= 2.1018 …found
PSGI dependencies:
CGI::Emulate::PSGI …found
CGI >= 3.38 …found
CGI::PSGI >= 0.12 …found
HTML::Mason::PSGIHandler >= 0.52 …found
Plack >= 0.9971 …found
Plack::Handler::Starlet …found
SMTP dependencies:
Net::SMTP …found
USERLOGO dependencies:
Convert::Color …found

All dependencies have been found.

Any advice appreciated

PerlSetVar psgi_app /opt/rt4/sbin/rt-serveri

You have a typo above ^

Thanks. I fixed that but got the same issue.

Order allow,deny Allow from all

SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server


use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");

Starting httpd: Syntax error on line 12 of /etc/httpd/conf.d/rt4.conf:
Can’t locate object method “Config” via package “RT” at /opt/rt4/sbin/rt-server line 94.\n\t(in cleanup) Error while loading /opt/rt4/sbin/rt-server: Can’t locate object method “Config” via package “RT” at /opt/rt4/sbin/rt-server line 94.\n

Any further suggestions appreciated.

Starting httpd: Syntax error on line 12 of /etc/httpd/conf.d/rt4.conf:
Can’t locate object method “Config” via package “RT” at /opt/rt4/sbin/rt-server line 94.\n\t(in cleanup) Error while loading /opt/rt4/sbin/rt-server: Can’t locate object method “Config” via package “RT” at /opt/rt4/sbin/rt-server line 94.\n

[ Feeling around in the dark, trying to help ]

What does ‘ls -R /opt/rt4/lib’ show?

Do you have an /opt/rt4/lib/RT/Config.pm?

Does something like '/opt/rt4/sbin/rt-server --port 9999’
even run?

kjcsb wrote:

I am attempting to get RT 4.0.4 running.

When I start httpd I get the following:
Can’t locate object method “Config” via package “RT” at
/opt/rt4/sbin/rt-server

httpd.conf

Order allow,deny
Allow from all

SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-serveri


use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");

Is that your whole apache server config?

At a guess you’re missing a path somewhere. Set DocumentRoot and / or
ServerRoot in Apache. Also try running rt-server by hand and see what
it says.

–Yan

Few people are capable of expressing with equanimity opinions which differ from the prejudices of their social environment. Most people are even incapable of forming such opinions.
Albert Einstein