OT: CPAN problem during RT installation

I have a strange CPAN problem during RT dependencies installation.

when i run the following command, am throwed out with the errors attached.

[root@gridsupport rt-3.6.0]# perl sbin/rt-test-dependencies --with-mysql
–with-fastcgi --install
perl:
>=5.8.3(5.008005)…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
MASON dependencies:
Params::Validate 0.02…MISSING
Cache::Cache …MISSING
Exception::Class 1.14…MISSING
HTML::Mason 1.23…MISSING
MLDBM …MISSING
FreezeThaw …MISSING
Apache::Session 1.53…MISSING
XML::RSS 1.05…MISSING
HTTP::Server::Simple 0.07…MISSING
HTTP::Server::Simple::Mason 0.09…MISSING
GD …MISSING
GD::Graph …MISSING
GD::Text …MISSING
Text::WikiFormat 0.76…MISSING

Install module Params::Validate
CPAN: File::HomeDir loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 01 Nov 2006 15:24:03 GMT
Running install for module Params::Validate
Running make for D/DR/DROLSKY/Params-Validate-0.86.tar.gz
CPAN: LWP::UserAgent loaded ok
Failed to load module CPAN.

-------- Error ---------
Can’t call method “can” without a package or object reference at
/usr/lib/perl5/5.8.5/CPAN.pm line 2904.

Failed to load module CPAN. Module CPAN is distributed with Perl
and helps install perl modules from http://www.cpan.org. RT uses
this module to install dependencies, but module’s failed to load
with error above. You have several choices to install dependencies
in this situatation:

  1. check that you’ve configured CPAN module, to do this run
    /usr/bin/perl -MCPAN -e shell program from shell, if it fails
    then you have to update CPAN module (see next suggestion)
    or use another way to install modules;
  2. try to update module CPAN, get distribution from
    CPAN-2.34 - query, download and build perl modules from CPAN sites - metacpan.org and try again;
  3. use a different tool to install dependencies, see description of
    the RT_FIX_DEPS_CMD environment variable in the output of
    the sbin/rt-test-dependencies program;
  4. install modules manually.

Now after that when i try to install directly through CPAN, i get another
set of errors:

[root@gridsupport ~]# perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok

cpan shell – CPAN exploration and modules installation (v1.8802)
ReadLine support enabled

cpan[1]> install MIME::Base64
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 01 Nov 2006 15:24:03 GMT
Running install for module MIME::Base64
Running make for G/GA/GAAS/MIME-Base64-3.07.tar.gz
CPAN: LWP::UserAgent loaded ok
Can’t call method “can” without a package or object reference at
/usr/lib/perl5/5.8.5/CPAN.pm line 2904.

cpan[2]>

The system is AS4 and RT version trying to install is 3.6.0.
Has anyone seen these kind of errors? If so please help me sort it out.

Thanks for any and all help.

Regards
Sujith Emmanuel

cpan[1]> install MIME::Base64
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 01 Nov 2006 15:24:03 GMT
Running install for module MIME::Base64
Running make for G/GA/GAAS/MIME-Base64-3.07.tar.gz
CPAN: LWP::UserAgent loaded ok
Can’t call method “can” without a package or object reference at
/usr/lib/perl5/5.8.5/CPAN.pm line 2904.

cpan[2]>

The system is AS4 and RT version trying to install is 3.6.0.
Has anyone seen these kind of errors? If so please help me sort it out.
Haven’t seen this particular error - but then I’ve never used
CPAN on AS4 (only AS3 - no problems back then). Have you
run the update to the newer version of CPAN manually on that
box? If you haven’t I suggest you contact DeadRat support
and best of luck. If you have, try to revert to the previous
version and try again. I’d think it’s fair to say that the problem
isn’t RT related at all

Thanks for any and all help.

Regards
Sujith Emmanuel
Cheers,
Andrej

Please don’t top post, and don’t use HTML e-Mail :} Make your quotes concise.

http://www.american.edu/econ/notes/htmlmail.htm

The problem here is probably in the CPAN module you have installed.
Update perl and its modules via AS4’s rpm update (yum ?). If that
doesn’t help download and install the CPAN module from src.On Nov 2, 2006, at 11:28 PM, Sujith Emmanuel wrote:

I have a strange CPAN problem during RT dependencies installation.

when i run the following command, am throwed out with the errors
attached.

[root@gridsupport rt-3.6.0]# perl sbin/rt-test-dependencies --with-
mysql --with-fastcgi --install
perl:
>=5.8.3(5.008005)…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
MASON dependencies:
Params::Validate 0.02…MISSING
Cache::Cache …MISSING
Exception::Class 1.14…MISSING
HTML::Mason 1.23…MISSING
MLDBM …MISSING
FreezeThaw …MISSING
Apache::Session 1.53…MISSING
XML::RSS 1.05…MISSING
HTTP::Server::Simple 0.07…MISSING
HTTP::Server::Simple::Mason 0.09…MISSING
GD …MISSING
GD::Graph …MISSING
GD::Text …MISSING
Text::WikiFormat 0.76…MISSING

Install module Params::Validate
CPAN: File::HomeDir loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 01 Nov 2006 15:24:03 GMT
Running install for module Params::Validate
Running make for D/DR/DROLSKY/Params-Validate-0.86.tar.gz
CPAN: LWP::UserAgent loaded ok
Failed to load module CPAN.

-------- Error ---------
Can’t call method “can” without a package or object reference at /
usr/lib/perl5/5.8.5/CPAN.pm line 2904.


Failed to load module CPAN. Module CPAN is distributed with Perl
and helps install perl modules from http://www.cpan.org. RT uses
this module to install dependencies, but module’s failed to load
with error above. You have several choices to install dependencies
in this situatation:

  1. check that you’ve configured CPAN module, to do this run
    /usr/bin/perl -MCPAN -e shell program from shell, if it fails
    then you have to update CPAN module (see next suggestion)
    or use another way to install modules;
  2. try to update module CPAN, get distribution from
    CPAN-2.36 - query, download and build perl modules from CPAN sites - metacpan.org and try again;
  3. use a different tool to install dependencies, see description of
    the RT_FIX_DEPS_CMD environment variable in the output of
    the sbin/rt-test-dependencies program;
  4. install modules manually.

Now after that when i try to install directly through CPAN, i get
another set of errors:

[root@gridsupport ~]# perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok

cpan shell – CPAN exploration and modules installation ( v1.8802)
ReadLine support enabled

cpan[1]> install MIME::Base64
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Wed, 01 Nov 2006 15:24:03 GMT
Running install for module MIME::Base64
Running make for G/GA/GAAS/MIME-Base64-3.07.tar.gz
CPAN: LWP::UserAgent loaded ok
Can’t call method “can” without a package or object reference at /
usr/lib/perl5/5.8.5/CPAN.pm line 2904.

cpan[2]>

The system is AS4 and RT version trying to install is 3.6.0.
Has anyone seen these kind of errors? If so please help me sort it
out.

Thanks for any and all help.

Regards
Sujith Emmanuel


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com