Crypt::DH Crypt::Random install problem

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Crypt::DH Crypt::Random install problem

    The Linux Test Project (ltp [url]http://ltp.sourceforge.net/[/url]) perl file autoltp
    requires Net::SSH and Net::SFTP These ultimately require Crypt::DH 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
    [url]http://ltp.sourceforge.net/[/url]) 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::DH'



    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::DH

    ---- 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::DH.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
    [url]http://www.activestate.com/Products/ActivePerl/[/url] 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::DH 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

    carl d. Guest

  2. Similar Questions and Discussions

    1. crypt function in PHP different from Perl's crypt?
      Why returns the crypt function a longer strin than Perls crypt? I need the same length (8 chars) for a password field link its used in the...
    2. blessing (?) ends up in bus error in Crypt::Random tests on a 64-bit HP-UX.11.11
      Hi, I've tried to compile Crypt::Random on 64-bit HP-UX.11.11 and the tests fail in 'pari_misfeature.t' test script. I don't have any random...
    3. How to install Crypt::SSLeay using PPM on Wintel
      I'm not even an IT person, so please be nice. I need to automate downloading data from a third party, and they provided a Perl script that...
    4. Problem with Crypt::CBC
      I know I'm missing something, but I'll be damned if I can figure it out... I want to create a simple sub-routine to encrypt and (later) decrypt a...
    5. Math::GMP tests and Crypt::Random fail on Compaq (Math::Pari related ??)
      Hi, I've been compiling Math::GMP for different OS's in order to use Net::SFTP and I have successfully compiled and used it for Solaris,...
  3. #2

    Default Crypt::DH Crypt::Random install problem

    1.Install the following with synaptic/apt-get: libyaml-dev libgmp3-dev libpari-dev libmath-gmp-perl libmath-bigint-gmp-perl

    2.Manually install parl from ftp://megrez.math.u-bordeaux.fr/pub/pari/unix/ I'm using pari-2.3.4.tar.gz

    3.Install using cpan: YAML

    4.Update cpan by typing: install CPAN 5. Re-Initialize cpan by typing: reload CPAN 6. Exit cpan because I don't trust it.

    5.Grab Math::Pari from cpan.perl.org and manually install

    6.Install using cpan: Math::GMP Math::BigInt

    Math::BigInt::FastCalc Math::BigRat Net::SSH::Perl Net::SFTP











    cpanm Math::GMP Math::BigInt Math::BigInt::FastCalc Math::BigRat Net::SSH::Perl Net::SFTP



    How to install Perl Modules


    perl Makefile.PL
    make
    make test
    make install
    Unregistered Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139