So I’ve been working on my first install of RT, and I’m getting very close, but I seem to be stuck at this point. I’m attempting to install 4.0.1
Here was my configuration: (password is removed)
./configure --with-db-type=Pg --with-db-database=rt --with-db-host=stdb3.vmstage --with-db-rt-user=rt --with-db-rt-pass=******** --with-web-user=apache --with-web-group=apache --with-rt-group=rt --enable-graphviz --enable-gd --disable-gpg
make testdeps - ran fine (after much work on the system)
see below for a cut and paste of it
As you can see I’m using postgres, it’s already set up and working, I’ve put no restrictions on it (grant all):
psql -h stdb3.vmstage -W -U rt rt
Password for user rt:
Welcome to psql 8.1.23 (server 8.3.11), the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
WARNING: You are connected to a server with major version 8.3,
but your psql client is major version 8.1. Some backslash commands,
such as \d, might not work properly.
rt=>
I did this sed -n '/Set/s/^/# /p' RT_Config.pm >> RT_SiteConfig.pm
so that I could get all the possible options in my SiteConfig. Then uncommented the ones I wanted to make sure were correct. I’ve placed a copy of it below as well. (password is removed)
the problem is showing up with the “make initialize-database” command:
make initialize-database
/usr/bin/perl -I/opt/rt4/local/lib -I/opt/rt4/lib sbin/rt-setup-database --action init --prompt-for-dba-password
weaken is only available with the XS version of Scalar::Util at /root/hold/rt-4.0.1/sbin/…/lib/RT/Interface/Web/Menu.pm line 57
BEGIN failed–compilation aborted at /root/hold/rt-4.0.1/sbin/…/lib/RT/Interface/Web/Menu.pm line 57.
Compilation failed in require at /root/hold/rt-4.0.1/sbin/…/lib/RT/Interface/Web.pm line 68.
BEGIN failed–compilation aborted at /root/hold/rt-4.0.1/sbin/…/lib/RT/Interface/Web.pm line 68.
Compilation failed in require at /root/hold/rt-4.0.1/sbin/…/lib/RT/ObjectCustomFieldValue.pm line 54.
BEGIN failed–compilation aborted at /root/hold/rt-4.0.1/sbin/…/lib/RT/ObjectCustomFieldValue.pm line 54.
Compilation failed in require at /root/hold/rt-4.0.1/sbin/…/lib/RT/ObjectCustomFieldValues.pm line 55.
BEGIN failed–compilation aborted at /root/hold/rt-4.0.1/sbin/…/lib/RT/ObjectCustomFieldValues.pm line 55.
Compilation failed in require at /root/hold/rt-4.0.1/sbin/…/lib/RT/CustomField.pm line 63.
BEGIN failed–compilation aborted at /root/hold/rt-4.0.1/sbin/…/lib/RT/CustomField.pm line 63.
Compilation failed in require at /root/hold/rt-4.0.1/sbin/…/lib/RT/CustomFields.pm line 73.
BEGIN failed–compilation aborted at /root/hold/rt-4.0.1/sbin/…/lib/RT/CustomFields.pm line 73.
Compilation failed in require at /root/hold/rt-4.0.1/sbin/…/lib/RT/Ticket.pm line 77.
BEGIN failed–compilation aborted at /root/hold/rt-4.0.1/sbin/…/lib/RT/Ticket.pm line 77.
Compilation failed in require at /root/hold/rt-4.0.1/sbin/…/lib/RT/Tickets.pm line 85.
BEGIN failed–compilation aborted at /root/hold/rt-4.0.1/sbin/…/lib/RT/Tickets.pm line 85.
Compilation failed in require at /root/hold/rt-4.0.1/sbin/…/lib/RT.pm line 395.
make: *** [initialize-database] Error 9
Thank you for your help, I’ve been wrestling with it for a while now
make testdeps
/usr/bin/perl ./sbin/rt-test-dependencies --verbose --with-Pg --with-fastcgi
perl:
>=5.8.3(5.8.8) …found
users:
rt group (rt) …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
FASTCGI dependencies:
FCGI::ProcManager …found
FCGI …found
GD dependencies:
GD::Text …found
GD …found
GD::Graph …found
GRAPHVIZ dependencies:
IPC::Run …found
GraphViz …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
JavaScript::Minifier …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
POSTGRESQL dependencies:
DBD::Pg >= 1.43 …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.
cat /opt/rt4/etc/RT_SiteConfig.pm
Any configuration directives you include here will override
RT’s default configuration file, RT_Config.pm
To include a directive here, just copy the equivalent statement
from RT_Config.pm and change the value. We’ve included a single
sample value below.
This file is actually a perl module, so you can include valid
perl code, as well.
The converse is also true, if this file isn’t valid perl, you’re
going to run into trouble. To check your SiteConfig file, use
this comamnd:
perl -c /path/to/your/etc/RT_SiteConfig.pm
You must restart your webserver after making changes to this file.
Set( $rtname, ‘example.com’);
You must install Plugins on your own, this is only an example
of the correct syntax to use when activating them.
There should only be one @Plugins declaration in your config file.
#Set(@Plugins,(qw(RT::Extension::QuickDelete RT::Extension::CommandByMail)));
1;
Set($rtname, “rt.vendormate.com”);
Set($Organization, “vendormate.com”);
Set($CorrespondAddress, “”);
Set($CommentAddress, “”);
Set($WebDomain, “localhost”);
Set($WebPort, 80);# + ($< * 7274) % 32766 + ($< && 1024));
Set($WebPath, “”);
Set($Timezone, “US/Eastern”);
Set C<@Plugins> to a list of external RT plugins that should be
C<Set(@Plugins, (qw(Extension::QuickDelete RT::Extension::CommandByMail)));>
Set(@Plugins, ());
Set($DatabaseType, “Pg”);
Set($DatabaseHost, “stdb3.vmstage”);
Set($DatabaseRTHost, “localhost”);
Set($DatabasePort, “”);
Set($DatabaseUser, “rt”);
Set($DatabasePassword, q{*******});
Set($DatabaseName, q{rt});