AVanover5 has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install IO::Socket::SSL but the logs keep saying that I need a random number generator on. I attempted to install EGD but the error message still came up the same. So perhaps I installed this wrong / don't know how to turn it on? Thanks a bunch, this Neophyte appreciates you.

View the build log here:

cpanm (App::cpanminus) 1.4007 on perl 5.012002 built for MSWin32-x86-m +ulti-thread Work directory is /.cpanm/work/1307004051.976 You have make C:\Perl\site\bin\dmake.exe You have LWP 5.837 Falling back to Archive::Tar 1.72 Searching Net::SMTP::SSL on cpanmetadb ... --> Working on Net::SMTP::SSL Fetching http://search.cpan.org/CPAN/authors/id/C/CW/CWEST/Net-SMTP-SS +L-1.01.tar.gz -> OK Unpacking Net-SMTP-SSL-1.01.tar.gz Entering Net-SMTP-SSL-1.01 Checking configure dependencies from META.yml Configuring Net-SMTP-SSL-1.01 Running Makefile.PL Set up gcc environment - 3.4.5 (mingw-vista special r3) Warning: prerequisite IO::Socket::SSL not found. Checking if your kit is complete... Looks good Writing Makefile for Net::SMTP::SSL -> OK Finding PREREQ from Makefile ... Checking if you have Test::More 0.47 ... Yes (0.96) Checking if you have IO::Socket::SSL ... No Checking if you have Net::SMTP ... Yes (2.31) ==> Found dependencies: IO::Socket::SSL Searching IO::Socket::SSL on cpanmetadb ... --> Working on IO::Socket::SSL Fetching http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-S +SL-1.44.tar.gz -> OK Unpacking IO-Socket-SSL-1.44.tar.gz Entering IO-Socket-SSL-1.44 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.56) Configuring IO-Socket-SSL-1.44 Running Makefile.PL Set up gcc environment - 3.4.5 (mingw-vista special r3) Net::SSLeay could not find a random number generator on your system. This will likely cause most of the tests to fail. Please see the README file for more information. the message from Net::SSLeay was: Random number generator not seeded!! +! at blib\lib\Net\SSLeay.pm (autosplit into blib\lib\auto\Net\SSLeay\ +randomize.al) line 2229. Install cancelled. -> N/A -> FAIL Configure failed for IO-Socket-SSL-1.44. See \.cpanm\build.log + for details. -> FAIL Bailing out the installation for Net-SMTP-SSL-1.01. Retry with + --prompt or --force.

Replies are listed 'Best First'.
Re: Installing IO::Socket::SSL for ActiveState Perl
by Anonymous Monk on Jun 02, 2011 at 09:27 UTC
Re: Installing IO::Socket::SSL for ActiveState Perl
by Marshall (Canon) on Jun 02, 2011 at 20:44 UTC
    Building a module yourself is definitely not the right approach with Active State Perl. Trying to do so, can lead to lots of pain and grief.

    The best way with Active State Perl is to use their ppm utility to install modules. Type ppm at the command prompt for the gui version, type ppm help to get help for the command line version. The modules are pre-built and "ready to go" for your platform. If any dependencies are required, ppm will install them.

    The gui version of ppm is easier to use for most simple situations. The command line version has additional functionality but is harder to use.

    Note that not all modules are contained in the main Active State repository. There are other repositories and ppm knows about them. Under Edit|preferences there is a way to add more repositories,. This of course slows the tool down a lot, but look real hard before trying to build a module yourself. Often if none of the well known repositories has the .ppd file for a module, that means that there is some problem getting it to work on Win32 systems. And if that is the case you just became a porter and will be spending a lot of time.

    For IO-Socket-SSL, it is available via ppm. I just installed it and it needed Net-SSLeay on my machine which ppm automatically installed for me. This process was very easy and is definitely the way to go!