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

2011-08-17 Thread John Allman
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

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

2011-08-17 Thread Emmanuel Lacour
On Wed, Aug 17, 2011 at 07:11:51AM -0700, John Allman wrote:
 
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
 


You're using RH Scalar::Util? Try installing the CPAN version.


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


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

2011-08-17 Thread Kevin Falcone
On Wed, Aug 17, 2011 at 07:11:51AM -0700, John Allman wrote:
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)

Don't do this, only copy what you want to change.  Otherwise you miss
updates to defaults RT_Config.pm and are unable to tell what you've
modified from stock.

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

You're using a vendor provided Scalar::Util module that doesn't have
the function we need.  Install it from cpan or from an up-to-date
vendor package that doesn't have this bug.

-kevin


pgpDBbRQ5qGxt.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26  27, 2011
*  San Francisco, CA, USA — October 18  19, 2011
*  Washington DC, USA — October 31  November 1, 2011
*  Melbourne VIC, Australia — November 28  29, 2011
*  Barcelona, Spain — November 28  29, 2011

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

2011-08-17 Thread John Allman
Thank you for your responses... I'm not much of a perl person so the CPAN 
module thing is a little new to me. I've put in what I know from it below. As 
far as I can tell it is using the CPAN module... is there somewhere I need to 
look and see if something is conflicting?

This is what looks right to me:
# cpanm Scalar::Util
Scalar::Util is up to date. (1.23)
#


Kevin Falcone:
 You're using a vendor provided Scalar::Util module that doesn't have the 
 function we need.  Install it from cpan or from an up-to-date vendor package 
 that doesn't have this bug.
Emmanuel Lacour:
 You're using RH Scalar::Util? Try installing the CPAN version.

Kevin Falcone:
 Don't do this, only copy what you want to change.  Otherwise you miss updates 
 to defaults RT_Config.pm and are unable to tell what you've modified from 
 stock.

Which is why I've commented out everything I'm not using. I'll be able to tell 
what I've changed from stock by what isn't commented out. Note the #  in the 
sed command






-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Emmanuel Lacour
Sent: Wednesday, August 17, 2011 10:30 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Install... Almost there!!!

On Wed, Aug 17, 2011 at 07:11:51AM -0700, John Allman wrote:
 
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
 


You're using RH Scalar::Util? Try installing the CPAN version.



-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Wednesday, August 17, 2011 10:35 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Install... Almost there!!!

On Wed, Aug 17, 2011 at 07:11:51AM -0700, John Allman wrote:
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)

Don't do this, only copy what you want to change.  Otherwise you miss updates 
to defaults RT_Config.pm and are unable to tell what you've modified from stock.

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

You're using a vendor provided Scalar::Util module that doesn't have the 
function we need.  Install it from cpan or from an up-to-date vendor package 
that doesn't have this bug.

-kevin

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


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

2011-08-17 Thread Thomas Sibley
On 08/17/2011 10:51 AM, John Allman wrote:
 Which is why I've commented out everything I'm not using. I'll be
 able to tell what I've changed from stock by what isn't commented
 out. Note the #  in the sed command

I also recommend not doing this.  The commented out stock values in your
siteconfig will get out of sync with RT_Config.pm when we update
defaults, add new options, or remove old ones.  You're setting yourself
up for stock values which don't match reality, all for the small
convenience of not having to look at two files.

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


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

2011-08-17 Thread John Allman
That did it! It's installed and running great now, thanks!

 But you've lost all of the documentation provided in RT_Config.pm

Actually the comments are still there. The command doesn't make any changes to 
RT_Config.pm.  what I did strips the comments out and puts the rest into 
RT_SiteConfig.pm. This way I get all the upgraded comments which I can go in 
and read but then when I go to make changes I don't have to sort through a huge 
file. It makes it much easier if I'm testing something new. I can also look and 
see if there are any conflicts or problems quickly without having to scroll 
through a huge file with a lot of comments.

So I'm keeping the comments AND getting a easy to configure file for the 
changes I want to make. Plus I'll receive all the updates to the comments I 
need.

-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Kevin Falcone
Sent: Wednesday, August 17, 2011 11:01 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Install... Almost there!!!

On Wed, Aug 17, 2011 at 07:51:39AM -0700, John Allman wrote:
 Thank you for your responses... I'm not much of a perl person so the CPAN 
 module thing is a little new to me. I've put in what I know from it below. As 
 far as I can tell it is using the CPAN module... is there somewhere I need to 
 look and see if something is conflicting?
 
 This is what looks right to me:
 # cpanm Scalar::Util
 Scalar::Util is up to date. (1.23)

cpanm --force Scalar::Util

 Kevin Falcone:
  Don't do this, only copy what you want to change.  Otherwise you miss 
  updates to defaults RT_Config.pm and are unable to tell what you've 
  modified from stock.
 
 Which is why I've commented out everything I'm not using. I'll be able to 
 tell what I've changed from stock by what isn't commented out. Note the #  
 in the sed command

But you've lost all of the documentation provided in RT_Config.pm

-kevin

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


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

2011-08-17 Thread John Allman
I also recommend not doing this.  The commented out stock values in your 
siteconfig will get out of sync with RT_Config.pm when we update defaults, add 
new options, or remove old ones.  You're setting yourself up for stock 
values which don't match reality, all for the small convenience of not having 
to look at two files.

This will be the case whether I do it or not. If I uncomment a value and change 
it then you change the value descriptor it doesn't matter whether I've put in 
all my possible values. When we do an upgrade which should only be once a year 
or I'm going to have to read the release no matter what to see if something we 
used has changed.

The only reason an issue would arise is if the release notes were written 
poorly which could be the case but a simple 'diff' command will allow me to see 
any changes to this file.

I don't take new releases lightly, especially to something as widely used as a 
ticketing system.



-Original Message-
From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Thomas Sibley
Sent: Wednesday, August 17, 2011 11:35 AM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Install... Almost there!!!

On 08/17/2011 10:51 AM, John Allman wrote:
 Which is why I've commented out everything I'm not using. I'll be able 
 to tell what I've changed from stock by what isn't commented out. Note 
 the #  in the sed command

I also recommend not doing this.  The commented out stock values in your 
siteconfig will get out of sync with RT_Config.pm when we update defaults, add 
new options, or remove old ones.  You're setting yourself up for stock values 
which don't match reality, all for the small convenience of not having to look 
at two files.

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011