The Linux Test Project (ltp http://ltp.sourceforge.net/) perl file autoltp
requires Net::SSH and Net::SFTP These ultimately require Crypt:H which
requires Crypt::Random. I can't seem to get Crypt::Random to install/make.
So that is why I'm posting on this perl module group. Full story below.



I am trying to run the complete Linux Test Project (ltp
http://ltp.sourceforge.net/) using it's autoltp script (for the first time)
from a MASTER against one target. Both master/target are running Redhat
Enterprise Linux 3 workstation , installed everything, kernel
2.4.21-27.0.2.EL on an i686, redhat's up2date was run about 4 weeks ago
(Taroon update 4). When I run autoltp from the master I get . "Can't locate
Crypt/DH.pm". DH apparently won't install because it wants ::Random. Random
won't install because of an error like this " t/makerandom_itv.....dubious".
Perl -v returns v5.8.0 built for i386-linux-thread-muilti (I pasted the
perl -V at the end). Might be a problem with perl packages, modules, or a
bad reference in the perl source (somewhere). I give up.



Here's the setup and the error messages.



Run:

#\root\ltp\tools\autoltp -f configfile.txt



Response:

///////////////////// DUMP 1 /////////////////////

[root@vm1 tools]# .autoltp -f configfile.txt

bash: .autoltp: command not found

[root@vm1 tools]# ./autoltp -f configfile.txt

Creating /root/ltpresults

Can't locate Crypt/DH.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
/usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Kex/DH1.pm line 13, <GEN0> line
1.

BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Kex/DH1.pm line 13, <GEN0> line
1.

Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1.

BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/Kex.pm line 6, <GEN0> line 1.

Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1.

BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl/SSH2.pm line 6, <GEN0> line 1.

Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.0/Net/SSH/Perl.pm line 51, <GEN0> line 1.

[root@vm1 tools]#

///////////////////// END DUMP 1 /////////////////////



I pause here for some notes:

Now, before trying to run the autoltp I did run the following stuff, and
everything seemed fine:

perl -MCPAN -e 'install Net::SFTP'.

perl -MCPAN -e 'install Net::SSH::Perl'.

(After detecting and downloading a lot of dependencies, the make finally
passed.)

I tested SFPT and SSH interactively from a console and they seemed ok
between both computers.

I ran autolpt as root and put in the autoltp configfile.txt the root
username and password too.

end of notes.



I noticed the "Can't locate Crypt/DH.pm" so I did this:

perl -MCPAN -e 'install Crypt:H'



Which wanted to resolve a dependency for Random so I let it try, at which
point the whole thing dies and I am at a loss for what to try next. Here's
the dump:



///////////////////// DUMP 2 /////////////////////





CPAN.pm: Going to build B/BT/BTROTT/Crypt-DH-0.03.tar.gz



Checking if your kit is complete...

Looks good

Warning: prerequisite Crypt::Random 0.33 not found.

Writing Makefile for Crypt:H

---- Unsatisfied dependencies detected during
[B/BT/BTROTT/Crypt-DH-0.03.tar.gz] -----

Crypt::Random

Shall I follow them and prepend them to the queue

of modules we are processing right now? [yes]

Running make test

Delayed until after prerequisites

Running make install

Delayed until after prerequisites

Running install for module Crypt::Random

Running make for V/VI/VIPUL/Crypt-Random-1.25.tar.gz

Checksum for
/root/.cpan/sources/authors/id/V/VI/VIPUL/Crypt-Random-1.25.tar.gz ok

Crypt-Random-1.25/

Crypt-Random-1.25/lib/

Crypt-Random-1.25/lib/Crypt/

Crypt-Random-1.25/lib/Crypt/Random/

Crypt-Random-1.25/lib/Crypt/Random/Provider/

Crypt-Random-1.25/lib/Crypt/Random/Provider/File.pm

Crypt-Random-1.25/lib/Crypt/Random/Provider/devrandom.pm

Crypt-Random-1.25/lib/Crypt/Random/Provider/rand.pm

Crypt-Random-1.25/lib/Crypt/Random/Provider/devurandom.pm

Crypt-Random-1.25/lib/Crypt/Random/Provider/egd.pm

Crypt-Random-1.25/lib/Crypt/Random/Generator.pm

Crypt-Random-1.25/lib/Crypt/Random.pm

Crypt-Random-1.25/t/

Crypt-Random-1.25/t/octet_string.t

Crypt-Random-1.25/t/generator.t

Crypt-Random-1.25/t/pari_misfeature.t

Crypt-Random-1.25/t/random.t

Crypt-Random-1.25/t/makerandom_itv.t

Crypt-Random-1.25/bin/

Crypt-Random-1.25/bin/makerandom

Crypt-Random-1.25/Changes

Crypt-Random-1.25/MANIFEST

Crypt-Random-1.25/META.yml

Crypt-Random-1.25/Makefile.PL

Crypt-Random-1.25/README

Removing previously used /root/.cpan/build/Crypt-Random-1.25



CPAN.pm: Going to build V/VI/VIPUL/Crypt-Random-1.25.tar.gz



Checking if your kit is complete...

Looks good

Writing Makefile for Crypt::Random

cp lib/Crypt/Random/Provider/File.pm blib/lib/Crypt/Random/Provider/File.pm

cp lib/Crypt/Random/Provider/devrandom.pm
blib/lib/Crypt/Random/Provider/devrandom.pm

cp lib/Crypt/Random.pm blib/lib/Crypt/Random.pm

cp lib/Crypt/Random/Provider/rand.pm blib/lib/Crypt/Random/Provider/rand.pm

cp lib/Crypt/Random/Generator.pm blib/lib/Crypt/Random/Generator.pm

cp lib/Crypt/Random/Provider/devurandom.pm
blib/lib/Crypt/Random/Provider/devurandom.pm

cp lib/Crypt/Random/Provider/egd.pm blib/lib/Crypt/Random/Provider/egd.pm

cp bin/makerandom blib/script/makerandom

/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/makerandom

Manifying blib/man3/Crypt::Random.3pm

/usr/bin/make -- OK

Running make test

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

t/generator..........ok

t/makerandom_itv.....Unable to load module
Crypt::Random::Provider::devurandom - at
/root/.cpan/build/Crypt-Random-1.25/blib/lib/Crypt/Random.pm line 51.

t/makerandom_itv.....dubious

Test returned status 255 (wstat 65280, 0xff00)

DIED. FAILED tests 1-5

Failed 5/5 tests, 0.00% okay

t/octet_string.......Can't call method "get_data" on an undefined value at
/root/.cpan/build/Crypt-Random-1.25/blib/lib/Crypt/Random.pm line 119.

t/octet_string.......dubious

Test returned status 255 (wstat 65280, 0xff00)

DIED. FAILED tests 1-2

Failed 2/2 tests, 0.00% okay

t/pari_misfeature....Unable to load module
Crypt::Random::Provider::devurandom - at lib/Crypt/Random.pm line 51.

t/pari_misfeature....dubious

Test returned status 255 (wstat 65280, 0xff00)

DIED. FAILED test 1

Failed 1/1 tests, 0.00% okay

t/random.............Unable to load module
Crypt::Random::Provider::devurandom - at lib/Crypt/Random.pm line 51.

t/random.............dubious

Test returned status 255 (wstat 65280, 0xff00)

DIED. FAILED test 1

Failed 1/1 tests, 0.00% okay

Failed Test Stat Wstat Total Fail Failed List of Failed

-------------------------------------------------------------------------------

t/makerandom_itv.t 255 65280 5 5 100.00% 1-5

t/octet_string.t 255 65280 2 2 100.00% 1-2

t/pari_misfeature.t 255 65280 1 1 100.00% 1

t/random.t 255 65280 1 1 100.00% 1

Failed 4/5 test scripts, 20.00% okay. 9/27 subtests failed, 66.67% okay.

make: *** [test_dynamic] Error 2

/usr/bin/make test -- NOT OK

Running make install

make test had returned bad status, won't install without force

Running make for B/BT/BTROTT/Crypt-DH-0.03.tar.gz

Is already unwrapped into directory /root/.cpan/build/Crypt-DH-0.03



CPAN.pm: Going to build B/BT/BTROTT/Crypt-DH-0.03.tar.gz



cp lib/Crypt/DH.pm blib/lib/Crypt/DH.pm

Manifying blib/man3/Crypt:H.3pm

/usr/bin/make -- OK

Running make test

PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl

1..0

Can't locate Crypt/Random.pm in @INC (@INC contains: blib/lib blib/arch
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
blib/lib/Crypt/DH.pm line 6.

BEGIN failed--compilation aborted at blib/lib/Crypt/DH.pm line 6.

Compilation failed in require at test.pl line 6.

BEGIN failed--compilation aborted at test.pl line 6.

make: *** [test_dynamic] Error 2

/usr/bin/make test -- NOT OK

Running make install

make test had returned bad status, won't install without force

[root@vm1 tools]#



///////////////////// END DUMP 2 /////////////////////



In a last ditch effort I downloaded ActivePerl-5.8.6.811-i686-linux.rpm from
http://www.activestate.com/Products/ActivePerl/ then installed it from the
gnome nautilus file manager. I used /usr/local/Activeperl/5.8/bin/ppm3 to
search for, found and install Net-SSH. However the search did not find the
required perl package Net-SFTP, required by the file
/root/ltp/doc/automation-README.html. The closest thing in the default
Active Perl repositories found was Net-SFTP-Foreign. So here I give up.



If I am posting to the wrong place I am sorry. Appreciate any pointers to
better places to post or other things to try.



Thanks.



Cross posted in:

comp.software.testing: LTP, autoltp fails, perl error, ltp-full-20050505

linux.kernel: LTP, autoltp fails, perl error, ltp-full-20050505

comp.os.linux.development.system: LTP, autoltp fails, perl error,
ltp-full-20050505

comp.lang.perl.modules: Crypt:H Crypt::Random install problem







////////////////// perl -V //////////////



[root@vm1 .gnome-desktop]# perl -V

Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:

Platform:

osname=linux, osvers=2.4.21-23.elsmp, archname=i386-linux-thread-multi

uname='linux bug'

config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686 -Dmyhostname=localhost
-Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat,
Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr
-Dsiteprefix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm
-Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005
-Uversiononly -Dpager=/usr/bin/less -isr'

hint=recommended, useposix=true, d_sigaction=define

usethreads=define use5005threads=undef'

useithreads=define usemultiplicity=

useperlio= d_sfio=undef uselargefiles=define usesocks=undef

use64bitint=undef use64bitall=un uselongdouble=

usemymalloc=, bincompat5005=undef

Compiler:

cc='gcc', ccflags
='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',

optimize='',

cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
-I/usr/local/include -I/usr/include/gdbm' ccversion='',
gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-49)', gccosandvers=''

gccversion='3.2.3 200305'

intsize=o, longsize=s, ptrsize=l, doublesize=8, byteorder=1234

d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12

ivtype='long'

k', ivsize=4'

ivtype='long'

known_exten, nvtype='double', nvsize=, Off_t='', lseeksize=8

alignbytes=4, prototype=define

Linker and Libraries:

ld='gcc'

l', ldflags =' -'

libpth=/usr/local/lib /lib /usr/lib

libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil

perllibs=

libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libper

gnulibc_version='2.3.2'

Dynamic Linking:

dlsrc=dl_dlopen.xs, dlext=so', d_dlsymun=undef,
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'

cccdlflags='-fPIC'

ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5', lddlflags='s
Unicode/Normalize XS/A'





Characteristics of this binary (from libperl):

Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT

Locally applied patches:

MAINT18379

Built under linux

Compiled at Feb 1 2005 09:37:17

@INC:

/usr/lib/perl5/5.8.0/i386-linux-thread-multi

/usr/lib/perl5/5.8.0

/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi

/usr/lib/perl5/site_perl/5.8.0

/usr/lib/perl5/site_perl

/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi

/usr/lib/perl5/vendor_perl/5.8.0

/usr/lib/perl5/vendor_perl

/usr/lib/perl5/5.8.0/i386-linux-thread-multi

/usr/lib/perl5/5.8.0