[rt-users] Install... Almost there!!!

John Allman john.allman at vendormate.com
Wed Aug 17 10:11:51 EDT 2011


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});
# Set($DatabaseRequireSSL, undef);
# Set($LogToSyslog, "info");
# Set($LogToScreen, "info");
# Set($LogToFile, undef);
# Set($LogDir, q{var/log});
# Set($LogToFileNamed, "rt.log");    #log to rt.log
# Set($LogStackTraces, "");
# Set(@LogToSyslogConf, ());
# C<Set($EmailSubjectTagRegex, qr/(?:example.com|example.org)/i );>
# C<Set($EmailSubjectTagRegex, qr/(example.com|example.org)/i );>
# # Set($EmailSubjectTagRegex, qr/\Q$rtname\E/i );
# Set($OwnerEmail, "root");
# Set($LoopsToRTOwner, 1);
# Set($StoreLoops, undef);
# Set($MaxAttachmentSize, 10_000_000);
# Set($TruncateLongAttachments, undef);
# Set($DropLongAttachments, undef);
# Set($RTAddressRegexp, undef);
# # Set($CanonicalizeEmailAddressMatch, '@subdomain\.example\.com$');
# # Set($CanonicalizeEmailAddressReplace, '@example.com');
# Set this to 1 and the create new user page will use the values that
# Set($CanonicalizeOnCreate, 0);
# Set($ValidateUserEmailAddresses, undef);
# Set($ExtractSubjectTagMatch, qr/\[.+? #\d+\]/);
# Set($ExtractSubjectTagNoMatch, ( ${RT::EmailSubjectTagRegex}
# Set($MailCommand, "sendmailpipe");
# =item C<$SetOutgoingMailFrom>
# C<$SetOutgoingMailFrom> tells RT to set the sender envelope to the
# Set($SetOutgoingMailFrom, 0);
# This option is irrelevant unless C<$SetOutgoingMailFrom> is set.
# Set($OverrideOutgoingMailFrom, {
# Set($DefaultMailPrecedence, "bulk");
# Set($DefaultErrorMailPrecedence, "bulk");
# Set($UseOriginatorHeader, 1);
# via RT".  Setting C<$UseFriendlyFromLine> to 0 disables it.
# Set($UseFriendlyFromLine, 1);
# Set($FriendlyFromLineFormat, "\"%s via RT\" <%s>");
# Set($UseFriendlyToLine, 0);
# Set($FriendlyToLineFormat, "\"%s of ". RT->Config->Get('rtname') ." Ticket #%s\":;");
# behavior, Set C<$NotifyActor> to 1
# Set($NotifyActor, 0);
# Set($RecordOutgoingEmail, 1);
# Setting these options enables VERP support
# # Set($VERPPrefix, "rt-");
# # Set($VERPDomain, $RT::Organization);
# Set($ForwardFromUser, 0);
# Set($DashboardAddress, "");
# Set($DashboardSubject, "%s Dashboard: %s");
# Set(@EmailDashboardRemove, ());
# C<Set($SendmailArguments,"-oi -t -ODeliveryMode=b -OErrorMode=m");>
# Set($SendmailArguments, "-oi -t");
# Set($SendmailBounceArguments, '-f "<>"');
# Set($SendmailPath, "/usr/sbin/sendmail");
# Set($SMTPServer, undef);
# Set($SMTPFrom, undef);
# Set($SMTPDebug, 0);
# Set(@MailParams, ());
# Set($WebDefaultStylesheet, "aileron");
# # Set($DefaultQueue, "General");
# # Set($RememberDefaultQueue, 1);
# Set($EnableReminders, 1);
# Set C<@CustomFieldValuesSources> to a list of class names which extend
# Set(@CustomFieldValuesSources, ());
# Set C<$CanonicalizeRedirectURLs> to 1 to use $C<WebURL> when
# Set($CanonicalizeRedirectURLs, 0);
# Set(@JSFiles, qw/
# # Set($JSMinPath, "/path/to/jsmin");
# Set(@CSSFiles, qw//);
# Set($UsernameFormat, "concise");
# Set($WebBaseURL,
# Set($WebURL, RT->Config->Get('WebBaseURL') . RT->Config->Get('WebPath') . "/");
# Set($WebImagesURL, RT->Config->Get('WebPath') . "/NoAuth/images/");
# Set($LogoURL, RT->Config->Get('WebImagesURL') . "bpslogo.png");
# Set($LogoLinkURL, "http://bestpractical.com");
# Set($LogoAltText, "Best Practical Solutions, LLC corporate logo");
# Set($LogoImageHeight, 38);
# Set($LogoImageWidth, 181);
# Set($WebNoAuthRegex, qr{^ (?:/+NoAuth/ | /+REST/\d+\.\d+/NoAuth/) }x );
# Set($SelfServiceRegex, qr!^(?:/+SelfService/)!x );
# working in a multi-process (mod_perl or FastCGI) Environment.  Setting
# Set($WebFlushDbCacheEveryRequest, 1);
# Set(
# dates and time are not representative. Set C<$ChartsTimezonesInDB> to 1
# Set($ChartsTimezonesInDB, 0);
# Set($DefaultSummaryRows, 10);
# Set($HomePageRefreshInterval, 0);
# Set($HomepageComponents, [qw(QuickCreate Quicksearch MyAdminQueues MySupportQueues MyReminders RefreshHomepage Dashboards SavedSearches)]);
# search pages and wrong ticket counts.  Set C<$UseSQLForACLChecks> to 1
# Set($UseSQLForACLChecks, undef);
# Set C<$TicketsItemMapSize> to number of tickets you want RT to examine
# number, RT will omit the "last" link in the menu.  Set this to zero to
# Set($TicketsItemMapSize, 1000);
# Set($SearchResultsRefreshInterval, 0);
# Set ($DefaultSearchResultFormat, qq{
# Set($DefaultSelfServiceSearchResultFormat, qq{
# Set(%FullTextSearch,
# Set($OnlySearchActiveTicketsInSimpleSearch, 1);
# Set($SearchResultsAutoRedirect, 0);
# Set($ShowMoreAboutPrivilegedUsers, 0);
# Set($MoreAboutRequestorTicketList, "Active");
# Set($MoreAboutRequestorExtraInfo, "");
# Set($MoreAboutRequestorGroupsLimit, 0);
# Set($UseSideBySideLayout, 1);
# Set($EditCustomFieldsSingleColumn, 0);
# Set($ShowUnreadMessageNotifications, 0);
# Set($AutocompleteOwners, 0);
# Set($UserAutocompleteFields, {
# Should unprivileged users be allowed to autocomplete users.  Setting
# Set($AllowUserAutocompleteForUnprivileged, 0);
# Set($DisplayTicketAfterQuickCreate, 0);
# Support implicit links in WikiText custom fields?  Setting this to 1
# Set($WikiImplicitLinks, 0);
# Set C<$PreviewScripMessages> to 1 if the scrips preview on the ticket
# Set($PreviewScripMessages, 0);
# Set($SimplifiedRecipients, 0);
# Set this to 1 to display the Articles interface on the Ticket Create
# Set($ArticleOnTicketCreate, 0);
# Set this to 1 to hide the search and include boxes from the Article
# Set($HideArticleSearchOnReplyCreate, 0);
# Set($MessageBoxWidth, undef);
# Set($MessageBoxHeight, 15);
# Set($MessageBoxWrap, "SOFT");
# Set($MessageBoxRichText, 1);
# Set($MessageBoxRichTextHeight, 200);
# Set($MessageBoxIncludeSignature, 1);
# included in Comments. Setting this to false overrides
# Set($MessageBoxIncludeSignatureOnComment, 1);
# Set($OldestTransactionsFirst, 1);
# # Set($DeferTransactionLoading, 1);
# Set($ShowBccHeader, 0);
# Set($TrustHTMLAttachments, undef);
# Set($AlwaysDownloadAttachments, undef);
# Set($AttachmentUnits, undef);
# Set($PreferRichText, undef);
# Set($MaxInlineBody, 12000);
# updates inline. Set this variable to 0 if you'd like to disable that
# Set($ShowTransactionImages, 1);
# Set($PlainTextPre, 0);
# Set C<$PlainTextMono> to 1 to use monospaced font and preserve
# Set($PlainTextMono, 0);
# Set($SuppressInlineTextFiles, undef);
# Set(@Active_MakeClicky, qw());
# Set($ParseNewMessageForTicketCcs, undef);
# Set C<$UseTransactionBatch> to 1 to execute transactions in batches,
# Set($UseTransactionBatch, 1);
# Set($StrictLinkACL, 1);
# Set($RedistributeAutoGeneratedMessages, "privileged");
# Set($ApprovalRejectionNotes, 1);
# Set($DisallowExecuteCode, 0);
# Set($Framebusting, 1);
# Set($WebExternalAuth, undef);
# Set($WebExternalAuthContinuous, 1);
# Set($WebFallbackToInternalAuth, undef);
# Set($WebExternalGecos, undef);
# Set($WebExternalAuto, undef);
# Set($AutoCreate, undef);
# # Set($WebSessionClass, "Apache::Session::File");
# Set($AutoLogoff, 0);
# Set($LogoutRefresh, 1);
# Set($WebSecureCookies, 0);
# passwords. Setting it to 0 disables this check.
# Set($MinimumPasswordLength, 5);
# Set(@LexiconLanguages, qw(*));
# Set(@EmailInputEncodings, qw(utf-8 iso-8859-1 us-ascii));
# Set($EmailOutputEncoding, "utf-8");
# C<Set($DateTimeFormat, "LocalizedDateTime");>
# C<Set($DateTimeFormat, { Format => "ISO", Seconds => 0 });>
# C<Set($DateTimeFormat, "RFC2822");>
# C<Set($DateTimeFormat, { Format => "RFC2822", Seconds => 0, DayOfWeek => 0 });>
# Set($DateTimeFormat, "DefaultFormat");
# Set this to 1 if your local date convention looks like "dd/mm/yy"
# Set($DateDayBeforeMonth, 1);
# Set C<$AmbiguousDayInPast> for the last date, or
# Set($AmbiguousDayInPast, 0);
# Set($AmbiguousDayInFuture, 0);
# Set($DefaultTimeUnitsToHours, 0);
# Set C<OutgoingMessagesFormat> to 'inline' to use inline encryption and
# Set C<RejectOnMissingPrivateKey> to false if you don't want to reject
# Set C<RejectOnBadData> to false if you don't want to reject letters
# Set(%GnuPG,
# Set(%GnuPGOptions,
# Set(%Lifecycles,
# Set($ShowRTPortal, 1);
# Set(%AdminSearchResultFormat,
# Set($DevelMode, "0");
# Set($RecordBaseClass, "DBIx::SearchBuilder::Record::Cachable");
#     Set(@MasonParameters, (preamble => 'my $p = MasonX::Profiler->new($m, $r);'));
# Set(@MasonParameters, ());
# Set($StatementLog, undef);
# one transaction and run one scrip. Set this value to 1 if you want
# Set($LinkTransactionsRun1Scrip, 0);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110817/dcecfec3/attachment.htm>


More information about the rt-users mailing list