SciLinux6 perl Test::Trap and Tk installation…how

perlrhel6

A more or less fresh install of SciLinux 6:

[CODE] $ cat /etc/redhat-release Scientific Linux release 6.0 (Carbon) $ uname -an Linux bigbox.em.local 2.6.32-131.6.1.el6.x86_64 #1 SMP Tue Jul 12 17:14:50 CDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[/CODE]

I'm trying to install a great little package called ClusterSSH:

http://sourceforge.net/apps/mediawiki/clusterssh/index.php?title=Main_Page

http://search.cpan.org/~duncs/App-ClusterSSH-4.00_06/bin/ctel

Apparently EL6 yum keeps wanting to install perl modules from EL5.5, so, from:

scilinux6 (rhel6) perl pathing question

have to do something different than I've gotten used to doing, namely:

# yum install 'perl(something::something)'

So, here's the problem:

# perl Build.PL
Checking whether your kit is complete...
Looks good

Checking prerequisites...
 - ERROR: Test::Trap is not installed
 - ERROR: Tk is not installed

ERRORS/WARNINGS FOUND IN PREREQUISITES.  You may wish to  install the versions

of the modules indicated above before proceeding with this installation

Deleting Build
Removed previous script 'Build'

Creating new 'Build' script for 'App-ClusterSSH'     version     '4.00_11'

# sudo yum install 'perl(Test::Trap)'
Loaded plugins: refresh-packagekit
Setting up Install Process
No package perl(Test::Trap) available.
Error: Nothing to do

# rpm -qa |grep Tk
perl-Tk-804.029-1.el5.rf.x86_64

note the el5 suffix…grrr

# sudo yum install 'perl(Tk)'
Loaded plugins: refresh-packagekit
Setting up Install Process
No package perl(Tk) available.
Error: Nothing to do

# sudo yum install 'perl(perl::Tk)'
Loaded plugins: refresh-packagekit
Setting up Install Process
No package perl(perl::Tk) available.
Error: Nothing to do

# sudo yum install 'perl(Perl::Tk)'
Loaded plugins: refresh-packagekit
Setting up Install Process
No package perl(Perl::Tk) available.
Error: Nothing to do

So what do I do now?

Thanks in advance!

Best Answer

From the output of rpm -qa | grep Tk, perl-Tk is installed on your system. You can install Test::Trap module by using CPAN method:

perl -MCPAN -e shell
install Test::Trap

or download the source code and manually install:

wget http://search.cpan.org/CPAN/authors/id/E/EB/EBHANSSEN/Test-Trap-v0.2.1.tar.gz
tar zxvf Test-Trap-v0.2.1.tar.gz
cd Test-Trap-v0.2.1
perl Makefile.PL
make
make install