[rt-users] Post Installation problems -- 'Can't localte object method "new" via package "RT::Handle"... Why?

Max Riz max at ebrary.com
Tue Feb 3 17:23:10 EST 2004


>> So that's fine.
>>
> 
> [snip]
> 
> Really fine.
> 
> Ok.
> Try next command:
> perl -we "use lib '/opt/rt3/lib';require RT::Handle;RT::Handle->new();"


=== My id(1)===

-bash-2.05b$ id
uid=10010(rt) gid=10010(rt) groups=10010(rt)

=== My Unix ===

-bash-2.05b$ uname -a
Linux dvht.ebrary.com 2.4.20-20.8smp #1 SMP Mon Aug 18 14:39:22 EDT 2003 
i686 i686 i386 GNU/Linux

=== My Redhat ===

-bash-2.05b$ cat /etc/issue
Red Hat Linux release 8.0 (Psyche)
Kernel \r on an \m



=== My environment ===

-bash-2.05b$ env
HOSTNAME=blah.some.com
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
PERL5LIB=/opt/rt/lib/perl
USER=rt
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
MAIL=/var/spool/mail/rt
PATH=/bin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/X11R6/bin
INPUTRC=/etc/inputrc
PWD=/opt/rt
LANG=C
SHLVL=1
HOME=/opt/rt
LOGNAME=rt
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env


=== Output of the above script ===

-bash-2.05b$ perl -we 'use lib "/opt/rt/rt-3.0.8/lib"; require 
RT::Handle; RT::Handle->new(); '
Use of uninitialized value in concatenation (.) or string at 
/opt/rt/rt-3.0.8/lib/RT/Handle.pm line 49.
Use of uninitialized value in concatenation (.) or string at 
/opt/rt/rt-3.0.8/lib/RT/Handle.pm line 49.
Can't locate object method "new" via package "RT::Handle" at -e line 1.
-bash-2.05b$

















> As I think you've forgot to setup $DatabaseType in config or have done 
> mistake.

  I agree, I have clearly made a mistake. I just wish I knew
where, and how, and why it consistently re-occurs on only
one particular machine. I also wish there was some way to
debug this.

>             Best regards. Ruslan.
> 








===== Database Type ======

-bash-2.05b$ cat rt-3.0.8/etc/RT_Config.pm | grep -i databasetype
Set($DatabaseType , 'mysql');




  Thanks for the help, and the patience.


Ciao, and thanks again!

-- 
-max;




More information about the rt-users mailing list